How to add two numbers in LinkList ?
[Question]: – Add two numbers using the ListList in swift. Ex Input: l1 = [2,4,3], l2 = [5,6,4] Output: [7,0,8] Explanation: 342 + 465 = 807. Explanation: # Recursion Approach: Create a sum variable & add two nodes with a previous reminder on the recursive call use modulo operator to use the numerator value (7%10 […]
How to add two numbers in LinkList ? Read More »