My Google DSA/coding interview experience. Some learnings included!π§΅

Some learnings included!π§΅
She shared a problem which imo was equivalent to a LC medium.
Me: This would form a tree structure, but could you tell me how's the input gonna be provided?
She: a list of pairs denoting relationship between the manager and employee.
**it would've taken me 3-4 minutes to code it up ig (that's generally how long I take to code up LC easy-med).
She: can you now extend this problem to calculate the average rather than just summation at all levels?
Me: Sure!
**Had to make 3-4 lines of code changes (just the return values and a slight logical change). Took another 2 mins.
Me: yeah sure! Let's take an example of ......
**basically explained the entire flow and it looked fine! It was barely 15 mins now and I had solved both the problems, so she complicated it again!
She: yes this would work, but let's optimise this.
I was having 0 clue for the next several minutes.
But there was no way I would've coded it in the remaining 10 mins.
Me: do you need to code this up?
She: No! Just logic would do!
She: any questions you might have for me?
Me: asked some basic standard things and signed off!
Result: cleared! β
Interviewer tries to understand your thought process, try explaining without any assumptions of him/her knowing stuff already, also when you make assumptions about the problem definitely try to make it explicit! So as to avoid last minute failures.
I hope this helped! Will write another thread on the interview experience of my current job, based on response this post gets!