🕸️
algorithm_practice
CtrlK
  • Introduction
  • Data Structure
  • 258. Add Digits
  • 235. Lowest Common Ancestor of a Binary Search Tree
  • Quick Sort & Merge Sort
  • 215. Kth Largest Element in an Array
  • 912. Sort an Array
  • 409. Longest Palindrome
  • 125. Valid Palindrome
  • 702. Concatenated String with Uncommon Characters of Two Strings
  • 513. Find Bottom Left Tree Value
  • 333. Largest BST SubtreeUntitled
  • 567. Permutation in String
  • 756. Multiply Two Numbers
  • 139. Word Break
  • 120. Triangle
  • 683. Word Break III
  • 1332. Number of 1 Bits
  • 844. Number Pair Statistics
  • 438. Find All Anagrams in a String
  • 30. Substring with Concatenation of All Words
  • 762. Prime Number of Set Bits in Binary Representation
  • 89. Gray Code
  • 535. Encode and Decode TinyURL
  • 155. Min Stack
  • Combination & Permutation
    • 31. Next Permutation
    • 60. Permutation Sequence
  • Tree
    • 102. Binary Tree Level Order Traversal
    • 1120. Maximum Average Subtree
    • 111. Minimum Depth of Binary Tree
    • 199. Binary Tree Right Side View
    • 513. Find Bottom Left Tree Value
    • 606. Construct String from Binary Tree
    • 617. Merge Two Binary Trees
    • 538. Convert BST to Greater Tree
    • 628. Maximum Subtree
    • 652. Find Duplicate Subtrees
  • Array
    • 238. Product of Array Except Self
    • 59. Spiral Matrix II
  • Stack
    • 739. Daily Temperatures
    • 503. Next Greater Element II
  • Hash Table
    • 645. Set Mismatch
    • 1488. Avoid Flood in The City
    • 138. Copy List with Random Pointer
    • 1903. Department Statistics
  • Connectivity
    • 51. N-Queens
    • 200. Number of Islands
    • 130. Surrounded Regions
    • 133. Clone Graph
    • 547. Friend Circles
  • Design
    • 1472. Design Browser History
  • Sort
    • 973. K Closest Points to Origin
    • 1268. Search Suggestions System
  • DFS
    • 1192. Critical Connections in a Network
    • 1466. Reorder Routes to Make All Paths Lead to the City Zero
  • BFS
    • 103. Binary Tree Zigzag Level Order Traversal
    • 22. Generate Parentheses
    • 662. Maximum Width of Binary Tree
    • 242. Convert Binary Tree to Linked Lists by Depth
    • 1410. Matrix Water Injection
    • 1293. Shortest Path in a Grid with Obstacles Elimination
    • 572. Subtree of Another Tree
    • 116. Populating Next Right Pointers in Each Node
  • Binary Search | Divide & Conquer
    • 4. Median of Two Sorted Arrays
    • 240. Search a 2D Matrix II
  • Two Pointers
    • 117. Populating Next Right Pointers in Each Node II
    • 587. Two Sum - Unique pairs
    • 532. K-diff Pairs in an Array
  • Sliding Window
    • 424. Longest Repeating Character Replacement
    • 3. Longest Substring Without Repeating Characters
    • 159. Longest Substring with At Most Two Distinct Characters
    • 340. Longest Substring with At Most K Distinct Characters
    • 438. Find All Anagrams in a String
    • 567. Permutation in String
    • 992. Subarrays with K Different Integers
    • 1100. Find K-Length Substrings With No Repeated Characters
    • 76. Minimum Window Substring
    • 239. Sliding Window Maximum
  • Recursive & DP
    • 213. House Robber II
    • 198. House Robber
    • 300. Longest Increasing Subsequence
    • 902. Numbers At Most N Given Digit Set
    • 119. Pascal's Triangle II
  • Greedy & Heap
    • 1736. Throw garbage
    • 692. Top K Frequent Words
    • 1167. Minimum Cost to Connect Sticks
  • 151. Reverse Words in a String
  • 387. First Unique Character in a String
  • 189. Rotate Array
  • 1442. Count Triplets That Can Form Two Arrays of Equal XOR
  • 459. Repeated Substring Pattern
  • 836. Rectangle Overlap
  • 682. Baseball Game
  • 1730. Spreadsheet Notation Conversion
  • 273. Integer to English Words
  • 202. Happy Number
  • 171. Excel Sheet Column Number
  • 819. Most Common Word
  • 414. Third Maximum Number
  • 556. Next Greater Element III
  • 21. Merge Two Sorted Lists
  • 23. Merge k Sorted Lists
  • 763. Partition Labels
  • 26. Remove Duplicates from Sorted Array
  • 11. Container With Most Water
  • 141. Linked List Cycle
  • 15. 3Sum
  • 42. Trapping Rain Water
  • 16. 3Sum Closest
  • 149. Max Points on a Line
  • 108. Convert Sorted Array to Binary Search Tree
  • 109. Convert Sorted List to Binary Search Tree
  • 394. Decode String
  • 100. Same Tree
  • 105. Construct Binary Tree from Preorder and Inorder Traversal
  • 106. Construct Binary Tree from Inorder and Postorder Traversal
  • 979. Distribute Coins in Binary Tree
  • 101. Symmetric Tree
  • 695. Max Area of Island
  • 206. Reverse Linked List
  • 92. Reverse Linked List II
  • 430. Flatten a Multilevel Doubly Linked List
  • 232. Implement Queue using Stacks
  • 237. Delete Node in a Linked List
  • 146. LRU Cache
  • 144. Binary Tree Preorder Traversal
  • 94. Binary Tree Inorder Traversal
  • 145. Binary Tree Postorder Traversal
  • 443. String Compression
  • 167. Two Sum II - Input array is sorted
  • 653. Two Sum IV - Input is a BST
  • 2. Add Two Numbers
  • 43. Multiply Strings
  • 322. Coin Change
  • 518. Coin Change 2
  • 49. Group Anagrams
  • 162. Find Peak Element
  • 852. Peak Index in a Mountain Array
  • 9. Palindrome Number
  • 114. Flatten Binary Tree to Linked List
  • 20. Valid Parentheses
  • 450. Delete Node in a BST
  • 6. ZigZag Conversion
  • 5. Longest Palindromic Substring
  • 582. Kill Process
  • 797. All Paths From Source to Target
  • 723. Candy Crush
  • 1396. Design Underground System
  • 1169. Invalid Transactions
  • 253. Meeting Rooms II
  • 429. N-ary Tree Level Order Traversal
  • 1530. Number of Good Leaf Nodes Pairs
  • 987. Vertical Order Traversal of a Binary Tree
  • 33. Search in Rotated Sorted Array
  • 50. Pow(x, n)
  • 121. Best Time to Buy and Sell Stock
  • 12. Integer to Roman
  • 283. Move Zeroes
  • 346. Moving Average from Data Stream
  • 88. Merge Sorted Array
  • 301. Remove Invalid Parentheses
  • 486. Merge K Sorted Arrays
  • 362. Design Hit Counter
  • 99. Recover Binary Search Tree
  • 425. Word Squares
  • 91. Decode Ways
  • 583. Delete Operation for Two Strings
  • 460. LFU Cache
  • 300. Longest Increasing Subsequence
  • 1047. Remove All Adjacent Duplicates In String
  • 1209. Remove All Adjacent Duplicates in String II
  • 332. Reconstruct Itinerary
  • 445. Add Two Numbers II
  • 1249. Minimum Remove to Make Valid Parentheses
  • 921. Minimum Add to Make Parentheses Valid
  • 1029. Two City Scheduling
  • 41. First Missing Positive
  • 694. Number of Distinct Islands
  • 140. Word Break II
  • 1155. Number of Dice Rolls With Target Sum
  • 384. Shuffle an Array
  • 1300. Sum of Mutated Array Closest to Target
  • 700. Search in a Binary Search Tree
  • 701. Insert into a Binary Search Tree
  • 977. Squares of a Sorted Array
  • 366. Find Leaves of Binary Tree
  • 1123. LCA of Deepest Leaves
  • 220. Contains Duplicate III
  • 968. Binary Tree Cameras
  • 257. Binary Tree Paths
  • 124. Binary Tree Maximum Path Sum
  • 160. Intersection of Two Linked Lists
  • 543. Diameter of Binary Tree
  • 1606. Find Servers That Handled Most Number of Requests
  • 1095. Find in Mountain Array
  • 98. Validate Binary Search Tree
  • 380. Insert Delete GetRandom O(1)
  • 64. Minimum Path Sum
  • 78. Subsets
  • 1539. Kth Missing Positive Number
  • 470. Implement Rand10() Using Rand7()
  • 236. Lowest Common Ancestor of a Binary Tree
  • 1012. Numbers With Repeated Digits
  • 122. Best Time to Buy and Sell Stock II
  • 123. Best Time to Buy and Sell Stock III
  • 188. Best Time to Buy and Sell Stock IV
  • 70. Climbing Stairs
  • 210. Course Schedule II
  • 56. Merge Intervals
  • 621. Task Scheduler
  • 1244. Design A Leaderboard
  • 269. Alien Dictionary
  • Methodology Summary
  • 74. Search a 2D Matrix
  • 153. Find Minimum in Rotated Sorted Array
  • 154. Find Minimum in Rotated Sorted Array II
  • 4. Median of Two Sorted Arrays
  • 82. Remove Duplicates from Sorted List II
  • 86. Partition List
  • 110. Balanced Binary Tree
  • 530. Minimum Absolute Difference in BST
  • 173. Binary Search Tree Iterator
Powered by GitBook
On this page

Was this helpful?

Greedy & Heap

1736. Throw garbage692. Top K Frequent Words1167. Minimum Cost to Connect Sticks
Previous119. Pascal's Triangle IINext1736. Throw garbage

Last updated 5 years ago

Was this helpful?