Oracle OCI | Phone | Valid Parentheses & Array to BST
Company: Oracle
Role: ic-1
Interview Stage: Onsite
Location: unknown
Year: unknown
Original Post Content:
I had my phone screen for a software engineer (junior level) with OCI. The interview was smooth and all technical. The interviewer called and the first question was tell me about what you currently do or working on.
Question 1:
The first coding question was about validating a string of parentheses and return whether it has a valid mathematical expression for example str = '()' would be true and str = '()(' would be false (and you build your test cases).
Question 2:
The second question was: given an array that represents a valid binary search tree, construct a function that returns the nodes of the BST. The second question tricked me a little bit since I'm used to solving binary search trees the other way around and not construct them. However, I haven't heard back from them yet. Will update my post if I pass the interview.
UPDATE
I had my onsite interview and it was good. However, none of the questions that I was asked were on LC :( not even as close to the hardship level I been preparing for. Still haven't heard back from them.
Round1: Behavioral question and coding questions
Round2: OOD and coding.
Round3: Lunch with a director and deep conversation on behavioral questions
Round4: Coding question that involved string manipulation
Round5: Conversation with a manager that involved behavioral questions