Google L3 Phone screening

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

Company: Google
Role: L3
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

Hi, I am a SE with 3 YOE and I totally failed my phone screening. I studied hard, expected a DP question, and when I got mine, it was a 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:
list1 : [1,3] , [2,4] , [4,4]
list2 : [1,2] , [3,4]
Result: [2,4] , [3,4] , [4,4] , [1,5]

Comments