📝 Leetcode problems
- https://github.com/wisdompeak/LeetCode
- https://leetcode.com/discuss/general-discussion/419062/list-of-leetcode-question-to-cover-all-the-concepts-and-type-of-questions
BFS & DFS
- 37. Sudoku Solver
- 39. Combination Sum
- 40. Combination Sum II
- 51. N-Queens
- Minesweeper
- Number of Islands
- Course Schedule
Binary Search
- 4. Median of Two Sorted Arrays
- 33. Search in Rotated Sorted Array
- 34. Find First and Last Position of Element in Sorted Array
- 35. Search Insert Position
- 69. Sqrt(x)
- Binary Search
Bit manipulation
Deque
Divide and Conquer
-
https://www.geeksforgeeks.org/merge-sort/
- Count of Smaller Numbers After Self
- Count of Range Sum
DP
https://leetcode.com/discuss/study-guide/458695/Dynamic-Programming-Patterns
- 10. Regular Expression Matching
- 42. Trapping Rain Water
- 44. Wildcard Matching
- 53. Maximum Subarray
- 62. Unique Paths
- 63. Unique Paths II
- 64. Minimum Path Sum
- 70. Climbing Stairs
- Word Break
Graph
Greedy
Hash
Heap / Priority Queue
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
- Reverse linked list
- Reverse linked list II
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List II
- Palindrome Linked List
Recursion
Stack
String
- 6. ZigZag Conversion
- 14. Longest Common Prefix
- 28. Implement strStr()
- 30. Substring with Concatenation of All Words
- 58. Length of Last Word
Tree
- Binary Tree Preorder Traversal
- Binary Tree Inorder Traversal
- Binary Tree Maximum Path Sum
- Print Binary Tree
- Balanced Binary Tree
- Invert Binary Tree
Trie
Two Pointers & Sliding Window
- 3. Longest Substring Without Repeating Characters
- 5. Longest Palindromic Substring
- 11. Container With Most Water
- 15. 3 sum
- 16. 3Sum Closest
- Grumpy Bookstore Owner
- Number of Substrings Containing All Three Characters
- Count Number of Nice Subarrays
- Replace the Substring for Balanced String
- Max Consecutive Ones III
- Binary Subarrays With Sum
- Subarrays with K Different Integers
- Fruit Into Baskets
- Shortest Subarray with Sum at Least K
- Minimum Size Subarray Sum
Union Find
- TODO
Other
- 7. Reverse Integer
- 8. String to Integer (atoi)
- 9. Palindrome Number
- 12. Integer to Roman
- 13. Roman to Integer
- 17. Letter Combinations of a Phone Number
- 26. Remove Duplicates from Sorted Array
- 27. Remove Element
- 31. Next Permutation
- 36. Valid Sudoku
- 41. First Missing Positive
- 43. Multiply Strings
- 48. Rotate Image
- 54. Spiral Matrix
- 56. Merge Intervals
- 57. Insert Interval
- 59. Spiral Matrix II
- 60. Permutation Sequence
- 65. Valid Number
- 66. Plus One
- 68. Text Justification
- 73. Set Matrix Zeroes
- 75. Sort Colors
Comments