Tags
Linked List
- Linked List
- 2 Add Two Numbers
- 19 Remove Nth Node From End of List
- 21 Merge Two Sorted Lists
- 23 Merge k Sorted Lists
- 24 Swap Nodes in Pairs
- 25 Reverse Nodes in k-Group
- 61 Rotate List
- 82 Remove Duplicates from Sorted List II
- 83 Remove Duplicates from Sorted List
- 86 Partition List
- 92 Reverse Linked List II
- 109 Convert Sorted List to Binary Search Tree
- 138 Copy List with Random Pointer
- 141 Linked List Cycle
- 142 Linked List Cycle II
- 143 Reorder List
- 147 Insertion Sort List
- 148 Sort List
- 160 Intersection of Two Linked List
- 203 Remove Linked List Elements
- 206 Reverse Linked List
- 234 Palindrome Linked List
- 237 Delete Node in a Linked List
- 328 Odd Even List
- 369 Plus One Linked List
- 379 Design Phone Directory
- 426 Convert Binary Search Tree to Sorted Doubly Linked List
- 430 Flatten a Multilevel Doubly Linked List
- 445 Add Two Numbers II
- 707 Design Linked List
- 708 Insert into a Cyclic Sorted List
- 725 Split Linked List in Parts
- 817 Linked List Components
- 876 Middle of the Linked List
- 1019 Next Greater Node in Linked List
Binary Search
- Binary Search
- 4 Median of Two Sorted Arrays
- 29 Divide Two Integers
- 33 Search in Rotated Sorted Array
- 34 Find First and Last Position of Element in Sorted Array
- 35 Search Insert Position
- 50 Pow(x, n)
- 69 Sqrt
- 74 Search a 2D Matrix
- 81 Search in Rotated Sorted Array II
- 153 Find Minimum in Rotated Sorted Array
- 154 Find Minimum in Rotated Sorted Array II
- 162 Find Peak Element
- 167 Two Sum II Input Array is sorted
- 174 Dungeon Game
- 209 Minimum Size Subarray Sum
- 222 Count Complete Tree Nodes
- 230 Kth Smallest Element in a BST
- 240 Search a 2D Matrix II
- 270 Closest Binary Search Tree Value
- 275 H-index II
- 278 First Bad Version
- 287 Find the Duplicate Number
- 300 Longest Increasing Subsequence
Array
- 1 Two Sum
- 4 Median of Two Sorted Arrays
- 11 Container With Most Water
- 15 3Sum
- 16 3Sum Closest
- 18 4Sum
- 26 Remove Duplicates from Sorted Array
- 27 Remove Element
- 31 Next Permutation
- 33 Search in Rotated Sorted Array
- 34 Find First and Last Position of Element in Sorted Array
- 35 Search Insert Position
- 39 Combination Sum
- 40 Combination Sum II
- 41 First Missing Positive
- 42 Trapping Rain Water
- 62 Unique Paths
- 63 Unique Paths II
- 64 Minimum Path Sum
- 74 Search a 2D Matrix
- 81 Search in Rotated Sorted Array II
- 90 Subsets II
- 153 Find Minimum in Rotated Sorted Array
- 154 Find Minimum in Rotated Sorted Array II
- 162 Find Peak Element
- 167 Two Sum II Input Array is sorted
- 209 Minimum Size Subarray Sum
- 216 Combination Sum III
- 287 Find the Duplicate Number
- 414 Third Maximum Number
Hash Table
- 1 Two Sum
- 3 Longest Substring Without Repeating Characters
- 18 4Sum
- 30 Substring with Concatenation of All Words
- 36 Valid Sudoku
- 37 Sudoku Solver
- 138 Copy List with Random Pointer
- 141 Linked List Cycle
- 160 Intersection of Two Linked List
- 287 Find the Duplicate Number
- 379 Design Phone Directory
- 451 Sort Characters By Frequency
- 726 Number of Atoms
Math
- 2 Add Two Numbers
- 7 Reverse Integer
- 8 String to Integer (atoi)
- 9 Palindrome Number
- 12 Integer to Roman
- 13 Roman to Integer
- 29 Divide Two Integers
- 50 Pow(x, n)
- 69 Sqrt
Two Pointers
- 3 Longest Substring Without Repeating Characters
- 11 Container With Most Water
- 15 3Sum
- 16 3Sum Closest
- 18 4Sum
- 19 Remove Nth Node From End of List
- 26 Remove Duplicates from Sorted Array
- 27 Remove Element
- 28 Implement strStr()
- 30 Substring with Concatenation of All Words
- 42 Trapping Rain Water
- 61 Rotate List
- 86 Partition List
- 141 Linked List Cycle
- 142 Linked List Cycle II
- 160 Intersection of Two Linked List
- 167 Two Sum II Input Array is sorted
- 209 Minimum Size Subarray Sum
- 287 Find the Duplicate Number
String
- 3 Longest Substring Without Repeating Characters
- 5 Longest Palindromic Substring
- 8 String to Integer (atoi)
- 10 Regular Expression Matching
- 12 Integer to Roman
- 13 Roman to Integer
- 14 Longest Common Prefix
- 17 Letter Combinations of a Phone Number
- 20 Valid Parentheses
- 22 Generate Parentheses
- 28 Implement strStr()
- 30 Substring with Concatenation of All Words
- 32 Longest Valid Parentheses
- 38 Count and Say
- 93 Restore IP Addresses
- 686 Repeated String Match
- 1081 Smallest Subsequence of Distinct Characters
Sliding Window
Divide and Conquer
- 4 Median of Two Sorted Arrays
- 23 Merge k Sorted Lists
- 215 Kth Largest Element in an Array
- 240 Search a 2D Matrix II
- 426 Convert Binary Search Tree to Sorted Doubly Linked List
Dynamic Programming
- 5 Longest Palindromic Substring
- 10 Regular Expression Matching
- 32 Longest Valid Parentheses
- 62 Unique Paths
- 63 Unique Paths II
- 64 Minimum Path Sum
- 174 Dungeon Game
- 198 House Robber
- 300 Longest Increasing Subsequence
- 377 Combination Sum IV
Backtracking
- 10 Regular Expression Matching
- 17 Letter Combinations of a Phone Number
- 22 Generate Parentheses
- 37 Sudoku Solver
- 39 Combination Sum
- 40 Combination Sum II
- 46 Permutations
- 77 Combinations
- 90 Subsets II
- 93 Restore IP Addresses
- 211 Add and Search Word - Data Structure Design
- 216 Combination Sum III
- 526 Beautiful Arrangement
Stack
- 20 Valid Parentheses
- 42 Trapping Rain Water
- 726 Number of Atoms
- 1019 Next Greater Node in Linked List
Heap
- 23 Merge k Sorted Lists
- 215 Kth Largest Element in an Array
- 451 Sort Characters By Frequency
- 703 Kth Largest Element in a Stream
Tree
- 98 Valid Binary Tree
- 222 Count Complete Tree Nodes
- 230 Kth Smallest Element in a BST
- 270 Closest Binary Search Tree Value
- 426 Convert Binary Search Tree to Sorted Doubly Linked List
Depth-first Search
- 98 Valid Binary Tree
- 109 Convert Sorted List to Binary Search Tree
- 200 Numbers of Islands
- 207 Course Schedule
- 430 Flatten a Multilevel Doubly Linked List
Sort
Breadth-first Search
Union Find
Breath-first Search
Graph
Topological Sort
Design
- 208 Implement Trie(Prefix Tree)
- 211 Add and Search Word - Data Structure Design
- 379 Design Phone Directory
- 707 Design Linked List