Technical Interview 2
- Suppose there is a 2d metric and you are at any one cell. There is a cheese in another cell and some cells are water, you can not cross water and you have to reach the cheese. There is a cat in one cell and you have to choose the path in which the distance from the cat should be maximum.
I was able to identify this as a binary search problem like aggressive cows with a twist of classic 2d array DP. I was able to solve and implement the code in 15-20 minutes. The interviewer was impressed. She said she was not expecting anyone to solve this in 20 minutes and she took around 5 minutes to find a 2nd question for me. - There is an array of integers. The value at any position defines the number of smaller numbers in an original array to the right of it. for example, if the 2nd last number in the given array is 1 that means in the original array there is one number smaller than it in its right. Find the original array.
- Firstly this question seems confusing. It took me 5 minutes to understand the problem itself but I was able to recognize this is a permutation problem and can be solved through recursion. I gave her a recursive solution, and she asked me to optimise, I was thinking about the states to create DP but then I ran out of time.
Result – Hire
Google Interview Experience For Software Engineer
Role – Software Engineer 3 (L4)
Current company – Amazon (SDE 1)
Total Experience – 2.6 years
I applied for the role through Google’s career site and after a few weeks got a call from a Google recruiter. The call lasted about 1 hour during which we discussed my current projects, and why I want to leave Amazon and join Google. Am I in practice with DSA, which platform do I use to practice DSA, and what is my score? She briefed me about the interview process and asked about my availability for the Technical Phone Screening round. After a few hours of this conversation, I got an email with meets invite for a telephonic screening round.
During the call, the recruiter asked me which language I would be using in the interviews. I said Java. Don’t know why she sounds surprised.