#!process completed amazon final
1 messages · Page 1 of 1 (latest)
how do you feel
when did u get OA/VO
what lc q did u get
Finished OA - dec 2nd
Interview invite - jan 2nd
Interview scheduled - jan 17th
Interview rescheduled to today.
he asked me LCA in binary tree
Gave him O(n) approach, he wanted me to optimise it further
there is no way to optimise further than O(n)
how were the LPs?
the only way is when the tree has parent pointers
He mentioned this near the end of the interview
I gave him a solution , he said it would work
but there was no time to code
lps went good
sounds like you got it
what were lp's like
what lps u get?
But he asked me some tech follow ups on lps
one of those was not completely good i felt
Rest all were good
like about tech stack
whats the work under pressure question
got it
how do you properly answer tight deadline
tell me about a time when u couldnt consider all options before making a decision
damm that's specific
that's insane
he spoke rather than
writing it
i mean pasting
I asked him this in the begininng🥲 , should i code out the node structure
He said no its understood
So i just thought its a regular tree with left and right pointers
he made me write the whole code dry run explain everything
Finally he says , optimise further than O(n) what if we can modify the Data Structure
bro what
you should have flipped the question and asked him
like can you explain me
this discission sounds so one direction
i know but at that point like we were 50 minutes into the interview
I felt like when he wanted me to code , i asked him all the clarifying questions and he was okay with the approach
also like can you tell what he asked tech question in the lps
Regular dfs works just as good
both are O(n)
he was talking about O(logn) case when parent pointers are already provided
not when u need to generate them
I explained this at the end and he said ya it works , this was just a follow up so dont worry too much about this
Hope so
lca and lca w parent pointers are 2 lc questions
sounds like he's super inexperienced as an interviewer
should've at least mentioned parent pointer
If he said what if we can modify structure
Then he gave you a hint