@@ -0,0 +1,461 @@
+%0Apublic class _160IntersectionOfTwoLinkedLists %7B%0A    public ListNode getIntersectionNode(ListNode headA, ListNode headB) %7B%0A%09%09if (headA == null %7C%7C headB == null) return null;%0A%09%09ListNode a = headA;%0A%09%09ListNode b = headB;%0A%09%09while (a != b) %7B%0A%09%09%09a = a == null ? headB : a.next;%0A%09%09%09b = b == null ? headA : b.next;%0A%09%09%7D%0A%09%09return a;%0A    %7D%0A    %0A    class ListNode %7B%0A    %09int val;%0A    %09ListNode next;%0A    %09ListNode(int x) %7B%0A    %09%09val = x;%0A    %09%09next = null;%0A    %09%7D%0A    %7D%0A%7D%0A

Add 160 solution