Tripadvisor interview question

Intersect two sorted lists

Interview Answer

Anonymous

26 June 2015

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

1