leetcode

160. Intersection of Two Linked Lists

Solution

Time complexity: O(n + m)

Space complexity: O(1)