Category Archives: Heap

Sliding Window Maximum I

A long array A[] is given to you. There is a sliding window of size w which is moving from the very left of the array to the very right. You can only see the w numbers in the window. … Continue reading

Posted in Heap | Leave a comment