Fixed Window
while expand
Naïve Sum/Average
Max Sum Subarray of size K
643. Maximum Average Subarray I
1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
Medium1 solutionexplanationanalysis1 playground
Solutions:
2090. K Radius Subarray Averages
1423. Maximum Points You Can Obtain from Cards
Medium1 solutionexplanationanalysis1 playground
Solutions:
1176. Diet Plan Performance
1052. Grumpy Bookstore Owner
1652. Defuse the Bomb
Hashmap
187. Repeated DNA Sequences
Hashmap - Duplicate Elements
219. Contains Duplicate II
217. Contains Duplicate
Hashmap - Unique/Distinct Elements
1876. Substrings of Size Three with Distinct Characters
Easy1 solutionexplanationanalysis1 playground
Solutions:
1852. Distinct Numbers in Each Subarray
2107. Number of Unique Flavors After Sharing K Candies
Medium1 solutionexplanationanalysis1 playground
Solutions:
1100. Find K-Length Substrings With No Repeated Characters
Medium1 solutionexplanationanalysis1 playground
Solutions:
Substrings of length k with k-1 distinct elements
Medium1 solutionexplanationanalysis1 playground
Solutions:
Hashmap - Anagrams/Permutations
438. Find All Anagrams in a String
242. Valid Anagram
567. Permutation in String
Count
2379. Minimum Recolors to Get K Consecutive Black Blocks
Easy1 solutionexplanationanalysis1 playground
Solutions:
1456. Maximum Number of Vowels in a Substring of Given Length
Medium1 solutionexplanationanalysis1 playground
Solutions:
Count - Math
1550. Three Consecutive Odds
2269. Find the K-Beauty of a Number
Count - Swaps
1151. Minimum Swaps to Group All 1's Together
Medium1 solutionexplanationanalysis1 playground
Solutions:
2134. Minimum Swaps to Group All 1's Together II
Medium1 solutionexplanationanalysis1 playground
Solutions:
Heap
239. Sliding Window Maximum
Sorting
1984. Minimum Difference Between Highest and Lowest of K Scores
Easy1 solutionexplanationanalysis1 playground
Solutions:
Bit Manipulation
3023. Find Pattern in Infinite Stream I
3037. Find Pattern in Infinite Stream II
Miscellaneous
30. Substring with Concatenation of All Words
Hard1 solutionexplanationanalysis1 playground
Solutions: