Nieuws

// get the maximum element. This way we avoid the commented for loop. Note: deque is of indexes to maintain window. // Deque is monotonic in nature here, the maximum we want is on front. // Elements ...