Google Phone Screen Interview Experience (45 mins)
Time Breakdown:
So roughly I left with only 30 mins
Technical Question 1:
Problem:
Given a list of integers, find the length of the largest non-decreasing subarray.
My Approach:
Follow-up:
What unit tests would you write for this implementation?
My Response:
Follow-up Question 2 (Advanced Variant):
You are allowed to flip one number in the list (i.e., change it to any value). Now find the length of the largest non-decreasing subarray.
My Thought Process:
Took ~1-2 minute to think.
Initially proposed a more complex solution.
Quickly realized the overcomplication and pivoted to a simplified O(n) approach using 3 pointer approach kinda ,but I didn't get chance to implement or dry run it with example(but the approach was right as I later verified using chatGPT post interview).
Only ~3 minutes remained by the time I reached the optimal solution.
Interviewer acknowledged he got the gist of my approach and wrapped up with a polite “Best of luck for the upcoming interview rounds.”
After few days I came to know from recruiter that I didn't get positive feedback and I got feedback that I need to work more on DSA.
I would like to know what is the general expectation in the google phone screen round and where I could have done better?
Thanks :)