Featured
Array
-
88. Merge Sorted Array
-
1089. Duplicate Zeros
-
941. Valid Mountain Array
-
1710. Maximum Units on a Truck
-
54. Spiral Matrix
Backtrack
Binary Search
-
33. Search in Rotated Sorted Array
-
81. Search in Rotated Sorted Array II
-
153. Find Minimum in Rotated Sorted Array
-
154. Find Minimum in Rotated Sorted Array II
-
374. Guess Number Higher or Lower
Bit Manipulation
Classic
Design
-
271. Encode and Decode Strings
-
380. Insert Delete GetRandom O\(1\)
-
449. Serialize and Deserialize BST
Dynamic Programming
Graph
Hash Table
-
219. Contains Duplicate II
-
220. Contains Duplicate III
-
1170. Compare Strings by Frequency of the Smallest Character
-
49. Group Anagrams
-
560. Subarray Sum Equals K
Heap
-
347. Top K Frequent Elements
-
128. Longest Consecutive Sequence
-
973. K Closest Points to Origin
-
1135. Connecting Cities With Minimum Cost
-
692. Top K Frequent Words
Inorder Traversal
LeetCode
-
88. Merge Sorted Array
-
1089. Duplicate Zeros
-
941. Valid Mountain Array
-
1710. Maximum Units on a Truck
-
54. Spiral Matrix
Linked List
Math
-
1492. The kth Factor of n
-
829. Consecutive Numbers Sum
-
204. Count Primes
-
553. Optimal Division
-
372. Super Pow
Object Oriented Design
-
710. Random Pick with Blacklist
-
348. Design Tic-Tac-Toe
-
380. Insert Delete GetRandom O\(1\)
-
271. Encode and Decode Strings
Other
-
1446. Consecutive Characters
-
31. Next Permutation
-
386. Lexicographical Numbers
-
48. Rotate Image
-
158. Read N Characters Given Read4 II - Call multiple times
Postorder Traversal
-
337. House Robber III
-
145. Binary Tree Postorder Traversal
-
114. Flatten Binary Tree to Linked List
-
652. Find Duplicate Subtrees
-
543. Diameter of Binary Tree
Preorder Traversal
-
105. Construct Binary Tree from Preorder and Inorder Traversal
-
589. N-ary Tree Preorder Traversal
-
255. Verify Preorder Sequence in Binary Search Tree
-
144. Binary Tree Preorder Traversal
Recursion
Sliding Window
-
992. Subarrays with K Different Integers
-
904. Fruit Into Baskets
-
930. Binary Subarrays With Sum
-
567. Permutation in String
-
862. Shortest Subarray with Sum at Least K
Sorting
Stack
String
-
12. Integer to Roman
-
8. String to Integer \(atoi\)
-
344. Reverse String
-
43. Multiply Strings
-
696. Count Binary Substrings
Tree
-
606. Construct String from Binary Tree
-
536. Construct Binary Tree from String
-
589. N-ary Tree Preorder Traversal
-
105. Construct Binary Tree from Preorder and Inorder Traversal
-
337. House Robber III
Trie
-
208. Implement Trie \(Prefix Tree\)
-
1268. Search Suggestions System
-
642. Design Search Autocomplete System
-
211. Design Add and Search Words Data Structure
-
648. Replace Words
Two Pointers
-
977. Squares of a Sorted Array
-
1358. Number of Substrings Containing All Three Characters
-
567. Permutation in String
-
485. Max Consecutive Ones
-
1234. Replace the Substring for Balanced String