Tags
BFS¶
O(1)¶
O(log (m+n))¶
O(log (n + m))¶
O(log n)¶
O(n * 2 ** n)¶
O(n ** 2 * 2 ** n)¶
O(n ** 2 log n)¶
O(n ** 2)¶
- Bubble sort
- 63. Unique Paths II
- 84. Largest Rectangle in Histogram
- 118. Pascal’s Triangle
- 119. Pascal’s Triangle II
- 121. Best Time to Buy and Sell Stock
- 134. Gas Station
- 377. Combination Sum IV
- 518. Coin Change II
- 1337. The K Weakest Rows in a Matrix
O(n ** 3 * 2 ** n)¶
O(n log n)¶
- Quick sort
- 4. Median of Two Sorted Arrays
- 148. Sort List
- 338. Counting Bits
- 1326. Minimum Number of Taps to Open to Water a Garden
- 1337. The K Weakest Rows in a Matrix
- 1658. Minimum Operations to Reduce X to Zero
O(n!)¶
O(n)¶
- Linear search
- 45. Jump Game II
- 55. Jump Game
- 80. Remove Duplicates from Sorted Array II
- 81. Search in Rotated Sorted Array II
- 86. Partition List
- 88. Merge Sorted Array
- 92. Reverse Linked List II
- 101. Symmetric Tree
- 102. Binary Tree Level Order Traversal
- 103. Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 108. Convert Sorted Array to Binary Search Tree
- 110. Balanced Binary Tree
- 116. Populating Next Right Pointers in Each Node
- 121. Best Time to Buy and Sell Stock
- 134. Gas Station
- 150. Evaluate Reverse Polish Notation
- 225. Implement Stack using Queues
- 338. Counting Bits
- 389. Find the Difference
- 392. Is Subsequence
- 746. Min Cost Climbing Stairs
- 905. Sort Array By Parity
- 1326. Minimum Number of Taps to Open to Water a Garden
- 1658. Minimum Operations to Reduce X to Zero
- 1793. Maximum Score of a Good Subarray
- 2038. Remove Colored Pieces if Both Neighbors are the Same Color
- 2366. Minimum Replacements to Sort the Array
O(sqrt n)¶
array¶
- 33. Search in Rotated Sorted Array
- 45. Jump Game II
- 46. Permutations
- 63. Unique Paths II
- 74. Search a 2D Matrix
- 80. Remove Duplicates from Sorted Array II
- 84. Largest Rectangle in Histogram
- 215. Kth Largest Element in an Array
- 274. H Index
- 2366. Minimum Replacements to Sort the Array
binary_search¶
- 74. Search a 2D Matrix
- 81. Search in Rotated Sorted Array II
- 84. Largest Rectangle in Histogram
- 274. H Index
bit_manipulation¶
c¶
- Quick sort
- Two Crystal Ball
- 4. Median of Two Sorted Arrays
- 50. Pow(x, n)
- 63. Unique Paths II
- 74. Search a 2D Matrix
- 80. Remove Duplicates from Sorted Array II
- 81. Search in Rotated Sorted Array II
- 92. Reverse Linked List II
- 118. Pascal’s Triangle
- 119. Pascal’s Triangle II
- 134. Gas Station
- 138. Copy List with Random Pointer
- 148. Sort List
- 150. Evaluate Reverse Polish Notation
- 168. Excel Sheet Column Title
- 518. Coin Change II
- 1793. Maximum Score of a Good Subarray
cache¶
coding_chalenge¶
- Mathematic expression calculation
- 4. Median of Two Sorted Arrays
- 33. Search in Rotated Sorted Array
- 45. Jump Game II
- 46. Permutations
- 50. Pow(x, n)
- 55. Jump Game
- 62. Unique Paths
- 63. Unique Paths II
- 74. Search a 2D Matrix
- 77. Combinations
- 80. Remove Duplicates from Sorted Array II
- 81. Search in Rotated Sorted Array II
- 84. Largest Rectangle in Histogram
- 86. Partition List
- 88. Merge Sorted Array
- 91. Decode Ways
- 92. Reverse Linked List II
- 94. Binary Tree Inorder Traversal
- 98. Validate Binary Search Tree
- 101. Symmetric Tree
- 102. Binary Tree Level Order Traversal
- 103. Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 108. Convert Sorted Array to Binary Search Tree
- 110. Balanced Binary Tree
- 116. Populating Next Right Pointers in Each Node
- 118. Pascal’s Triangle
- 119. Pascal’s Triangle II
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 124. Binary Tree Maximum Path Sum
- 125. Valid Palindrome
- 130. Surrounded Regions
- 131. Palindrome Partitioning
- 134. Gas Station
- 136. Single Number
- 138. Copy List with Random Pointer
- 139. Word Break
- 141. Linked List Cycle
- 146. LRU Cache
- 148. Sort List
- 149. Max Points on a Line
- 150. Evaluate Reverse Polish Notation
- 168. Excel Sheet Column Title
- 169. Majority Element
- 171. Excel Sheet Column Number
- 190. Reverse Bits
- 191. Number of 1 Bits
- 202. Happy Number
- 206. Reverse Linked List
- 207. Course Schedule
- 212. Word Search II
- 215. Kth Largest Element in an Array
- 217. Contains Duplicate
- 225. Implement Stack using Queues
- 234. Palindrome Linked List
- 239. Sliding Window Maximum
- 242. Valid Anagram
- 268. Missing Number
- 274. H Index
- 283. Move Zeroes
- 326. Power of Three
- 338. Counting Bits
- 344. Reverse String
- 350. Intersection of Two Arrays II
- 373. Find K Pairs with Smallest Sums
- 377. Combination Sum IV
- 380. Insert Delete GetRandom O(1)
- 387. First Unique Character in a String
- 389. Find the Difference
- 392. Is Subsequence
- 412. Fizz Buzz
- 435. Non overlapping Intervals
- 445. Add Two Numbers II
- 456. 132 Pattern
- 459. Repeated Substring Pattern
- 518. Coin Change II
- 530. Minimum Absolute Difference in BST
- 542. 01 Matrix
- 688. Knight Probability in Chessboard
- 712. Minimum ASCII Delete Sum for Two Strings
- 714. Best Time to Buy and Sell Stock with Transaction Fee
- 735. Asteroid Collision
- 746. Min Cost Climbing Stairs
- 767. Reorganize String
- 799. Champagne Tower
- 802. Find Eventual Safe States
- 847. Shortest Path Visiting All Nodes
- 852. Peak Index in a Mountain Array
- 859. Buddy Strings
- 894. All Possible Full Binary Trees
- 905. Sort Array By Parity
- 1125. Smallest Sufficient Team
- 1143. Longest Common Subsequence
- 1326. Minimum Number of Taps to Open to Water a Garden
- 1337. The K Weakest Rows in a Matrix
- 1569. Number of Ways to Reorder Array to Get Same BST
- 1601. Maximum Number of Achievable Transfer Requests
- 1615. Maximal Network Rank
- 1658. Minimum Operations to Reduce X to Zero
- 1751. Maximum Number of Events That Can Be Attended II
- 1793. Maximum Score of a Good Subarray
- 1802. Maximum Value at a Given Index in a Bounded Array
- 2008. Maximum Earnings From Taxi
- 2038. Remove Colored Pieces if Both Neighbors are the Same Color
- 2140. Questions With Brainpower
- 2141. Maximum Running Time of N Computers
- 2328. Number of Increasing Paths in a Grid
- 2352. Equal Row and Column Pairs solve
- 2366. Minimum Replacements to Sort the Array
- 2369. Check if There is a Valid Partition For The Array
- 2448. Minimum Cost to Make Array Equal
- 2462. Total Cost to Hire K Workers
- 2616. Minimize the Maximum Difference of Pairs
computer_sience¶
- Array
- Big O Time Complexity
- Binary search
- Bubble sort
- Linear search
- Linked List
- List
- Mathematic expression calculation
- Quick sort
- Two Crystal Ball
- 4. Median of Two Sorted Arrays
- 33. Search in Rotated Sorted Array
- 45. Jump Game II
- 46. Permutations
- 50. Pow(x, n)
- 55. Jump Game
- 62. Unique Paths
- 63. Unique Paths II
- 74. Search a 2D Matrix
- 77. Combinations
- 80. Remove Duplicates from Sorted Array II
- 81. Search in Rotated Sorted Array II
- 84. Largest Rectangle in Histogram
- 86. Partition List
- 88. Merge Sorted Array
- 91. Decode Ways
- 92. Reverse Linked List II
- 94. Binary Tree Inorder Traversal
- 98. Validate Binary Search Tree
- 101. Symmetric Tree
- 102. Binary Tree Level Order Traversal
- 103. Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 108. Convert Sorted Array to Binary Search Tree
- 110. Balanced Binary Tree
- 116. Populating Next Right Pointers in Each Node
- 118. Pascal’s Triangle
- 119. Pascal’s Triangle II
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 124. Binary Tree Maximum Path Sum
- 125. Valid Palindrome
- 130. Surrounded Regions
- 131. Palindrome Partitioning
- 134. Gas Station
- 136. Single Number
- 138. Copy List with Random Pointer
- 139. Word Break
- 141. Linked List Cycle
- 146. LRU Cache
- 148. Sort List
- 149. Max Points on a Line
- 150. Evaluate Reverse Polish Notation
- 168. Excel Sheet Column Title
- 169. Majority Element
- 171. Excel Sheet Column Number
- 190. Reverse Bits
- 191. Number of 1 Bits
- 202. Happy Number
- 206. Reverse Linked List
- 207. Course Schedule
- 212. Word Search II
- 215. Kth Largest Element in an Array
- 217. Contains Duplicate
- 225. Implement Stack using Queues
- 234. Palindrome Linked List
- 239. Sliding Window Maximum
- 242. Valid Anagram
- 268. Missing Number
- 274. H Index
- 283. Move Zeroes
- 326. Power of Three
- 338. Counting Bits
- 344. Reverse String
- 350. Intersection of Two Arrays II
- 373. Find K Pairs with Smallest Sums
- 377. Combination Sum IV
- 380. Insert Delete GetRandom O(1)
- 387. First Unique Character in a String
- 389. Find the Difference
- 392. Is Subsequence
- 412. Fizz Buzz
- 435. Non overlapping Intervals
- 445. Add Two Numbers II
- 456. 132 Pattern
- 459. Repeated Substring Pattern
- 518. Coin Change II
- 530. Minimum Absolute Difference in BST
- 542. 01 Matrix
- 688. Knight Probability in Chessboard
- 712. Minimum ASCII Delete Sum for Two Strings
- 714. Best Time to Buy and Sell Stock with Transaction Fee
- 735. Asteroid Collision
- 746. Min Cost Climbing Stairs
- 767. Reorganize String
- 799. Champagne Tower
- 802. Find Eventual Safe States
- 847. Shortest Path Visiting All Nodes
- 852. Peak Index in a Mountain Array
- 859. Buddy Strings
- 894. All Possible Full Binary Trees
- 905. Sort Array By Parity
- 1125. Smallest Sufficient Team
- 1143. Longest Common Subsequence
- 1326. Minimum Number of Taps to Open to Water a Garden
- 1337. The K Weakest Rows in a Matrix
- 1569. Number of Ways to Reorder Array to Get Same BST
- 1601. Maximum Number of Achievable Transfer Requests
- 1615. Maximal Network Rank
- 1658. Minimum Operations to Reduce X to Zero
- 1751. Maximum Number of Events That Can Be Attended II
- 1793. Maximum Score of a Good Subarray
- 1802. Maximum Value at a Given Index in a Bounded Array
- 2008. Maximum Earnings From Taxi
- 2038. Remove Colored Pieces if Both Neighbors are the Same Color
- 2140. Questions With Brainpower
- 2141. Maximum Running Time of N Computers
- 2328. Number of Increasing Paths in a Grid
- 2352. Equal Row and Column Pairs solve
- 2366. Minimum Replacements to Sort the Array
- 2369. Check if There is a Valid Partition For The Array
- 2448. Minimum Cost to Make Array Equal
- 2462. Total Cost to Hire K Workers
- 2616. Minimize the Maximum Difference of Pairs
divide_and_conquer¶
dynamic_programing¶
go¶
- 110. Balanced Binary Tree
- 389. Find the Difference
- 746. Min Cost Climbing Stairs
- 799. Champagne Tower
- 905. Sort Array By Parity
- 1793. Maximum Score of a Good Subarray
graph¶
heap¶
heap_c_lang¶
java¶
javascript¶
leetcode¶
- 4. Median of Two Sorted Arrays
- 33. Search in Rotated Sorted Array
- 45. Jump Game II
- 46. Permutations
- 50. Pow(x, n)
- 55. Jump Game
- 62. Unique Paths
- 63. Unique Paths II
- 74. Search a 2D Matrix
- 77. Combinations
- 80. Remove Duplicates from Sorted Array II
- 81. Search in Rotated Sorted Array II
- 84. Largest Rectangle in Histogram
- 86. Partition List
- 88. Merge Sorted Array
- 91. Decode Ways
- 92. Reverse Linked List II
- 94. Binary Tree Inorder Traversal
- 98. Validate Binary Search Tree
- 101. Symmetric Tree
- 102. Binary Tree Level Order Traversal
- 103. Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 108. Convert Sorted Array to Binary Search Tree
- 110. Balanced Binary Tree
- 116. Populating Next Right Pointers in Each Node
- 118. Pascal’s Triangle
- 119. Pascal’s Triangle II
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 124. Binary Tree Maximum Path Sum
- 125. Valid Palindrome
- 130. Surrounded Regions
- 131. Palindrome Partitioning
- 134. Gas Station
- 136. Single Number
- 138. Copy List with Random Pointer
- 139. Word Break
- 141. Linked List Cycle
- 146. LRU Cache
- 148. Sort List
- 149. Max Points on a Line
- 150. Evaluate Reverse Polish Notation
- 168. Excel Sheet Column Title
- 169. Majority Element
- 171. Excel Sheet Column Number
- 190. Reverse Bits
- 191. Number of 1 Bits
- 202. Happy Number
- 206. Reverse Linked List
- 207. Course Schedule
- 212. Word Search II
- 215. Kth Largest Element in an Array
- 217. Contains Duplicate
- 225. Implement Stack using Queues
- 234. Palindrome Linked List
- 239. Sliding Window Maximum
- 242. Valid Anagram
- 268. Missing Number
- 274. H Index
- 283. Move Zeroes
- 326. Power of Three
- 338. Counting Bits
- 344. Reverse String
- 350. Intersection of Two Arrays II
- 373. Find K Pairs with Smallest Sums
- 377. Combination Sum IV
- 380. Insert Delete GetRandom O(1)
- 387. First Unique Character in a String
- 389. Find the Difference
- 392. Is Subsequence
- 412. Fizz Buzz
- 435. Non overlapping Intervals
- 445. Add Two Numbers II
- 456. 132 Pattern
- 459. Repeated Substring Pattern
- 518. Coin Change II
- 530. Minimum Absolute Difference in BST
- 542. 01 Matrix
- 688. Knight Probability in Chessboard
- 712. Minimum ASCII Delete Sum for Two Strings
- 714. Best Time to Buy and Sell Stock with Transaction Fee
- 735. Asteroid Collision
- 746. Min Cost Climbing Stairs
- 767. Reorganize String
- 799. Champagne Tower
- 802. Find Eventual Safe States
- 847. Shortest Path Visiting All Nodes
- 852. Peak Index in a Mountain Array
- 859. Buddy Strings
- 894. All Possible Full Binary Trees
- 905. Sort Array By Parity
- 1125. Smallest Sufficient Team
- 1143. Longest Common Subsequence
- 1326. Minimum Number of Taps to Open to Water a Garden
- 1337. The K Weakest Rows in a Matrix
- 1569. Number of Ways to Reorder Array to Get Same BST
- 1601. Maximum Number of Achievable Transfer Requests
- 1615. Maximal Network Rank
- 1658. Minimum Operations to Reduce X to Zero
- 1751. Maximum Number of Events That Can Be Attended II
- 1793. Maximum Score of a Good Subarray
- 1802. Maximum Value at a Given Index in a Bounded Array
- 2008. Maximum Earnings From Taxi
- 2038. Remove Colored Pieces if Both Neighbors are the Same Color
- 2140. Questions With Brainpower
- 2141. Maximum Running Time of N Computers
- 2328. Number of Increasing Paths in a Grid
- 2352. Equal Row and Column Pairs solve
- 2366. Minimum Replacements to Sort the Array
- 2369. Check if There is a Valid Partition For The Array
- 2448. Minimum Cost to Make Array Equal
- 2462. Total Cost to Hire K Workers
- 2616. Minimize the Maximum Difference of Pairs
linear_search¶
math¶
matrix¶
network¶
pascal¶
python¶
- Binary search
- Bubble sort
- Two Crystal Ball
- 4. Median of Two Sorted Arrays
- 33. Search in Rotated Sorted Array
- 45. Jump Game II
- 46. Permutations
- 50. Pow(x, n)
- 55. Jump Game
- 63. Unique Paths II
- 74. Search a 2D Matrix
- 77. Combinations
- 80. Remove Duplicates from Sorted Array II
- 81. Search in Rotated Sorted Array II
- 84. Largest Rectangle in Histogram
- 86. Partition List
- 88. Merge Sorted Array
- 101. Symmetric Tree
- 102. Binary Tree Level Order Traversal
- 103. Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 108. Convert Sorted Array to Binary Search Tree
- 116. Populating Next Right Pointers in Each Node
- 118. Pascal’s Triangle
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 130. Surrounded Regions
- 134. Gas Station
- 168. Excel Sheet Column Title
- 212. Word Search II
- 225. Implement Stack using Queues
- 338. Counting Bits
- 377. Combination Sum IV
- 392. Is Subsequence
- 459. Repeated Substring Pattern
- 518. Coin Change II
- 542. 01 Matrix
- 746. Min Cost Climbing Stairs
- 767. Reorganize String
- 847. Shortest Path Visiting All Nodes
- 905. Sort Array By Parity
- 1326. Minimum Number of Taps to Open to Water a Garden
- 1337. The K Weakest Rows in a Matrix
- 1615. Maximal Network Rank
- 1658. Minimum Operations to Reduce X to Zero
- 2366. Minimum Replacements to Sort the Array
queue¶
recusion¶
runtime_memory_alocation¶
rust¶
sort¶
stack_c_lang¶
tree¶
typescript¶
Last update :
August 16, 2023
Created : August 16, 2023
Created : August 16, 2023