📗
LeetCode Notes
  • Introduction & Template
  • Binary Search
  • Sliding Window && Substring Problem
  • Iterative Inorder Trasversal
  • iterative BFS binary tree search
  • Sliding window
  • 772. Basic Calculator III
  • Union-Find
  • Algorithm to remember
    • Sort
      • 75. Sort Colors!
    • 215. QuickSelect!
    • LinkedList
    • 21. Merge Two Sorted Lists
    • 51. N-Queens
    • 222. Count Complete Tree Nodes
    • 297. Serialize and Deserialize Binary Tree!
    • 739. Daily Temperatures
    • 1541. Minimum Insertions to Balance a Parentheses String!
    • 752. Open the Lock!
    • 659. Split Array into Consecutive Subsequences!
      • 907. Sum of Subarray Minimums
      • 921. Minimum Add to Make Parentheses Valid
      • 969. Pancake Sorting
  • DESIGN
    • 146. LRU Cache!
      • 895. Maximum Frequency Stack!
      • 460. LFU Cache!
      • 295. Find Median from Data Stream!
      • 355. Design Twitter!
    • 239. Sliding Window Maximum!
      • 855. Exam Room!!
      • 227. Basic Calculator II
      • 232. Implement Queue using Stacks
      • 225. Implement Stack using Queues
  • Dynamic Programming
    • 62. Unique Path
    • 63. Unique Path II
    • 1143. Longest Common Subsequence
    • 120. Trangle
    • 152. Maximum Product Subarray
    • 53. Maximum Subarray
    • 322. Coin Change
    • 518. Coin Change 2
    • 279. Perfect Squares
    • 121. Best Time to Buy and Sell Stock
    • 309. Best Time to Buy and Sell Stock with Cooldown
    • 714. Best Time to Buy and Sell Stock with Transaction Fee
    • 188. Best Time to Buy and Sell Stock IV
    • 174. Dungeon Game!
    • 198. House Robber
    • 213. House Robber II
    • 338. Counting Bits
    • 343. Integer Break
    • 300. Longest Increasing Subsequence
    • 354. Russian Doll Envelopes!
    • 357. Count Numbers with Unique Digits!
    • 368. Largest Divisible Subset!
    • 376. Wiggle Subsequence
    • 397. Integer Replacement!
    • 413. Arithmetic Slices
    • 410. Split Array Largest Sum!
    • 416. Partition Equal Subset Sum!
    • 435. Non-overlapping Intervals!
    • 96. Unique Binary Search Trees!
    • 95. Unique Binary Search Trees II
    • Untitled
  • dfs and bfs
    • 200. Number of Islands
    • 22. Generate Parentheses
    • 263. Ugly Number
    • 50. Pow(x, n)
    • 329. Longest Increasing Path in a Matrix
    • 130. Surrounded Regions
  • Tree & BFS & DFS
    • 347. Top K Frequent Elements
    • 429. N-ary Tree Level Order Traversal
    • 589. N-ary Tree Preorder Traversal
    • 590. N-ary Tree Postorder Traversal
    • 94. Binary Tree Inorder Traversal
    • 124. Binary Tree Maximum Path Sum
    • 98. Validate Binary Search Tree!
    • 99. Recover Binary Search Tree!
    • 100. Same Tree
    • 101. Symmetric Tree
    • 102. Binary Tree Level Order Traversal
    • 103. Binary Tree Zigzag Level Order Traversal!
    • 104. Maximum Depth of Binary Tree
    • 107. Binary Tree Level Order Traversal II
    • 108. Convert Sorted Array to Binary Search Tree!
    • 109. Convert Sorted List to Binary Search Tree
    • 110. Balanced Binary Tree
    • 111. Minimum Depth of Binary Tree
    • 112. Path Sum
    • 113. Path Sum II
    • 116. Populating Next Right Pointers in Each Node
    • 129. Sum Root to Leaf Numbers
    • 199. Binary Tree Right Side View
    • 226. Invert Binary Tree
    • 230. Kth Smallest Element in a BST
    • 404. Sum of Left Leaves
  • Backtrack
    • 46. Permutations
    • 47. Permutations II
    • 78. Subsets
    • 90. Subsets II
    • 40. Combination Sum II
    • 37. Sudoku Solver
  • Tire Tree
    • 208. Implement Trie (Prefix Tree)
    • 212. Word Search II
  • Search
    • 153. Find Minimum in Rotated Sorted Array
  • Array
    • Binary Search Template
  • 4. Median of Two Sorted Arrays
  • 11. Container With Most Water
  • 26. Remove Duplicates from Sorted Array
  • 27. Remove Element
  • 33. Search in Rotated Sorted Array
  • 34. Find First and Last Position of Element in Sorted Array
  • 35. Search Insert Position
  • 41. First Missing Positive
  • 42. Trapping Rain Water
  • 45. Jump Game II
  • 55. Jump Game
  • 48. Rotate Image
  • 53. Maximum Subarray
  • 54. Spiral Matrix
  • 56. Merge Intervals
  • 57. Insert Interval
  • 64. Minimum Path Sum
  • 74. Search a 2D Matrix
  • 75. Sort Colors
  • String
    • 3. Longest Substring Without Repeating Characters !
  • 438. Find All Anagrams in a String
  • 438. Find All Anagrams in a String
  • 567. Permutation in String
  • 76. Minimum Window Substring
  • 5. Longest Palindromic Substring
  • 6. ZigZag Conversion
  • 8. String to Integer (atoi)
  • 12. Integer to Roman
  • 17. Letter Combinations of a Phone Number
  • 28. Implement strStr()
  • 32. Longest Valid Parentheses
  • 43. Multiply Strings
  • 49. Group Anagrams
  • 65. Valid Number
  • 67. Add Binary
  • 71. Simplify Path
  • 93. Restore IP Addresses
  • 97. Interleaving String
  • 115. Distinct Subsequences
  • TEMPLATE
  • Two Pointers
    • 15. 3Sum
    • 16. 3Sum Closest
    • 18. 4Sum
    • 19. Remove Nth Node From End of List
    • 61. Rotate List
    • 80. Remove Duplicates from Sorted Array II
    • 82. Remove Duplicates from Sorted List II
    • 143. Reorder List
    • 151. Reverse Words in a String
    • 160. Intersection of Two Linked Lists!
    • 167. Two Sum II - Input array is sorted
    • 234. Palindrome Linked List!
    • 142. Linked List Cycle II!
    • 287. Find the Duplicate Number!
    • 392. Is Subsequence
  • Stack
    • 287. Find the Duplicate Number!
    • 94. Binary Tree Inorder Traversal
    • 144. Binary Tree Preorder Traversal
    • 145. Binary Tree Postorder Traversal!
    • 114. Flatten Binary Tree to Linked List!
    • 150. Evaluate Reverse Polish Notation
    • 224. Basic Calculator
    • 331. Verify Preorder Serialization of a Binary Tree
    • 385. Mini Parser
    • 402. Remove K Digits
    • 456. 132 Pattern!
    • 496. Next Greater Element I!
    • 503. Next Greater Element II
    • 581. Shortest Unsorted Continuous Subarray!
    • 636. Exclusive Time of Functions!
    • 682. Baseball Game
    • 726. Number of Atoms
    • 856. Score of Parentheses!
    • 880. Decoded String at Index
    • 897. Increasing Order Search Tree!
    • 337. House Robber III!
  • LinkedList
    • 23. Merge k Sorted Lists
  • Graph
    • 797. All Paths From Source to Target
    • 207. Course Schedule!
    • 210. Course Schedule II!
    • 277. Find the Celebrity!
    • 547. Number of Provinces!
    • 773. Sliding Puzzle
    • 1514. Path with Maximum Probability
    • 785. Is Graph Bipartite?
    • 323. Number of Connected Components in an Undirected Graph
    • 990. Satisfiability of Equality Equations
    • 261. Graph Valid Tree
    • 1135. Connecting Cities With Minimum Cost
    • 1584. Min Cost to Connect All Points
Powered by GitBook