Skip to content
Loading the question…
Given an array nums and a sliding window of size k moving from the very left to the very right, return the maximum value in the window for each position. Solve in O(n) time using a deque.: coding question | SysRound