This repo recors my daily LeetCode algo problems solutions. Problems list reffered to greyireland - algorithm-pattern
-
Sorting Algorithms
-
Most Know
-
Divide and Conquer
-
Binary Tree / Binary Search Tree / Tree
- 104. Maximum Depth of Binary Tree
- 110. Balanced Binary Tree
- 124. Binary Tree Maximum Path Sum
- 236. Lowest Common Ancestor of a Binary Tree
- 102. Binary Tree Level Order Traversal
- 107.Binary Tree Level Order Traversal II
- 98. Validate Binary Search Tree
- 701. Insert into a Binary Search Tree
- 450. Delete Node in a BST
- 814. Binary Tree Pruning
- 429. N-ary Tree Level Order Traversal
- 669. Trim a Binary Search Tree
- 1325. Delete Leaves With a Given Value
- Red Black Tree
- 297. Serialize and Deserialize Binary Tree
- 449. Serialize and Deserialize BST
- 590. N-ary Tree Postorder Traversal
- 897. Increasing Order Search Tree
- 117. Populating Next Right Pointers in Each Node II
- 95. Unique Binary Search Trees II
- 865. Smallest Subtree with all the Deepest Nodes
- 1457. Pseudo-Palindromic Paths in a Binary Tree
- 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
-
Recursion
-
KnapSack problems
-
Greedy Algorithm
-
LinkedList
- 2. Add Two Numbers
- 83. Remove Duplicates from Sorted List
- 82. Remove Duplicates from Sorted List II
- 206. Reverse Linked List
- 92.Reverse-Linked-List
- 21. Merge Two Sorted Lists
- 86. Partition List
- 148. Sort List
- 143. Reorder List
- 141. Linked List Cycle
- 142. Linked List Cycle II
- 138. Copy List with Random Pointer
- 160. Intersection of Two Linked Lists
- 1721. Swapping Nodes in a Linked List
-
Bitwise
-
Queue and Stack
-
- 35. Search Insert Position
- 74. Search a 2D Matrix
- 278. First Bad Version
- 153. Find Minimum in Rotated Sorted Array
- 33. Search in Rotated Sorted Array
- 81. Search in Rotated Sorted Array II
- 530. Minimum Absolute Difference in BST
- 700. Search in a Binary Search Tree
- 173. Binary Search Tree Iterator
- 941. Valid Mountain Array
- 1539. Kth Missing Positive Number
- 34. Find First and Last Position of Element in Sorted Array
-
Dynamic Programming
-
Graph
- Graph Algorithm Template
- 742. Closest Leaf in a Binary Tree
- 200. Number of Islands
- 133. Clone Graph
- 841. Keys and Rooms
- 399. Evaluate Division
- DFS
- BFS
- Topological Sort
- Dijkstra / directed graph shortest path
- Bipartite
- Strong Components
- Union Find
- in-degree && out-degree
- Bellmand-Ford
- Tarjan
-
Two Pointers
-
Strings Manipulation
-
Array
- 66. Plus One
- 118. Pascal's Triangle
- 119. Pascal's Triangle II
- 217. Contains Duplicate
- 136. Single Number
- 350. Intersection of Two Arrays II
- 189. Rotate Array
- 59. Spiral Matrix II
- 1010. Pairs of Songs With Total Durations Divisible by 60
- 977. Squares of a Sorted Array
- 454. 4Sum II
- 334. Increasing Triplet Subsequence
- 498. Diagonal Traverse
- 289. Game of Life
- 1337. The K Weakest Rows in a Matrix
- 1748. Sum of Unique Elements
- 485. Max Consecutive Ones
- 923.3Sum With Multiplicity
- 775.Global and Local Inversions
- 48. Rotate Image
- 56. Merge Intervals
- 1658. Minimum Operations to Reduce X to Zero
-
Back Tracking
-
String
- 784. Letter Case Permutation
- StringBuilder
- Palindrome
-
Probability
-
Others
-
-
Chapter 1 Arrays and String
-
Chapter 2 Linked List
-
Chapter 8 Recursion and Dynamic Programming
-