Dual Extremes Queue
Google interview questions · Hard · Coding round · 6 tests
Design a StreamBuffer class that stores integer samples in FIFO order while also
supporting constant-time retrieval of the current minimum and maximum values.
Required API
Run your code with Ctrl+Enter to see results.