View All num of num See all Photos Bloomberg L.P. www.bloomberg.com Engaged Employer Overview Reviews Salaries Interviews Jobs Photos Benefits 1.4k Reviews 4.2k Salaries 2.3k Interviews 761 Jobs Follow Add Interview Follow Add Interview Interview Question Software Engineer Interview Bloomberg L.P. 2 lists, find the common elements amongst the list. Do it w/ and w/o external storage, as fast as possible. Tags: See more , See less 8 Answer Add Tags Answer Interview Answer 2 Answers ▲ 0 ▼ 1) With external storageUsing two stacks to push all elements into them. Then pop until get different elements;2) Without external storageCalculate the length of two lists, l1 and l2, using two pointers which p2 is l2 - l1 steps ahead p1(suppose l2 > l1). Walk through list until find same element. Anonymous on Apr 10, 2013 ▲ 0 ▼ in python: r=[x for x in l1 if x in l2] Anonymous on Feb 1, 2014 Interviews > Software Engineer > Bloomberg L.P. Add Answers or Comments To comment on this, Sign In or Sign Up.