Google L3 Interview Experience

Round 1: Coding
Q: Unique Paths
I found this question quite interesting. I utilized my knowledge of DFS (Depth-First Search) in graph theory. First, I identified the starting point and began traversing in four directions: up, down, left, and right. I recorded the state of each position visited (if a position was already visited or encountered an obstacle, I terminated the path early). Upon reaching the endpoint, I verified whether all positions had been visited and updated the count of valid paths accordingly.
I encountered a minor issue while explaining a test case, but quickly moved on to the follow-up questions. There were three follow-up questions, but I don’t recall the specifics. I solved one of them through coding, while the other two were more discussion-based. Overall, this round went very smoothly, and the interviewer said I performed well!
Round 2: Googlyness
The questions I was asked:
Describe an instance where you needed to use innovative measures to solve a problem.
Describe your greatest achievement in your past experiences.
Describe the skills you possess that will help you better adapt to this position.
This round primarily utilized the STAR method to answer questions. There were no unexpected situations, and it proceeded very smoothly.
Round 3: Coding
Q: Reverse a string
My approach was to iterate through the string in a loop, taking a substring of length k and reversing it each time, until the entire array was traversed. Finally, I converted the entire character array back into a string and returned it. There were three follow-up questions, and I needed to write code for two of them. The last question was an oral discussion about further optimization, which I mentioned earlier. This round was completed in 40 minutes, but the interviewer's tone was neutral, so I'm unsure of my performance.
Round 4: Coding
Q: Gas Station
This is a typical greedy algorithm problem. Note that during iteration, if the remaining fuel is less than 0, there must be no positions in between that meet the conditions. In this case, start from the next position and accumulate the remaining fuel starting from 0. After seeing the question, I quickly wrote the code, but the interviewer prompted me to check the boundary conditions. Initially, the boundary condition handling was decent, but I became a bit flustered later on, and an extra check was performed on one boundary condition, causing the code to return an incorrect answer. I'm not sure if the interviewer noticed this. Do you think it would have an impact? The interviewer later said, “It sounds decent.” I'm not sure if that was just out of politeness.
lf you encounter any difficulties or have any questions, please feel free to come here to find solutions


