Tripadvisor interview question

Intersect two sorted lists

Interview Answer

Anonymous

Jun 26, 2015

merge the two lists (as in merge-sort) and mark when you are pointing to the same item in each list.

1