leetcode
160. Intersection of Two Linked Lists
Solution
Python code
Time complexity: O(n + m)
Space complexity: O(1)