Google Interview Experience (Rejected in Second Round)
Role: MLE-III
Location: Hyderabad, India
Year: 2025
How I Got the Interview
- I was contacted by a Google recruiter via LinkedIn.
- Timeline:
- Recruiter contacted me: Last week of June
- Shared preparation material and guides: One week after initial contact
- First Round: 23rd July 2025
Interview Rounds
1. Online Coding Interview (Round 1)
- Duration: 45 minutes
- Format: Google Meet
- Question:
- Given a multiline log in a fixed format:
- 455456 Ram became friend to Shyam.
- 455459 Ramesh became friend to Mahesh.
- 455465 Moham became friend to Ram.
- 455489 Shyam became friend to Mahesh.
- ...and so on.
- In the above log, the integer value is the timestamp.
- The task is to return the time at which everyone becomes friends with each other. The log is not a stream; it can be stored in memory.
- Given a multiline log in a fixed format:
- My Experience:
- I identified it as a graph problem, so I first preprocessed the log and counted the unique people. I created a map to assign each name a unique index to construct the graph.
- My first approach was to treat every individual as a separate connected component. As I traversed each log entry, I added edges between nodes and decreased the global count of components. When the component count reached 1, I returned that timestamp.
- My second approach used the Union-Find algorithm. I initialized a parent array where each person was their own parent. While traversing the logs and performing union operations, I kept track of the component count. The moment it became 1, I returned the timestamp.
2. Online Coding Interview (Round 2)
- Duration: 45 minutes
- Format: Google Meet
- Question:
- Given a list of lists of words, where each nested list represents a sentence, I was required to implement a method to predict bigrams. For each query with a single word, I had to return the next word that most frequently follows it in the data.
- Example: For input
[["I", "am", "king"], ["I", "am", "travelling"], ["I", "like", "mangoes"]]and the query "I", I should return "am", since "am" appears twice after "I".
- My Experience:
- Unfortunately, I could not come up with the solution in time. I was overthinking, assuming the problem would be more complex, and overlooked the simple approach of using nested maps: the outer map would store the first word as the key, and the inner map would keep a count of each word occurring after it.
- For each prediction call, the solution should look up the next word with the highest count.
Result
- Status: Rejected after Round 2
- Feedback:
- The recruiter called and informed me that I did not perform well in the second round, and they would not be moving forward with my application.
Preparation Tips
- Resources used: LeetCode, Neetcode 250 list
- Focus areas: Data structures and algorithms
- Practice advice: I practiced around 5 problems every day after work.
Final Thoughts
- This was a great learning experience! The interviewers were polite throughout. I realized I need to improve my speed on tree, graph problems. Also, I have to not over complicate the problems. Keep practicing and don’t get discouraged!
Hope this helps anyone preparing for Google interviews! Feel free to ask any questions. Good luck!
Comments (9)


