Dual Extremes Queue
TikTok interview questions · Hard · Coding round · 6 tests
Design a FIFO buffer for latency samples that supports constant-time access to both the minimum and maximum value currently stored.
Interface
Run your code with Ctrl+Enter to see results.