Leetcode, Add Two Numbers, Programming, Leetcode Medium, Java.
current node of l1 or l2 current.next.val = sum % 10; // Update the node's value to the digit value current = current.next; // Move to the next node in the result list if (p != null) p = p.next; // Move to the next node in l1 if (q != null) q = q.next; // Move to the next node in l2 } if (carry >