- Invert Binary Tree.
Trees/invert.py
- Maximum Depth.
Tress/max-depth.py
- Balanced Binary Tree.
Trees/balance-binary-trees.py
- Same Tree.
Trees/same-tree.py
- LCA of BST.
Trees/lca.py
- Level Order Traversal of a BST.
Trees/level-order.py
- Right Side view.
Trees/right-side-view.py
- Count Good Node.
Trees/count-good-nodes.py
- Valid BST.
Trees/valid-bst.py
- Kth smallest element.
Trees/ksmallest-element.py
- Binary Tree from Inorder and Preorder traversal.
Trees/inorder-preorder.py
- Binary Tree Maximum Path Sum.
Trees/max-path-sum.py
- Serialize and Deserialize Binary Tree.
Trees/ser-deser-btree.py
- DFS.
Graphs/dfs.py
- BFS.
Graphs/bfs.py
- Number of provinces.
Graphs/province.py
- Detect cycle in undirected graph.
Graphs/cycle-undirected.py
- 01 Matrix.
Graphs/01matrix.py
- Surrounded Regions.
Graps/surrounded-regions.py
- Number of Enclaves.
Graphs/num-of-enclaves.py
- Number of Islands.
Graphs/num-of-islands.py
- Minimum Knight Moves.
Graphs/min-knight-moves.py
- Minimum Height Trees.
Graphs/min-height-trees.py
- Longest Non-decreasing Subarray From Two Arrays.
DP/non-decreasing-subarr.py
- Delete and Earn.
DP/delete-and-earn.py
- Count Ways To Build Good Strings.
DP/count-ways.py
- Knight Probability in Chessboard.
DP/knight-probability.py
- Best Time to Buy and Sell Stock II.
DP/best-time-buy-sell2.py
- House Robber.
DP/house-robber.py
- Minimum Equal Sum of Two Arrays After Replacing Zeros.
Arrays/min-equal-sum.py
- Subarray Sums Divisible by K.
Arrays/subarray-sum-divisible-by-k.py
- Find the Duplicate Number.
Arrays/find-duplicate-number.py
- Evaluate Reverse Polish Notation.
Stack/reverse-polish-notation.py
- Insert Delete GetRandom O(1).
Stack/randomized-set.py
- N-Queens.
Backtracking/nqueen.py
- Sliding Window Maximum.
Sliding Window/sliding-window-max.py