Google First Round – Hire or Lean Hire?
Company: Google
Role: l3, l4
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
Hi everyone,
I had my first round of Google interviews yesterday. I’m trying to understand how this performance might be evaluated (Hire vs Lean Hire).
Here’s what happened:
- Came up with the correct approach on my own.
- Implemented the code almost correctly.
- Had a small bug in my code. I had written continue in an if statement which was not supposed to be there according to my logic. The interviewer suggested I dry run my code for the first few iterations, but I couldn't find my error. He had to point out that I had written continue;
- Used map<int, set<int>> instead of a more optimal unordered_map<int, vector<int>>. The interviewer told me that the code could be more optimized, but I didn't notice that I was using map and set; he told me later.
- There were two loops in my code. I initially stated the wrong time complexity as nlogn for the first loop; it was supposed to be n(log n ^ 2) as I was using "map<int, set<int>>". He pointed it out.
- Again, I told the wrong time complexity for the second loop. He didn't point it out. I realized after the interview got over.
- Ran out of time to discuss space complexity.
Other than these, the logic and overall approach were correct.
For those who’ve been through Google interviews or have insight into their scoring, would this typically be rated as Hire or Lean Hire?
Thanks in advance!