Google India | SWE L3 | Interview Experience.
Company: Google
Role: L3
Interview Stage: Onsite
Location: India
Year: unknown
Original Post Content:
I was reached out by a recruiter in the first week of March this year asking if I am interested in Google and for availability to connect. I wasn't at all aware of the Google hiring process. The recruiter rescheduled the call a couple of times but neither attended the call nor responded to emails. I gave up after many follow-up emails.
In the last week of April, recruiter responded and scheduled a call promptly. After few questions about my education, work experience, expected compensation, etc. she informed its for an L3 role and further mentioned the interview process. I wasn't prepared and not at all confident about myself. So, I accepted to proceed with a 3-week preparation time instead of asking for L4.
Round - 0
This happened in mid-May. The actual question is a bit similar to https://leetcode.com/problems/maximal-square but with an additional constraint. I gave some brute-force approach and then landed on the DP approach with no help. Upon completing the code, the interviewer asked me to find "a bug" in my code. I quickly found the bug (related to index) and explained the whole code. Interviewer seemed satisfied.
My Personal Rating: 4.5/5
The recruiter ghosted me for a month and scheduled onsites in June.
Onsite - 1
The question is related to length of increasing subsequences with additional constraints (I don't recollect exactly). I immediately proposed a DP solution and was asked to optimize further. I took some time and proposed a Hashmap based approach and coded it up. The interviewer modified the constraints of subsequence as a follow-up. I was able to solve that too making few changes to the previous solution. Interviewer seemed satisfied.
My Personal Rating: 4.9/5
Onsite - 2
Interviewer introduced himself (Principal SDE) and asked me to introduce myself, which took 10 mins. He didn't paste the question, but explained it to me verbally. There is an n * n grid similar to a mobile lock screen where you swipe in a pattern to unlock the mobile. We need to find how many such patterns are possible with some given constraints.
I struggled initially and the running clock made it worse. Took me some time to realize it's not a graph problem and was thinking out loud a 3D DP approach and struggling with its states. Interviewer interrupted and asked to solve without DP first. While explaining the thought process, the interviewer asked me many "why" questions. Interviewer turned his camera off mentioning network issue, leaving me clueless whether I was going in the right direction.
I landed on a backtracking approach. He said, let's quickly code, we only have 8 mins. I implemented the approach in a single go. I wasn't sure whether my solution/code is correct or not, but it can be improved by memoization and bitmasking. Interviewer didn't allow me to dry run and asked me complexities. He asked if I have questions and ended the call.
Since I wasn't sure about the solution, I couldn't propose the optimization. I later found that the code I gave is correct and regretted for not providing optimization.
My Personal Rating: 3/5.
Onsite - 3
The question is about finding farthest distance with some constraints. I quickly proposed a multi-source BFS approach with O(V + E) complexity. Upon explaining the approach in great detail, she asked, "are the complexities mentioned correct as per approach?" She argued that the complexities are O(V) and I agreed. Later she said, "No, O(V + E) is correct." "It was at this moment I knew I f..d up".
She then proceeds to ask many questions like "what if the graph is dense/sparse?, what if input is list of edges/adj. matrix/adj. list?, etc." mainly focusing on complexities. After carefully answering them, I coded up the solution. She tweaked the problem as a follow-up, I modified the code to solve it up.
She then proceeded to tweak the edges as directed edges with weight. I took some time and proposed Dijkstra's Approach. Asked many "why" questions about my approach. She agreed but not sure if she is satisfied. I couldn't code it up because of time.
Upon asking her what she likes most in Google, she answered Food.
My Personal Rating: idk /5.
Googlyness
He asked standard questions, but not seemed satisfied with any of my answers. He digged really deep into the SDLC, I am not so good in this area, struggled to answer and even said "I don't know" to one of the questions.
My Personal Rating: I bombed it / 5.
Recruiter called next day and informed "Except Googlyness, other technical rounds went well, and we received a go-ahead on your profile. Congrats!".