Google screening L4

google logo
google
Software Engineer, L4
May 25, 20253 reads

Summary

I participated in a Google L4 screening round. I was presented with a problem involving processing a stream of messages and implementing logic to prevent printing duplicate messages within a specific time window, including a follow-up condition.

Full Experience

Screening round:

You are given an api which streams messages and you need print a msg only if same msg doesn't appear in the last 5 secs

Follow Up:

you shouldn't print a msg if same msg appears in last 5 secs or in next 5 secs

Interview Questions (2)

Q1
Stream Messages with 5-sec Anti-Duplication
Data Structures & Algorithms

You are given an api which streams messages and you need print a msg only if same msg doesn't appear in the last 5 secs

Q2
Stream Messages with 5-sec Bi-directional Anti-Duplication
Data Structures & Algorithms

you shouldn't print a msg if same msg appears in last 5 secs or in next 5 secs

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!