1. Introduction
  2. 1. Array And String
    1. 1.1. Merge Sorted Array
    2. 1.2. Remove Element
    3. 1.3. Remove Duplicates from Sorted Array
    4. 1.4. Remove Duplicates from Sorted Array II
    5. 1.5. Majority Element
    6. 1.6. Rotate Array
    7. 1.7. Best Time to Buy and Sell Stock
    8. 1.8. Best Time to Buy and Sell Stock II
    9. 1.9. Jump Game
    10. 1.10. Jump Game II
    11. 1.11. H-Index
    12. 1.12. Trapping Rain Water
    13. 1.13. Gas Station
  3. 2. Two Pointers
    1. 2.1. Valid Palindrome
    2. 2.2. Is Subsequence
    3. 2.3. Two Sum II - Input Array Is Sorted
    4. 2.4. Container With Most Water
    5. 2.5. 3Sum
  4. 3. Sliding Window
    1. 3.1. Minimum Size Subarray Sum
    2. 3.2. Longest Substring Without Repeating Characters
    3. 3.3. Substring with Concatenation of All Words
    4. 3.4. Minimum Window Substring
  5. 4. Matrix
    1. 4.1. Spiral Matrix
    2. 4.2. Spiral Matrix II
    3. 4.3. Rotate Image
    4. 4.4. Set Matrix Zeroes
  6. 5. Hashmap
    1. 5.1. Two Sum
    2. 5.2. Group Anagrams
    3. 5.3. Longest Consecutive Sequence
  7. 6. Intervals
    1. 6.1. Summary Ranges
    2. 6.2. Merge Intervals
    3. 6.3. Insert Interval
    4. 6.4. Minimum Number of Arrows to Burst Balloons
  8. 7. Stack
    1. 7.1. Valid Parentheses
    2. 7.2. Simplify Path
    3. 7.3. Min Stack
    4. 7.4. Evaluate Reverse Polish Notation
  9. 8. Linked List
    1. 8.1. Linked List Cycle
    2. 8.2. Add Two Numbers
    3. 8.3. Merge Two Sorted Lists
    4. 8.4. Copy List with Random Pointer
    5. 8.5. LRU Cache
    6. 8.6. Reverse Linked List II
    7. 8.7. Remove Duplicates from Sorted List II
    8. 8.8. Partition List
  10. 9. Binary Tree
    1. 9.1. General
      1. 9.1.1. Symmetric Tree
      2. 9.1.2. Construct Binary Tree from Preorder and Inorder Traversal
      3. 9.1.3. Sum Root to Leaf Numbers
      4. 9.1.4. Binary Tree Maximum Path Sum
    2. 9.2. BFS
      1. 9.2.1. Binary Tree Right Side View
      2. 9.2.2. Binary Tree Level Order Traversal
      3. 9.2.3. Binary Tree Zigzag Level Order Traversal
    3. 9.3. BST
      1. 9.3.1. Minimum Absolute Difference in BST
      2. 9.3.2. Kth Smallest Element in a BST
      3. 9.3.3. Validate Binary Search Tree
  11. 10. Graph
    1. 10.1. General
      1. 10.1.1. Number of Islands
      2. 10.1.2. Surrounded Regions
      3. 10.1.3. Course Schedule
      4. 10.1.4. Course Schedule II
    2. 10.2. BFS
      1. 10.2.1. Snakes and Ladders
      2. 10.2.2. Word Ladder
  12. 11. Trie
    1. 11.1. Implement Trie (Prefix Tree)
    2. 11.2. Word Search II
  13. 12. Backtracking
    1. 12.1. Letter Combinations of a Phone Number
    2. 12.2. Combination Sum
    3. 12.3. Word Search
  14. 13. Divide & Conquer
    1. 13.1. Sort List
    2. 13.2. Merge k Sorted Lists
    3. 13.3. Maximum Subarray
    4. 13.4. Maximum Sum Circular Subarray
  15. 14. Binary Search
    1. 14.1. Search a 2D Matrix
    2. 14.2. Search in Rotated Sorted Array
    3. 14.3. Median of Two Sorted Arrays
    4. 14.4. Search Insert Position
  16. 15. Heap
    1. 15.1. Kth Largest Element in an Array
    2. 15.2. Find Median from Data Stream
    3. 15.3. Find K Pairs with Smallest Sums
  17. 16. Bit Manipulation
    1. 16.1. Single Number
    2. 16.2. Single Number II
  18. 17. Math
    1. 17.1. Factorial Trailing Zeroes
    2. 17.2. Pow(x, n)
  19. 18. Dynamic Programming
    1. 18.1. 1 D
      1. 18.1.1. House Robber
      2. 18.1.2. Coin Change
      3. 18.1.3. Word Break
      4. 18.1.4. Longest Increasing Subsequence
      5. 18.1.5. Climbing Stairs
    2. 18.2. Multi Ds
      1. 18.2.1. Minimum Path Sum
      2. 18.2.2. Longest Palindromic Substring
      3. 18.2.3. Interleaving String
      4. 18.2.4. Best Time to Buy and Sell Stock III
      5. 18.2.5. Edit Distance
      6. 18.2.6. Best Time to Buy and Sell Stock IV
      7. 18.2.7. Triangle
      8. 18.2.8. Unique Paths II
      9. 18.2.9. Maximal Square

LeetCode Practising Docs

BST