#!process Amazon VO
1 messages · Page 1 of 1 (latest)
I got Max Stack and a question where u use XOR to find the 1 odd frequency element for LCs
timeline?
Applied Dec 22, OA sometime in January, VO 3/14
grad date?
did you receive response?
sde 1?
Yup
all the best!
Wondering what people think if I didn’t use OOD to answer the LLD question 😅
But the LC was easy asf so I cleared both of those with just a small hint on Max Stack
Isn't max stack a hard problem, which isn't in the Amazon list?
I understand once you know the solution it's a medium but still, how did you manage to crack that Op?
Didn’t realize max stack was a hard cuz I don’t have LC premium, but I see that now.
But I got to the answer by just guessing to use an extra stack, and then interviewer told me to synchronize the lengths, which lead me to the solution.
Then was asked follow up to improve space complexity to see if I could do better than o(2n)
I see, great stuff!
could you?
Nah I tried but interviewer ended up just telling me
Wanna share the solution?
Intl?
Did it have a function to pop_max as well?
No
how was the lld?
Like I said I was unprepared for it. question was design a system to evaluate a 5 card hand and score it like in poker
I literally just wrote a function to rank hands from 1-10, where there are 10 types of hands from high card to full house. I made the input for the function in the form of an array of 5 cards, where a 5 of Hearts would be ‘5H’
so that was bad but maybe it’ll be okay LOL
Maybe whats the role name and rold id ? thx!
did you hear back?
@fast spade Can I dm?
sure
Not yet
congrats!!