| 2. Add Two Numbers |
linked list |
| 3. Longest Substring Without Repeating Characters |
hash map |
| 11. Container With Most Water |
greedy |
| 5. Longest Palindromic Substring |
dynamic programming |
| 200. Number of Islands |
dfs |
| 56. Merge Intervals |
sorting |
| 15. 3Sum |
hash map, sorting |
| 138. Copy List with Random Pointer |
hash map, linked list |
| 8. String to Integer (atoi) |
general |
| 12. Integer to Roman |
general |
| 238. Product of Array Except Self |
general |
| 33. Search in Rotated Sorted Array |
binary search |
| 17. Letter Combinations of a Phone Number |
dfs |
| 31. Next Permutation |
permutation |
| 139. Word Break |
trie, dynamic programming |
| 681. Next Closest Time |
dfs |
| 192. Word Frequency |
bash |
| 49. Group Anagrams |
hash table, sorting |
| 347. Top K Frequent Elements |
hash table, quick sort, priority queue |
| 151. Reverse Words in a String |
general |
| 253. Meeting Rooms II |
sorting, priority queue |
| 695. Max Area of Island |
dfs |
| 54. Spiral Matrix |
general |
| 50. Pow(x, n) |
recursive |
| 19. Remove Nth Node From End of List |
linked list |
| 91. Decode Ways |
dynamic programming |
| 535. Encode and Decode TinyURL |
hash table |
| 29. Divide Two Integers |
general |
| 46. Permutations |
dfs |
| 22. Generate Parentheses |
dfs |
| 98. Validate Binary Search Tree |
binary search tree |
| 92. Reverse Linked List II |
linked list |
| 215. Kth Largest Element in an Array |
quick sort |
| 227. Basic Calculator II |
stack |
| 560. Subarray Sum Equals K |
hash table |
| 127. Word Ladder |
bfs |
| 103. Binary Tree Zigzag Level Order Traversal |
bfs, stack |
| 79. Word Search |
dfs |
| 300. Longest Increasing Subsequence |
dynamic programming, binary search |
| 94. Binary Tree Inorder Traversal |
binary tree |
| 102. Binary Tree Level Order Traversal |
bfs, binary tree |
| 236. Lowest Common Ancestor of a Binary Tree |
binary tree |
| 380. Insert Delete GetRandom O(1) |
hash table |
| 153. Find Minimum in Rotated Sorted Array |
binary search |
| 133. Clone Graph |
dfs |
| 341. Flatten Nested List Iterator |
dfs |
| 722. Remove Comments |
string |
| 36. Valid Sudoku |
general |
| 48. Rotate Image |
general |
| 173. Binary Search Tree Iterator |
binary search tree, stack |
| 322. Coin Change |
dynamic programming |