Angad Sandhu
Search
Browse

239_Sliding_Window_Maximum

Source name
239_Sliding_Window_Maximum.py
# File: Leetcode/Solutions/239_Sliding_Window_Maximum.py

"""
Problem Number: 239
Problem Name: Sliding Window Maximum
Difficulty: Hard
Tags: Array, Queue, Sliding Window, Heap (Priority Queue), Monotonic Queue, Neetcode 150
Company (Frequency): Amazon, Google, Microsoft, Bloomberg
Leetcode Link: https://leetcode.com/problems/sliding-window-maximum/description/

DESCRIPTION

You are given an array of integers `nums`, there is a sliding window of size `k` which is moving from the very left of the array to the very right. You can only see the `k` numbers in the window. Each time the sliding window moves right by one position.

Return the max sliding window.
"""

Browse the library