Uber SDE2 loop, coding 2 follow up might sink me
Uber SDE2 loop, coding 2 follow up might sink me
YOE 3, backend at a mid size fintech. Referral, recruiter call, phone screen, then VO about 10 days later. 5 rounds counting the phone screen. Pending.
Phone screen Hit counter. hit() and getHits() over the last 5 min. Did a queue first, he asked about memory if hits are huge, switched to a 300 bucket circular array. Then 10 min on tradeoffs: what if calls come from many threads, clean up on read vs a background thread. Got moved to VO a couple days later.
VO coding 1 LC 1438, longest subarray where max minus min is at most the limit. Wrote the O(n^2) first because he asked for it, then two deques. Popped from the wrong deque on the first try, caught it on a test case. Think this one's fine.
VO coding 2 First unique number in a stream. add() and showFirstUnique(). Hash map plus linked list. Follow up was return the Nth unique instead of the first. Said I'd walk the list, he asked if I could do better, ran out of time talking about it. Meh.
SD Ride matching. Drivers ping location every few sec, rider requests, match nearest available. He cared a lot about never assigning one driver to two riders. Spent too long on geo indexing, rushed the consistency part.
HM / deep dive 25 min on a project I picked, with slides. Lots of "why not X". Then a couple BQ, conflict with a PM, a time I missed a deadline. Nothing weird.
Recruiter said about a week for feedback. Can't stop thinking about the Nth unique thing. Anyone gotten an offer after not finishing a follow up?