ByteDance / TikTokCoding·60 minMembers
MinStack, MaxStack and Streaming Median
Members only
Three linked structures in a single MLE round: `MinStack` with O(1) min, `MaxStack`, and a streaming-median follow-up that pushes you to two heaps — then asks how to retrofit `MaxStack` to maintain th...
MLE
SWE
stack
heap
data-structure
streaming
hard
Frequency
Low
Last asked
2026-08-17
Stage
phone-screen · onsite-coding
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
