Related Problems (Same Pattern):
Group 1
β Easy:
LC #1 β Two Sum
LC #217 β Contains Duplicate
LC #242 β Valid Anagram
LC #771 β Jewels and Stones
π‘ Medium:
LC #560 β Subarray Sum Equals K
LC #36 β Valid Sudoku
LC #350 β Intersection of Two Arrays II
LC #3 β Longest Substring Without Repeating Characters
π΄ Hard:
LC #76 β Minimum Window Substring
LC #295 β Find Median from Data Stream
LC #128 β Longest Consecutive Sequence
Group 2
β Easy:
LC #1 β Two Sum
LC #974 β Subarray Sums Divisible by K
π‘ Medium:
LC #930 β Binary Subarrays With Sum
LC #437 β Path Sum III (Tree version)
LC #1248 β Count Number of Nice Subarrays
π΄ Hard:
LC #1074 β Number of Submatrices That Sum to Target
LC #862 β Shortest Subarray with Sum at Least K
Group 3
π’ Easy
LC #53 β Maximum Subarray
LC #152 β Maximum Product Subarray
π‘ Medium
LC #487 β Max Consecutive Ones II
LC #930 β Binary Subarrays With Sum
π΄ Hard
LC #42 β Trapping Rain Water
LC #239 β Sliding Window Maximum
LC #10 β Regular Expression Matching
Group 4
π’ Easy
Meeting Rooms LC 252
π‘ Medium
Merge Intervals LC 56
Insert Interval LC 57
Non-overlapping Intervals
Interval List Intersections
Remove Covered Intervals
π΄ Hard
Employee Free Time LC 759
Smallest Range Covering Elements from K Lists LC 632