Google L4 Phone Screen
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-04-03Added By Anonymous
Source: Link
🧭 Experience: unknown
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown
We have a chat system where users communicate with each other at a specific time.
You need to implement the following methods:-
1)registerUser(int timestamp, String sender, String receiver, String content)
2)getMostActiveUser() //return the lexicogrphically most Active User
Follow Ups:-
1)Find the number of conversation between two users
2)Find the count of conversation of a particular User
I was able to solve the questions and followups, but wasn't able to code the followup for the 2nd part because of time crunch. Although, she told me my approach was correct for the 2nd followup
Surprisingly, she didn't ask me time or space complexities and neither I told her explicitly because I forgot due to interview pressure.
Her focus was more on making the code more extensible and follow OOP standard. And fortunately, that was my strong point. So, overall I think I did well.
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown
We have a chat system where users communicate with each other at a specific time.
You need to implement the following methods:-
1)registerUser(int timestamp, String sender, String receiver, String content)
2)getMostActiveUser() //return the lexicogrphically most Active User
Follow Ups:-
1)Find the number of conversation between two users
2)Find the count of conversation of a particular User
I was able to solve the questions and followups, but wasn't able to code the followup for the 2nd part because of time crunch. Although, she told me my approach was correct for the 2nd followup
Surprisingly, she didn't ask me time or space complexities and neither I told her explicitly because I forgot due to interview pressure.
Her focus was more on making the code more extensible and follow OOP standard. And fortunately, that was my strong point. So, overall I think I did well.