7 years/250k #tech
Lol. Do you mean Amazon is streaming engineers into the company and keeping just the top K engineers? That is some next level analogy
ππ
Lmao
We are all just elements in a heap
Except itβs a min heap so it is optimized for PiP.
I know heap questions are interesting(esp because it's easy compared to others in LC), but I guess you are overdoing
One time I got 3sum in an interview. Pretty sure the interviewer was hinting at something π. But not sure who the third person would've been.
Tf is 3 sum? I only know 2 girls 1 cup π΅
Bezos
I also got this question recently, and I interviewed for SDE1
Wait. How would a heap work for top k of a stream? For example, top 2 elements using a heap of size 2 for this stream would give 2 and 3. Which would be incorrect. 1,1,2,2,2,3,3,3,1,1
Uhm, heaps can have duplicates?
What do you mean? Because problem is easy?