100 Leetcode Must Known
Array:
- Two Sum
- Container With Most Water
- Best Time to Buy and Sell Stock
- Product of Array Except Self
- Maximum Subarray
- Merge Intervals
- Rotate Array
- Combination Sum
- Missing Number
- Find All Numbers Disappeared in an Array
String:
- Reverse String
- Valid Anagram
- Longest Palindromic Substring
- Group Anagrams
- Valid Parentheses
- Longest Common Prefix
- String to Integer (atoi)
- Palindrome Permutation
- Longest Substring Without Repeating Characters
- ZigZag Conversion
Linked List:
- Reverse Linked List
- Merge Two Sorted Lists
- Add Two Numbers
- Remove Nth Node From End of List
- Intersection of Two Linked Lists
- Linked List Cycle
- Palindrome Linked List
- Flatten a Multilevel Doubly Linked List
- Copy List with Random Pointer
- LRU Cache
Binary Tree:
- Maximum Depth of Binary Tree
- Invert Binary Tree
- Symmetric Tree
- Construct Binary Tree from Preorder and Inorder Traversal
- Validate Binary Search Tree
- Lowest Common Ancestor of a Binary Tree
- Binary Tree Level Order Traversal
- Path Sum
- Binary Tree Zigzag Level Order Traversal
- Flatten Binary Tree to Linked List
Dynamic Programming:
- Climbing Stairs
- Coin Change
- Longest Increasing Subsequence
- Maximum Subarray
- Unique Paths
- Edit Distance
- House Robber
- Longest Palindromic Subsequence
- Word Break
- Best Time to Buy and Sell Stock
Graph:
- Course Schedule
- Number of Islands
- Word Ladder
- Clone Graph
- Minimum Spanning Tree
- Network Delay Time
- Pacific Atlantic Water Flow
- Word Search
- Alien Dictionary
- Graph Valid Tree
Backtracking:
- Permutations
- Subsets
- Letter Combinations of a Phone Number
- Palindrome Partitioning
- Word Search
- Combination Sum
- N-Queens
- Generate Parentheses
- Sudoku Solver
- Restore IP Addresses
Sorting and Searching:
- Merge Intervals
- Find First and Last Position of Element in Sorted Array
- Search in Rotated Sorted Array
- Find Peak Element
- Kth Largest Element in an Array
- Median of Two Sorted Arrays
- Search a 2D Matrix
- Merge k Sorted Lists
- Count of Smaller Numbers After Self
- Find Minimum in Rotated Sorted Array
Stack and Queue:
- Valid Parentheses
- Min Stack
- Implement Queue using Stacks
- Evaluate Reverse Polish Notation
- Sliding Window Maximum
- Implement Stack using Queues
- Design Circular Queue
- Largest Rectangle in Histogram
- Design Snake Game
- Simplify Path
Greedy:
- Jump Game
- Container With Most Water
- Non-overlapping Intervals
- Partition Labels
- Minimum Number of Arrows to Burst Balloons
- Task Scheduler
- Lemonade Change
- Queue Reconstruction by Height
- Gas Station
- Meeting Rooms II