Add Two Numbers Represented by Linked Lists - II

Опубликовано: 29 Март 2026
на канале: Fit Coder
690
11

In this video, I have explained how to add two numbers represented as linked lists.
Given two non-empty linked lists representing two non-negative integers. The digits are stored in direct order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list.
Assumption: The two numbers do not contain any leading zero, except the number 0 itself.

Source code: https://github.com/fit-coder/fitcoder...

00:00 Introduction
00:08 Problem explanation
02:29 Method 1
05:12 Method 2 (Without reverse of Input list)
19:51 Implementation

Add Two Numbers (Reverse):    • Add Two Numbers Represented by Linked List...  
-------------------------------------------------------------
I live in New Delhi and love explaining programming concepts. I have done M.Tech(BITS Pilani) + B.Tech(PEC, Chandigarh) in Computer Science and am currently working as a software engineer in a MNC.
If you like my content, please like, share my videos and subscribe to the channel.
-------------------------------------------------------------

For Linked List tutorials, please refer to the below playlist:
   • Linked List  

For Binary tree tutorials, please refer to the below playlist:
   • Tree Data Structures  

For Binary search tree tutorials, please refer to the below playlist:
   • Binary Search Tree  

For in-depth Graph theory and implementation details, please refer to the below playlist:
   • Graph Algorithms  

#DataStructure,#LinkedList,#FitCoder,#Algorithm,#competitiveprogramming,#faang,#codinginterview