Leetcode Problem Records⚓︎
The problem set originates from Leetcode Master repository.
Array⚓︎
- 27: Remove Element
- 26: Remove Duplicates from Sorted Array
- 977: Squares of a Sorted Array
- 209: Minimum Size Subarray Sum
- 54: Spiral Matrix
- 59: Spiral Matrix II
- 2850: Minimum Moves to Spread Stones Over Grid
- 31: Next Permutation
- 556: Next Greater Element III
Binary Search⚓︎
- 704: Binary Search
- 34: Find First and Last Position of Element in Sorted Array
- 35: Search Insert Position
- 744: Find Smallest Letter Greater Than Target
- 153: Find Minimum in Rotated Sorted Array
- 33: Search in Rotated Sorted Array
- 154: Find Minimum in Rotated Sorted Array II
- 81: Search in Rotated Sorted Array II
- 74: Search a 2D Matrix
- 162: Find Peak Element
- 410: Split Array Largest Sum
- 2861: Maximum Number of Alloys
Sort⚓︎
Bit Operations⚓︎
Hash Map⚓︎
- 242: Valid Anagram
- 1002: Find Common Characters
- 349: Intersection of Two Arrays
- 202: Happy Number
- 1: Two Sum
- 454: 4 Sum II
- 383: Ransom Note
- 15: 3 Sum
- 18: 4 Sum
- 128: Longest Consecutive Sequence
- 36: Valid Sudoku
- 290: Word Pattern
- 41: First Missing Positive
Linked List⚓︎
String⚓︎
- 6: Zigzag Conversion
- 8: String to Integer (atoi)
- 344: Reverse String
- 541: Reverse String II
- 151: Reverse Words in a String
- 28: Find the Index of the First Occurrence in a String
- 459: Repeated Substring Pattern
- 2788: Split Strings by Separator
- 2851: String Transformation
Stack and Queue⚓︎
- 232: Implement Queue using Stacks
- 225: Implement Stack using Queues
- 20: Valid Parentheses
- 1047: Remove All Adjacent Duplicates In String
- 150: Evaluate Reverse Polish Notation
- 239: Sliding Window Maximum
- 347: Top K Frequent Elements
- 71: Simplify Path
- 1106: Parsing A Boolean Expression
Trie⚓︎
Heap⚓︎
Union Find⚓︎
- 765: Couples Holding Hands
- 839: Similar String Groups
- 200: Number of Islands
- 947: Most Stones Removed with Same Row or Column
- 2092: Find All People With Secret
- 2421: Number of Good Paths
- 928: Minimize Malware Spread II
Binary Tree⚓︎
Backtracking Algorithm (DFS)⚓︎
- 77: Combinations
- 216: Combination Sum III
- 17: Letter Combinations of a Phone Number
- 39: Combination Sum
- 40: Combination Sum II
- 131: Palindrome Partitioning
- 93: Restore IP Addresses
- 78: Subsets
- 90: Subsets II
- 491: Non-decreasing Subsequences
- 46: Permutations
- 47: Permutations II
- 51: N Queens
- 52: N-Queens II
- 37: Sudoku Solver
- 291: Word Pattern II
Monotonic Stack⚓︎
DFS/BFS Search⚓︎
- 130: Surrounded Regions
- 200: Number of Islands
- 127: Word Ladder
- 126: Word Ladder II
- 827: Making A Large Island
- 1020: Number of Enclaves
- 803: Bricks Falling When Hit
Graph Theory⚓︎
Graph General⚓︎
Shortest Path⚓︎
- 1514: Path with Maximum Probability
- 787: Cheapest Flights Within K Stops
- 743: Network Delay Time
- 1368: Minimum Cost to Make at Least One Valid Path in a Grid
Dynamic Programming⚓︎
Basics⚓︎
- 70: Climbing Stairs
- 746: Min Cost Climbing Stairs
- 62: Unique Paths
- 63: Unique Paths II
- 343: Integer Break
- 96: Unique Binary Search Trees
House Robber Problem⚓︎
Knapsack Problem⚓︎
0-1 Knapsack⚓︎
Complete Knapsack⚓︎
Stock Problem⚓︎
- 121: Best Time to Buy and Sell Stock
- 122: Best Time to Buy and Sell Stock II
- 123: Best Time to Buy and Sell Stock III
- 188: Best Time to Buy and Sell Stock IV
Linear DP⚓︎
- 120: Triangle
- 300: Longest Increasing Subsequence
- 674: Longest Continuous Increasing Subsequence
- 673: Number of Longest Increasing Subsequence
- 1143: Longest Common Subsequence
- 72: Edit Distance