Background: 1 Yoe, CS Bachelors grad.
Had 1 phone interview, 4 coding and 1 GNL.
Phone Interview:
Round 1:
- Interview started 15 minutes late so asked only 1 question - https://www.geeksforgeeks.org/diameter-n-ary-tree/
Gave the solution pretty much straight away, ran it on an example, coded it and tested it. Missed out an edge case though which the interviewer pointed out.
Round 2:
- Chocolate Sweetness
Follow-up: can we optimize the split function from O(N)? Yes - cumulative sum and binary search makes it O(k*logN)
Round 3:
Round 4: [Googleyness and Leadership]
- Nothing too tough, mostly related to stuff on my CV plus questions like how do you deal with problematic teammates, most difficult/rewarding problem you've solved in your career etc.
Round 5:
- https://leetcode.com/problems/palindromic-substrings
Got to the DP O(N^2) time O(N) space solution quickly. Interviewer said he wanted better space complexity, I could not figure out the 2 pointer approach. Interviewer gave me a hint near the end of the interview, and was able to solve and code the optimal one.
Recruiter was mostly pleased after seeing the feedback from first 4 rounds (I had 3 and 2 interviews on separate days), really blew it in round 5. The interviewer had planned to ask another question.