7 Sliding window max sum of k elements Easy Arrays & Strings

Given array a and window size k, find the maximum sum of any contiguous k elements.

101 Best Time to Buy and Sell Stock Easy Sliding Window

Given an array of stock prices by day, find the maximum profit from one buy-sell pair.

102 Longest Substring Without Repeating Characters Medium Sliding Window

Given a string, find the length of the longest substring without repeating characters.

103 Longest Repeating Character Replacement Medium Sliding Window

Given string s and integer k, find the longest substring where you can replace at most k characters to make all characters the same.

104 Permutation in String Medium Sliding Window

Given strings s1 and s2, return true if s2 contains a permutation of s1 as a substring.

105 Minimum Window Substring Hard Sliding Window

Given strings s and t, find the minimum window in s that contains all characters of t.