OCI | Oracle |Jan 2019| Seattle [Reject]
Company: Oracle
Role: ic-2
Interview Stage: Onsite
Location: Seattle
Year: 2019
Original Post Content:
Phone Interview: Find the boundary of a binary tree.
Onsite:
Round 1: Bartender Round - Behavioral Questions
Round 2: Coding: https://leetcode.com/problems/brick-wall/
Couldn't 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, couldn't map it out)
Round 4: Coding Question: 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 haven't seen this question before.
If a binary tree follows 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 an 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 interview have really lowered my morale. Will keep trying.