@@ -0,0 +1,1261 @@
+public class ListNode %7B%0A    int val;%0A    ListNode next;%0A    ListNode(int x) %7B val = x; %7D%0A%7D%0A%0Aclass Solution %7B%0A    public ListNode addTwoNumbers(ListNode l1, ListNode l2) %7B%0A        ListNode result = new ListNode(0), rptr = result;%0A        ListNode ptr1 = l1, ptr2 = l2;%0A        int carry = 0;%0A        while (ptr1 != null && ptr2 != null) %7B%0A            int val = ptr1.val + ptr2.val + carry;%0A            ListNode node = new ListNode(val %25 10);%0A            carry = val / 10;%0A            rptr.next = node;%0A            rptr = rptr.next;%0A            ptr1 = ptr1.next;%0A            ptr2 = ptr2.next;%0A        %7D%0A%0A        while (ptr1 != null) %7B%0A            int val = ptr1.val + carry;%0A            ListNode node = new ListNode(val %25 10);%0A            carry = val / 10;%0A            rptr.next = node;%0A            rptr = rptr.next;%0A            ptr1 = ptr1.next;%0A        %7D%0A%0A        while (ptr2 != null) %7B%0A            int val = ptr2.val + carry;%0A            ListNode node = new ListNode(val %25 10);%0A            carry = val / 10;%0A            rptr.next = node;%0A            rptr = rptr.next;%0A            ptr2 = ptr2.next;%0A        %7D%0A%0A        if (carry %3E 0) %7B%0A            ListNode node = new ListNode(carry);%0A            rptr.next = node;%0A        %7D%0A%0A        return result.next;%0A    %7D%0A%7D%0A

2. Add Two Numbers