Panda Guru LogoPanda
Guru

Google L4 | Phone Screening| Logger

Round 1

Questions: Design a logger system that receives a stream of messages along with their timestamps. Each unique message should only be printed at most every 10 seconds (i.e. a message printed at timestamp t will prevent other identical messages from being printed until timestamp t + 10).

Candidate's Approach

I solved it using a hashmap. I followed good coding syntax and communicated my thoughts as I was writing the code. In the last 5 minutes, the interviewer asked me to write the time and space complexity, which I did and explained as well.

Interviewer's Feedback

No feedback provided.