Skip to content
RED SAGSkills
hard20 pts · first answer countsstacks-and-queues

Sliding window maximum

For [1, 3, -1, -3, 5, 3, 6, 7] and window size 3, what are the maximums of each window, and how can you get them in O(n)?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions