Google L3 Phone screening

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-05-19Added By Anonymous
Source: Link

Hi, I am a SE with 3 YOE. and I totally failed my phone screening, I studied Hard, expected DP question, and when I got mine, it was simple binary search and I blacked out and couldn't code it :(

I feel so dumb and lost all motivation to continue the search.


Question:

you got 2 weighted lists with pairs [id,weight], sorted by weight.return the merge of the lists sorted.

example:

lis1 : [1,3] , [2,4] , [4,4]

list2 : [1,2] , [3,4]

result: [2,4] , [3,4] , [4,4] , [1,5]

Comments