Hi All,
Today I have given Morgan Stanley interview for Software Engineer postion. It was more of like a hiring drive.
Round 1:
Question1: Given an array of integers of positive numbers. Find the closest number with average of those numbers
Question2: Given the closing prices of a stock on a given day. Find the buying and selling day to maximize the profit.
eg: 12, 5, 15, 22
output: [1, 3]
Then some Java related questions for around 10 mins
Then the interviwer asked for the stack implementation.
Verdict: Rejected.
Here's my anaysis what went wrong:
Total Interview time: 45 mins
Interviwer was in very hurry, firstly he joined 5 mins late for the interview. Then we greeted each other followed by introduction.
This eat up around 5 more minutes.
Total time left: 35 min
Secondly the interviwer was not ready with questions itself, when i ask him some doubt eg: input can be pos/neg, sample input/output. He was taking sometime to give proper responses.
He was in very hurry, i told him let me explain the approach first but he kept on insisting to code it. I mean why?? without discussing approach how do you even know solution will work or not, or can be furthure enchanced.
When i coded the solution, he started pointing out minor details like loop can be started from index 1 not from 0 also, I agreed. But how does it improve Time complexity, I mean wtf is this? it seems he was just trying to be more smarter.
Then on the stack implementation, I provided him the code and he was like this is not traditional appraoch, I was like so..?? The code is correct it does the job and anyhow, i don't remember the actual solution, whatever is coming to my mind i'm coding it infront of you.
Overall I feel like a bad interviwer has just ruined an opportunity