Data Interview Questions

132,740 data interview questions shared by candidates

# Q1: Write a function to intersect two *sorted* lists (find common elements) # Write a method taking two lists as input, and returning a new list # You can assume you have a reasonable array/list class available (ArrayList, vector, python list, etc) # Ex: # l1 = [1,2,3,4,5] # l2 = [1,5,7,11,100] # result = [1,5]
avatar

Software Engineer/Data Scientist

Interviewed at Tripadvisor

3.5
Oct 29, 2014

# Q1: Write a function to intersect two *sorted* lists (find common elements) # Write a method taking two lists as input, and returning a new list # You can assume you have a reasonable array/list class available (ArrayList, vector, python list, etc) # Ex: # l1 = [1,2,3,4,5] # l2 = [1,5,7,11,100] # result = [1,5]

Viewing 471 - 480 interview questions

Glassdoor has 132,740 interview questions and reports from Data interviews. Prepare for your interview. Get hired. Love your job.