Sliding Window Maximum (LeetCode 239)
The problem You get an integer array and a window size . A window of…
Tag
16 posts
The problem You get an integer array and a window size . A window of…
The problem You get two strings and . Return if some contiguous piece of is a…
The problem You get two strings and . Return the shortest substring of that…
The problem You get an array of positive integers and a positive integer…
The problem You get an integer array and an integer . Among all contiguous…
The problem You get a binary array (only 0s and 1s) and an integer . You may…
The problem You get a binary array . You must delete exactly one element. Return…
The problem You get an uppercase string and an integer . You may change up to…
The problem You get a string . Return the length of the longest substring…
The problem A row of trees is given as an array , where is the type of fruit on…
The problem You get a string and a pattern . Return the list of every start…
The problem You get an array where is a stock’s price on day . You may buy…
Twelve problems that drill the sliding-window pattern from Lesson 4. The reps…
Sliding window is two pointers’ close cousin, specialised for contiguous sub…
Every public API needs a rate limiter. Without one, a single misbehaving client…
Your API has a problem. A single misbehaving client is sending 10,000 requests…
