Implement SlidingWindow(k) with put(number) and getMax(), where getMax returns the maximum among the last k inserted values.
Unlock detailed company stats for this questionUpgrade
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
