Pattern Recognition Phrases Flashcards
(90 cards)
Maximum/minimum sum of any k consecutive elements
SLIDING WINDOW
Find longest sequence that satisfies condition
SLIDING WINDOW
Shortest subarray containing all
SLIDING WINDOW
Find all subarrays of length k where sum
SLIDING WINDOW
Count number of subarrays with sum k
SLIDING WINDOW
Maximum/minimum average of k consecutive values
SLIDING WINDOW
Longest substring with at most k distinct
SLIDING WINDOW
Smallest window that contains
SLIDING WINDOW
Find subarray of size k with largest sum
SLIDING WINDOW
Number of subarrays with exactly k different
SLIDING WINDOW
Find maximum for each window of size k
SLIDING WINDOW
Count of subarrays with sum less than k
SLIDING WINDOW
Find all averages of k consecutive values
SLIDING WINDOW
Longest subarray with sum less than k
SLIDING WINDOW
Maximum of all windows of size k
SLIDING WINDOW
Container with most water
TWO POINTERS
Find pair that sums to target
TWO POINTERS
Remove duplicates from sorted array
TWO POINTERS
Move all zeros to end
TWO POINTERS
Reverse string/array
TWO POINTERS
Find if palindrome
TWO POINTERS
Three numbers that sum to target
TWO POINTERS
Merge two sorted arrays
TWO POINTERS
Find closest pair to target
TWO POINTERS