Add Two Numbers Represented By Linked Lists
Algorithm :
► Reverse the first list
► Reverse the second list
► Initialize Sum = 0 and Carry = 0
► Carry = Carry/10 Sum = Sum%10
►Sum = list1.val + list2.val + carry
► Create the Result Linked List
► Insert Sum At The End Of the List
➡Leet Code Problem : https://leetcode.com/problems/add-two...
➡Reverse Linked List in O(n) = • Reverse a linked list without recursion | ...
Support Us
💗Facebook : / webtechschoo.learn
💗Instagram: / webtechschool