@@ -0,0 +1,1168 @@
+/**%0A * Title                Add Two Numbers%0A * Problem No           167%0A * URL                  http://www.lintcode.com/en/problem/add-two-numbers/%0A *%0A * Original Solution    Yes%0A * Other Comments       N.A.%0A *%0A * Author               Norman Gamage %3Cnorman.gamage@gmail.com%3E%0A * Version              Alpha%0A * Last Update          2015 Jun 27%0A */%0A%0A/**%0A * Definition for singly-linked list.%0A * public class ListNode %7B%0A *     int val;%0A *     ListNode next;%0A *     ListNode(int x) %7B%0A *         val = x;%0A *         next = null;%0A *     %7D%0A * %7D%0A */%0Apublic class Solution %7B%0A  /**%0A   * @param l1: the first list%0A   * @param l2: the second list%0A   * @return: the sum list of l1 and l2%0A   */%0A  public ListNode addLists(ListNode l1, ListNode l2) %7B%0A    ListNode it = new ListNode(0);%0A    ListNode output = it;%0A    int c = 0;%0A%0A    while (null != l1 %7C%7C null != l2) %7B%0A      if (null != l1) %7B%0A        c += l1.val;%0A        l1 = l1.next;%0A      %7D%0A%0A      if (null != l2) %7B%0A        c += l2.val;%0A        l2 = l2.next;%0A      %7D%0A%0A      it.next = new ListNode(c %25 10);%0A      it = it.next;%0A      c /= 10;%0A    %7D%0A%0A    if (c %3E 0) %7B%0A      it.next = new ListNode(c);%0A    %7D%0A%0A    return output.next;%0A  %7D%0A%7D

#167 Add Two Numbers