Phone Interview: Find the boundary of a binary tree.
Onsite :
Round 1: Bartender Round - Behaivorial Questions
Round 2: Coding : https://leetcode.com/problems/brick-wall/
Couldnt get the best solution, tried brute force .
Round 3 : Lunch (With a surprise coding question with only 15 mins left- obviously we only spoke about the approach couldnt map it out)
Round 4 : Coding Question : ![image]https://leetcode.com/problems/validate-binary-search-tree/
Solved it, but I said the space complexity would be O(N) if you include the stack frame however the interviewer said that the space complexity I said was wrong. Can anyone help me with that
Round 5 : Coding Question :https://leetcode.com/problems/top-k-frequent-words/
I was able to solve it successfully, with 15 mins left when the interviewer asked another question about a binary tree. I havent seen this question before.
If a binary tree follow the following rule: Amongst every two children, whichever child is bigger becomes the root. Find the second highest element in the binary tree. I gave the brute force solution of converting the tree into the array and finding the second highest number, but he obviously wanted a better solution.
All in all, I guess I did pretty bad and this was expected. I have a google interview next week and the results of this interviews have really lowered my morale. Will keep trying.


