Problem Relations Network¶
Problems and their related problems. Practice related problems together to reinforce patterns.
LeetCode 3 - Longest Substring Without Repeating Characters Β· Solution¶
π‘ Medium β Topics: string, hash_table, sliding_window
π View Solution
Related Problems¶
- LeetCode 0159 (metadata not yet added)
- π‘ LeetCode 340 - Longest Substring with At Most K Distinct Characters Β· Solution
- π΄ LeetCode 76 - Minimum Window Substring Β· Solution
- π‘ LeetCode 438 - Find All Anagrams in a String Β· Solution
- π‘ LeetCode 209 - Minimum Size Subarray Sum Β· Solution
- π‘ LeetCode 567 - Permutation in String Β· Solution
- π‘ LeetCode 424 - Longest Repeating Character Replacement Β· Solution
LeetCode 19 - Remove Nth Node From End of List Β· Solution¶
π‘ Medium β Topics: linked_list, two_pointers
π View Solution
Related Problems¶
- π’ LeetCode 21 - Merge Two Sorted Lists Β· Solution
- π΄ LeetCode 23 - Merge k Sorted Lists Β· Solution
- LeetCode 0061 (metadata not yet added)
- LeetCode 0082 (metadata not yet added)
- LeetCode 0083 (metadata not yet added)
- π’ LeetCode 141 - Linked List Cycle Β· Solution
- π’ LeetCode 206 - Reverse Linked List Β· Solution
LeetCode 994 - Rotting Oranges Β· Solution¶
π‘ Medium β Topics: array, breadth_first_search, matrix
π View Solution
Related Problems¶
- π‘ LeetCode 286 - Walls and Gates Β· Solution
- π‘ LeetCode 542 - 01 Matrix Β· Solution
- π΄ LeetCode 127 - Word Ladder Β· Solution
- LeetCode 0752 (metadata not yet added)
- LeetCode 1091 (metadata not yet added)
- π‘ LeetCode 200 - Number of Islands Β· Solution
LeetCode 2 - Add Two Numbers Β· Solution¶
π‘ Medium β Topics: linked_list, math, recursion
π View Solution
Related Problems¶
- π‘ LeetCode 43 - Multiply Strings Β· Solution
- LeetCode 0067 (metadata not yet added)
- π‘ LeetCode 371 - Sum of Two Integers Β· Solution
- LeetCode 0415 (metadata not yet added)
- LeetCode 0445 (metadata not yet added)
LeetCode 17 - Letter Combinations of a Phone Number Β· Solution¶
π‘ Medium β Topics: hash_table, string, backtracking
π View Solution
Related Problems¶
- π‘ LeetCode 22 - Generate Parentheses Β· Solution
- π‘ LeetCode 39 - Combination Sum Β· Solution
- π‘ LeetCode 46 - Permutations Β· Solution
- π‘ LeetCode 77 - Combinations Β· Solution
- π‘ LeetCode 78 - Subsets Β· Solution
LeetCode 76 - Minimum Window Substring Β· Solution¶
π΄ Hard β Topics: string, hash_table, sliding_window
π View Solution
Related Problems¶
- π‘ LeetCode 3 - Longest Substring Without Repeating Characters Β· Solution
- LeetCode 0030 (metadata not yet added)
- π‘ LeetCode 209 - Minimum Size Subarray Sum Β· Solution
- π‘ LeetCode 438 - Find All Anagrams in a String Β· Solution
- π‘ LeetCode 567 - Permutation in String Β· Solution
LeetCode 200 - Number of Islands Β· Solution¶
π‘ Medium β Topics: array, depth_first_search, breadth_first_search
π View Solution
Related Problems¶
- π‘ LeetCode 695 - Max Area of Island Β· Solution
- LeetCode 0463 (metadata not yet added)
- LeetCode 0827 (metadata not yet added)
- π‘ LeetCode 130 - Surrounded Regions Β· Solution
- π‘ LeetCode 417 - Pacific Atlantic Water Flow Β· Solution
LeetCode 209 - Minimum Size Subarray Sum Β· Solution¶
π‘ Medium β Topics: array, binary_search, sliding_window
π View Solution
Related Problems¶
- π‘ LeetCode 3 - Longest Substring Without Repeating Characters Β· Solution
- π΄ LeetCode 76 - Minimum Window Substring Β· Solution
- LeetCode 0325 (metadata not yet added)
- LeetCode 0718 (metadata not yet added)
- π΄ LeetCode 862 - Shortest Subarray with Sum at Least K Β· Solution
LeetCode 340 - Longest Substring with At Most K Distinct Characters Β· Solution¶
π‘ Medium β Topics: string, hash_table, sliding_window
π View Solution
Related Problems¶
- π‘ LeetCode 3 - Longest Substring Without Repeating Characters Β· Solution
- LeetCode 0159 (metadata not yet added)
- π΄ LeetCode 76 - Minimum Window Substring Β· Solution
- π‘ LeetCode 424 - Longest Repeating Character Replacement Β· Solution
- LeetCode 0904 (metadata not yet added)
LeetCode 2029 - Stone Game IX Β· Solution¶
π‘ Medium β Topics: array, math, counting
π View Solution
Related Problems¶
- π‘ LeetCode 877 - Stone Game
- LeetCode 1140 (metadata not yet added)
- π΄ LeetCode 1406 - Stone Game III
- LeetCode 1563 (metadata not yet added)
- LeetCode 1686 (metadata not yet added)
LeetCode 1 - Two Sum Β· Solution¶
π’ Easy β Topics: array, hash_table
π View Solution
Related Problems¶
- π‘ LeetCode 15 - 3Sum Β· Solution
- LeetCode 0167 (metadata not yet added)
- LeetCode 0170 (metadata not yet added)
- LeetCode 0653 (metadata not yet added)
LeetCode 5 - Longest Palindromic Substring Β· Solution¶
π‘ Medium β Topics: string, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 516 - Longest Palindromic Subsequence Β· Solution
- π‘ LeetCode 647 - Palindromic Substrings Β· Solution
- π΄ LeetCode 214 - Shortest Palindrome
- π‘ LeetCode 131 - Palindrome Partitioning Β· Solution
LeetCode 15 - 3Sum Β· Solution¶
π‘ Medium β Topics: array, two_pointers, sorting
π View Solution
Related Problems¶
- π’ LeetCode 1 - Two Sum Β· Solution
- π‘ LeetCode 16 - 3Sum Closest Β· Solution
- LeetCode 0018 (metadata not yet added)
- LeetCode 0167 (metadata not yet added)
LeetCode 20 - Valid Parentheses Β· Solution¶
π’ Easy β Topics: string, stack
π View Solution
Related Problems¶
- π‘ LeetCode 22 - Generate Parentheses Β· Solution
- LeetCode 0032 (metadata not yet added)
- LeetCode 0921 (metadata not yet added)
- LeetCode 1541 (metadata not yet added)
LeetCode 23 - Merge k Sorted Lists Β· Solution¶
π΄ Hard β Topics: linked_list, divide_and_conquer, heap
π View Solution
Related Problems¶
- π’ LeetCode 21 - Merge Two Sorted Lists Β· Solution
- π΄ LeetCode 4 - Median of Two Sorted Arrays Β· Solution
- LeetCode 0378 (metadata not yet added)
- LeetCode 0264 (metadata not yet added)
LeetCode 33 - Search in Rotated Sorted Array Β· Solution¶
π‘ Medium β Topics: array, binary_search
π View Solution
Related Problems¶
- π‘ LeetCode 81 - Search in Rotated Sorted Array II Β· Solution
- π‘ LeetCode 153 - Find Minimum in Rotated Sorted Array Β· Solution
- LeetCode 0154 (metadata not yet added)
- π‘ LeetCode 33 - Search in Rotated Sorted Array Β· Solution
LeetCode 39 - Combination Sum Β· Solution¶
π‘ Medium β Topics: array, backtracking
π View Solution
Related Problems¶
- π‘ LeetCode 40 - Combination Sum II Β· Solution
- π‘ LeetCode 77 - Combinations Β· Solution
- π‘ LeetCode 216 - Combination Sum III Β· Solution
- π‘ LeetCode 78 - Subsets Β· Solution
LeetCode 40 - Combination Sum II Β· Solution¶
π‘ Medium β Topics: array, backtracking
π View Solution
Related Problems¶
- π‘ LeetCode 39 - Combination Sum Β· Solution
- π‘ LeetCode 90 - Subsets II Β· Solution
- π‘ LeetCode 47 - Permutations II Β· Solution
- π‘ LeetCode 216 - Combination Sum III Β· Solution
LeetCode 56 - Merge Intervals Β· Solution¶
π‘ Medium β Topics: array, sorting
π View Solution
Related Problems¶
- π‘ LeetCode 57 - Insert Interval Β· Solution
- π‘ LeetCode 435 - Non-overlapping Intervals Β· Solution
- π’ LeetCode 252 - Meeting Rooms Β· Solution
- π‘ LeetCode 253 - Meeting Rooms II Β· Solution
LeetCode 72 - Edit Distance Β· Solution¶
π‘ Medium β Topics: String, Dynamic Programming
π View Solution
Related Problems¶
- π‘ LeetCode 1143 - Longest Common Subsequence Β· Solution
- LeetCode 0583 (metadata not yet added)
- LeetCode 0712 (metadata not yet added)
- LeetCode 0161 (metadata not yet added)
LeetCode 102 - Binary Tree Level Order Traversal Β· Solution¶
π‘ Medium β Topics: tree, breadth_first_search, binary_tree
π View Solution
Related Problems¶
- LeetCode 0103 (metadata not yet added)
- LeetCode 0107 (metadata not yet added)
- π‘ LeetCode 199 - Binary Tree Right Side View Β· Solution
- LeetCode 0637 (metadata not yet added)
LeetCode 115 - Distinct Subsequences Β· Solution¶
π΄ Hard β Topics: string, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 72 - Edit Distance Β· Solution
- LeetCode 0583 (metadata not yet added)
- π‘ LeetCode 1143 - Longest Common Subsequence Β· Solution
- π‘ LeetCode 97 - Interleaving String Β· Solution
LeetCode 124 - Binary Tree Maximum Path Sum Β· Solution¶
π΄ Hard β Topics: dynamic_programming, tree, depth_first_search
π View Solution
Related Problems¶
- π’ LeetCode 543 - Diameter of Binary Tree Β· Solution
- LeetCode 0112 (metadata not yet added)
- LeetCode 0687 (metadata not yet added)
- LeetCode 0129 (metadata not yet added)
LeetCode 208 - Implement Trie (Prefix Tree) Β· Solution(Prefix Tree)¶
π‘ Medium β Topics: hash_table, string, design
π View Solution
Related Problems¶
- π‘ LeetCode 211 - Design Add and Search Words Data Structure Β· Solution
- π΄ LeetCode 212 - Word Search II Β· Solution
- π‘ LeetCode 648 - Replace Words Β· Solution
- π‘ LeetCode 1268 - Search Suggestions System Β· Solution
LeetCode 211 - Design Add and Search Words Data Structure Β· Solution¶
π‘ Medium β Topics: string, depth_first_search, design
π View Solution
Related Problems¶
- π‘ LeetCode 208 - Implement Trie (Prefix Tree) Β· Solution(Prefix Tree)
- π΄ LeetCode 212 - Word Search II Β· Solution
- π‘ LeetCode 648 - Replace Words Β· Solution
- π‘ LeetCode 1268 - Search Suggestions System Β· Solution
LeetCode 253 - Meeting Rooms II Β· Solution¶
π‘ Medium β Topics: array, two_pointers, greedy
π View Solution
Related Problems¶
- π’ LeetCode 252 - Meeting Rooms Β· Solution
- π‘ LeetCode 56 - Merge Intervals Β· Solution
- π‘ LeetCode 435 - Non-overlapping Intervals Β· Solution
- π‘ LeetCode 1094 - Car Pooling Β· Solution
LeetCode 300 - Longest Increasing Subsequence Β· Solution¶
π‘ Medium β Topics: array, binary_search, dynamic_programming
π View Solution
Related Problems¶
- LeetCode 0334 (metadata not yet added)
- LeetCode 0354 (metadata not yet added)
- LeetCode 0646 (metadata not yet added)
- LeetCode 0673 (metadata not yet added)
LeetCode 309 - Best Time to Buy and Sell Stock with Cooldown Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming
π View Solution
Related Problems¶
- π’ LeetCode 121 - Best Time to Buy and Sell Stock Β· Solution
- LeetCode 0122 (metadata not yet added)
- LeetCode 0188 (metadata not yet added)
- LeetCode 0714 (metadata not yet added)
LeetCode 438 - Find All Anagrams in a String Β· Solution¶
π‘ Medium β Topics: string, hash_table, sliding_window
π View Solution
Related Problems¶
- π‘ LeetCode 3 - Longest Substring Without Repeating Characters Β· Solution
- π΄ LeetCode 76 - Minimum Window Substring Β· Solution
- π’ LeetCode 242 - Valid Anagram Β· Solution
- π‘ LeetCode 567 - Permutation in String Β· Solution
LeetCode 516 - Longest Palindromic Subsequence Β· Solution¶
π‘ Medium β Topics: String, Dynamic Programming
π View Solution
Related Problems¶
- π‘ LeetCode 1143 - Longest Common Subsequence Β· Solution
- π‘ LeetCode 5 - Longest Palindromic Substring Β· Solution
- π‘ LeetCode 647 - Palindromic Substrings Β· Solution
- LeetCode 1312 (metadata not yet added)
LeetCode 543 - Diameter of Binary Tree Β· Solution¶
π’ Easy β Topics: tree, depth_first_search, binary_tree
π View Solution
Related Problems¶
- π’ LeetCode 104 - Maximum Depth of Binary Tree Β· Solution
- π΄ LeetCode 124 - Binary Tree Maximum Path Sum Β· Solution
- LeetCode 0687 (metadata not yet added)
- LeetCode 1522 (metadata not yet added)
LeetCode 560 - Subarray Sum Equals K Β· Solution¶
π‘ Medium β Topics: array, hash_table, prefix_sum
π View Solution
Related Problems¶
- π’ LeetCode 303 - Range Sum Query - Immutable Β· Solution
- π‘ LeetCode 525 - Contiguous Array Β· Solution
- π‘ LeetCode 523 - Continuous Subarray Sum Β· Solution
- LeetCode 0974 (metadata not yet added)
LeetCode 567 - Permutation in String Β· Solution¶
π‘ Medium β Topics: string, hash_table, two_pointers
π View Solution
Related Problems¶
- π‘ LeetCode 3 - Longest Substring Without Repeating Characters Β· Solution
- π΄ LeetCode 76 - Minimum Window Substring Β· Solution
- π’ LeetCode 242 - Valid Anagram Β· Solution
- π‘ LeetCode 438 - Find All Anagrams in a String Β· Solution
LeetCode 648 - Replace Words Β· Solution¶
π‘ Medium β Topics: array, hash_table, string
π View Solution
Related Problems¶
- π‘ LeetCode 208 - Implement Trie (Prefix Tree) Β· Solution(Prefix Tree)
- π‘ LeetCode 211 - Design Add and Search Words Data Structure Β· Solution
- π΄ LeetCode 212 - Word Search II Β· Solution
- π‘ LeetCode 1268 - Search Suggestions System Β· Solution
LeetCode 743 - Network Delay Time Β· Solution¶
π‘ Medium β Topics: depth_first_search, breadth_first_search, graph
π View Solution
Related Problems¶
- π‘ LeetCode 1631 - Path With Minimum Effort Β· Solution
- π‘ LeetCode 787 - Cheapest Flights Within K Stops Β· Solution
- π΄ LeetCode 1368 - Minimum Cost to Make at Least One Valid Path in a Grid Β· Solution
- π΄ LeetCode 2290 - Minimum Obstacle Removal to Reach Corner Β· Solution
LeetCode 778 - Swim in Rising Water Β· Solution¶
π΄ Hard β Topics: array, binary_search, dfs
π View Solution
Related Problems¶
- π‘ LeetCode 743 - Network Delay Time Β· Solution
- π‘ LeetCode 787 - Cheapest Flights Within K Stops Β· Solution
- LeetCode 1102 (metadata not yet added)
- π‘ LeetCode 1631 - Path With Minimum Effort Β· Solution
LeetCode 787 - Cheapest Flights Within K Stops Β· Solution¶
π‘ Medium β Topics: dynamic_programming, depth_first_search, breadth_first_search
π View Solution
Related Problems¶
- π‘ LeetCode 743 - Network Delay Time Β· Solution
- π‘ LeetCode 1631 - Path With Minimum Effort Β· Solution
- π΄ LeetCode 1368 - Minimum Cost to Make at Least One Valid Path in a Grid Β· Solution
- π΄ LeetCode 2290 - Minimum Obstacle Removal to Reach Corner Β· Solution
LeetCode 862 - Shortest Subarray with Sum at Least K Β· Solution¶
π΄ Hard β Topics: array, binary_search, queue
π View Solution
Related Problems¶
- π΄ LeetCode 239 - Sliding Window Maximum Β· Solution
- π‘ LeetCode 1438 - Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Β· Solution
- π΄ LeetCode 1499 - Max Value of Equation Β· Solution
- π‘ LeetCode 209 - Minimum Size Subarray Sum Β· Solution
LeetCode 875 - Koko Eating Bananas Β· Solution¶
π‘ Medium β Topics: array, binary_search
π View Solution
Related Problems¶
- π‘ LeetCode 1011 - Capacity To Ship Packages Within D Days Β· Solution
- LeetCode 0410 (metadata not yet added)
- LeetCode 1482 (metadata not yet added)
- LeetCode 2064 (metadata not yet added)
LeetCode 1011 - Capacity To Ship Packages Within D Days Β· Solution¶
π‘ Medium β Topics: array, binary_search
π View Solution
Related Problems¶
- π‘ LeetCode 875 - Koko Eating Bananas Β· Solution
- LeetCode 0410 (metadata not yet added)
- LeetCode 1482 (metadata not yet added)
- LeetCode 2064 (metadata not yet added)
LeetCode 1143 - Longest Common Subsequence Β· Solution¶
π‘ Medium β Topics: String, Dynamic Programming
π View Solution
Related Problems¶
- π‘ LeetCode 72 - Edit Distance Β· Solution
- π‘ LeetCode 516 - Longest Palindromic Subsequence Β· Solution
- LeetCode 0583 (metadata not yet added)
- LeetCode 1092 (metadata not yet added)
LeetCode 1268 - Search Suggestions System Β· Solution¶
π‘ Medium β Topics: array, string, binary_search
π View Solution
Related Problems¶
- π‘ LeetCode 208 - Implement Trie (Prefix Tree) Β· Solution(Prefix Tree)
- π‘ LeetCode 211 - Design Add and Search Words Data Structure Β· Solution
- π΄ LeetCode 212 - Word Search II Β· Solution
- π‘ LeetCode 648 - Replace Words Β· Solution
LeetCode 1368 - Minimum Cost to Make at Least One Valid Path in a Grid Β· Solution¶
π΄ Hard β Topics: array, breadth_first_search, graph
π View Solution
Related Problems¶
- π‘ LeetCode 743 - Network Delay Time Β· Solution
- π‘ LeetCode 1631 - Path With Minimum Effort Β· Solution
- π‘ LeetCode 787 - Cheapest Flights Within K Stops Β· Solution
- π΄ LeetCode 2290 - Minimum Obstacle Removal to Reach Corner Β· Solution
LeetCode 1448 - Count Good Nodes in Binary Tree Β· Solution¶
π‘ Medium β Topics: tree, dfs, bfs
π View Solution
Related Problems¶
- π’ LeetCode 104 - Maximum Depth of Binary Tree Β· Solution
- LeetCode 0112 (metadata not yet added)
- π΄ LeetCode 124 - Binary Tree Maximum Path Sum Β· Solution
- π’ LeetCode 543 - Diameter of Binary Tree Β· Solution
LeetCode 1584 - Min Cost to Connect All Points Β· Solution¶
π‘ Medium β Topics: array, union_find, graph
π View Solution
Related Problems¶
- π΄ LeetCode 778 - Swim in Rising Water Β· Solution
- LeetCode 1135 (metadata not yet added)
- LeetCode 1168 (metadata not yet added)
- LeetCode 1489 (metadata not yet added)
LeetCode 1631 - Path With Minimum Effort Β· Solution¶
π‘ Medium β Topics: array, binary_search, breadth_first_search
π View Solution
Related Problems¶
- π‘ LeetCode 743 - Network Delay Time Β· Solution
- π‘ LeetCode 787 - Cheapest Flights Within K Stops Β· Solution
- π΄ LeetCode 1368 - Minimum Cost to Make at Least One Valid Path in a Grid Β· Solution
- π΄ LeetCode 2290 - Minimum Obstacle Removal to Reach Corner Β· Solution
LeetCode 1851 - Minimum Interval to Include Each Query Β· Solution¶
π΄ Hard β Topics: array, binary_search, line_sweep
π View Solution
Related Problems¶
- π‘ LeetCode 56 - Merge Intervals Β· Solution
- π‘ LeetCode 57 - Insert Interval Β· Solution
- π‘ LeetCode 253 - Meeting Rooms II Β· Solution
- π‘ LeetCode 435 - Non-overlapping Intervals Β· Solution
LeetCode 1871 - Jump Game VII Β· Solution¶
π‘ Medium β Topics: string, dynamic_programming, sliding_window
π View Solution
Related Problems¶
- π‘ LeetCode 55 - Jump Game Β· Solution
- π‘ LeetCode 45 - Jump Game II Β· Solution
- LeetCode 1306 (metadata not yet added)
- LeetCode 1345 (metadata not yet added)
LeetCode 2290 - Minimum Obstacle Removal to Reach Corner Β· Solution¶
π΄ Hard β Topics: array, breadth_first_search, graph
π View Solution
Related Problems¶
- π‘ LeetCode 743 - Network Delay Time Β· Solution
- π‘ LeetCode 1631 - Path With Minimum Effort Β· Solution
- π‘ LeetCode 787 - Cheapest Flights Within K Stops Β· Solution
- π΄ LeetCode 1368 - Minimum Cost to Make at Least One Valid Path in a Grid Β· Solution
LeetCode 2741 - Special Permutations Β· Solution¶
π‘ Medium β Topics: array, dynamic-programming, bit-manipulation
π View Solution
Related Problems¶
- π‘ LeetCode 46 - Permutations Β· Solution
- π‘ LeetCode 78 - Subsets Β· Solution
- LeetCode 0698 (metadata not yet added)
- LeetCode 0526 (metadata not yet added)
LeetCode 4 - Median of Two Sorted Arrays Β· Solution¶
π΄ Hard β Topics: array, binary_search, divide_and_conquer
π View Solution
Related Problems¶
- π΄ LeetCode 23 - Merge k Sorted Lists Β· Solution
- π’ LeetCode 21 - Merge Two Sorted Lists Β· Solution
- π‘ LeetCode 215 - Kth Largest Element in an Array Β· Solution
LeetCode 7 - Reverse Integer Β· Solution¶
π‘ Medium β Topics: math
π View Solution
Related Problems¶
- π‘ LeetCode 8 - String to Integer (atoi) Β· Solution(atoi)
- LeetCode 0009 (metadata not yet added)
- π’ LeetCode 190 - Reverse Bits Β· Solution
LeetCode 11 - Container With Most Water Β· Solution¶
π‘ Medium β Topics: array, two_pointers, greedy
π View Solution
Related Problems¶
- π΄ LeetCode 42 - Trapping Rain Water Β· Solution
- π’ LeetCode 125 - Valid Palindrome Β· Solution
- LeetCode 0167 (metadata not yet added)
LeetCode 21 - Merge Two Sorted Lists Β· Solution¶
π’ Easy β Topics: linked_list, recursion
π View Solution
Related Problems¶
- π΄ LeetCode 23 - Merge k Sorted Lists Β· Solution
- π’ LeetCode 88 - Merge Sorted Array Β· Solution
- π’ LeetCode 977 - Squares of a Sorted Array Β· Solution
LeetCode 22 - Generate Parentheses Β· Solution¶
π‘ Medium β Topics: string, dynamic_programming, backtracking
π View Solution
Related Problems¶
- π‘ LeetCode 17 - Letter Combinations of a Phone Number Β· Solution
- π’ LeetCode 20 - Valid Parentheses Β· Solution
- LeetCode 0032 (metadata not yet added)
LeetCode 25 - Reverse Nodes in k-Group Β· Solution¶
π΄ Hard β Topics: linked_list, recursion
π View Solution
Related Problems¶
- LeetCode 0024 (metadata not yet added)
- π’ LeetCode 206 - Reverse Linked List Β· Solution
- π‘ LeetCode 92 - Reverse Linked List II Β· Solution
LeetCode 26 - Remove Duplicates from Sorted Array Β· Solution¶
π’ Easy β Topics: array, two_pointers
π View Solution
Related Problems¶
- π’ LeetCode 27 - Remove Element Β· Solution
- π‘ LeetCode 80 - Remove Duplicates from Sorted Array II Β· Solution
- π’ LeetCode 283 - Move Zeroes Β· Solution
LeetCode 31 - Next Permutation Β· Solution¶
π‘ Medium β Topics: array, two_pointers
π View Solution
Related Problems¶
- π‘ LeetCode 46 - Permutations Β· Solution
- π‘ LeetCode 47 - Permutations II Β· Solution
- LeetCode 0060 (metadata not yet added)
LeetCode 34 - Find First and Last Position of Element in Sorted Array Β· Solution¶
π‘ Medium β Topics: array, binary_search
π View Solution
Related Problems¶
- π’ LeetCode 35 - Search Insert Position Β· Solution
- LeetCode 0278 (metadata not yet added)
- π’ LeetCode 704 - Binary Search Β· Solution
LeetCode 35 - Search Insert Position Β· Solution¶
π’ Easy β Topics: array, binary_search
π View Solution
Related Problems¶
- π‘ LeetCode 34 - Find First and Last Position of Element in Sorted Array Β· Solution
- π’ LeetCode 704 - Binary Search Β· Solution
- LeetCode 0278 (metadata not yet added)
LeetCode 42 - Trapping Rain Water Β· Solution¶
π΄ Hard β Topics: array, two_pointers, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 11 - Container With Most Water Β· Solution
- π΄ LeetCode 84 - Largest Rectangle in Histogram Β· Solution
- LeetCode 0407 (metadata not yet added)
LeetCode 43 - Multiply Strings Β· Solution¶
π‘ Medium β Topics: math, string, simulation
π View Solution
Related Problems¶
- π‘ LeetCode 2 - Add Two Numbers Β· Solution
- π’ LeetCode 66 - Plus One Β· Solution
- LeetCode 0067 (metadata not yet added)
LeetCode 46 - Permutations Β· Solution¶
π‘ Medium β Topics: array, backtracking
π View Solution
Related Problems¶
- π‘ LeetCode 47 - Permutations II Β· Solution
- π‘ LeetCode 78 - Subsets Β· Solution
- π‘ LeetCode 77 - Combinations Β· Solution
LeetCode 47 - Permutations II Β· Solution¶
π‘ Medium β Topics: array, backtracking
π View Solution
Related Problems¶
- π‘ LeetCode 46 - Permutations Β· Solution
- π‘ LeetCode 40 - Combination Sum II Β· Solution
- π‘ LeetCode 90 - Subsets II Β· Solution
LeetCode 48 - Rotate Image Β· Solution¶
π‘ Medium β Topics: array, math, matrix
π View Solution
Related Problems¶
- π‘ LeetCode 54 - Spiral Matrix Β· Solution
- LeetCode 0059 (metadata not yet added)
- π‘ LeetCode 73 - Set Matrix Zeroes Β· Solution
LeetCode 53 - Maximum Subarray Β· Solution¶
π‘ Medium β Topics: array, divide_and_conquer, dynamic_programming
π View Solution
Related Problems¶
- π’ LeetCode 121 - Best Time to Buy and Sell Stock Β· Solution
- π‘ LeetCode 152 - Maximum Product Subarray Β· Solution
- LeetCode 0918 (metadata not yet added)
LeetCode 54 - Spiral Matrix Β· Solution¶
π‘ Medium β Topics: array, matrix, simulation
π View Solution
Related Problems¶
- π‘ LeetCode 48 - Rotate Image Β· Solution
- LeetCode 0059 (metadata not yet added)
- LeetCode 0885 (metadata not yet added)
LeetCode 57 - Insert Interval Β· Solution¶
π‘ Medium β Topics: array
π View Solution
Related Problems¶
- π‘ LeetCode 56 - Merge Intervals Β· Solution
- LeetCode 0715 (metadata not yet added)
- LeetCode 0352 (metadata not yet added)
LeetCode 62 - Unique Paths Β· Solution¶
π‘ Medium β Topics: math, dynamic_programming, combinatorics
π View Solution
Related Problems¶
- LeetCode 0063 (metadata not yet added)
- LeetCode 0064 (metadata not yet added)
- LeetCode 0980 (metadata not yet added)
LeetCode 66 - Plus One Β· Solution¶
π’ Easy β Topics: array, math
π View Solution
Related Problems¶
- LeetCode 0067 (metadata not yet added)
- LeetCode 0369 (metadata not yet added)
- LeetCode 0989 (metadata not yet added)
LeetCode 77 - Combinations Β· Solution¶
π‘ Medium β Topics: backtracking
π View Solution
Related Problems¶
- π‘ LeetCode 78 - Subsets Β· Solution
- π‘ LeetCode 39 - Combination Sum Β· Solution
- π‘ LeetCode 216 - Combination Sum III Β· Solution
LeetCode 78 - Subsets Β· Solution¶
π‘ Medium β Topics: array, backtracking, bit_manipulation
π View Solution
Related Problems¶
- π‘ LeetCode 90 - Subsets II Β· Solution
- π‘ LeetCode 77 - Combinations Β· Solution
- π‘ LeetCode 46 - Permutations Β· Solution
LeetCode 79 - Word Search Β· Solution¶
π‘ Medium β Topics: array, backtracking, matrix
π View Solution
Related Problems¶
- π΄ LeetCode 212 - Word Search II Β· Solution
- π‘ LeetCode 130 - Surrounded Regions Β· Solution
- π‘ LeetCode 200 - Number of Islands Β· Solution
LeetCode 81 - Search in Rotated Sorted Array II Β· Solution¶
π‘ Medium β Topics: array, binary_search
π View Solution
Related Problems¶
- π‘ LeetCode 33 - Search in Rotated Sorted Array Β· Solution
- π‘ LeetCode 153 - Find Minimum in Rotated Sorted Array Β· Solution
- LeetCode 0154 (metadata not yet added)
LeetCode 90 - Subsets II Β· Solution¶
π‘ Medium β Topics: array, backtracking, bit_manipulation
π View Solution
Related Problems¶
- π‘ LeetCode 78 - Subsets Β· Solution
- π‘ LeetCode 40 - Combination Sum II Β· Solution
- π‘ LeetCode 47 - Permutations II Β· Solution
LeetCode 91 - Decode Ways Β· Solution¶
π‘ Medium β Topics: string, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 62 - Unique Paths Β· Solution
- π’ LeetCode 70 - Climbing Stairs Β· Solution
- LeetCode 0639 (metadata not yet added)
LeetCode 94 - Binary Tree Inorder Traversal Β· Solution¶
π’ Easy β Topics: stack, tree, depth_first_search
π View Solution
Related Problems¶
- LeetCode 0144 (metadata not yet added)
- LeetCode 0145 (metadata not yet added)
- π‘ LeetCode 102 - Binary Tree Level Order Traversal Β· Solution
LeetCode 97 - Interleaving String Β· Solution¶
π‘ Medium β Topics: string, dynamic_programming
π View Solution
Related Problems¶
- π΄ LeetCode 115 - Distinct Subsequences Β· Solution
- π‘ LeetCode 1143 - Longest Common Subsequence Β· Solution
- π‘ LeetCode 72 - Edit Distance Β· Solution
LeetCode 98 - Validate Binary Search Tree Β· Solution¶
π‘ Medium β Topics: tree, binary_search_tree, dfs
π View Solution
Related Problems¶
- π’ LeetCode 94 - Binary Tree Inorder Traversal Β· Solution
- LeetCode 0501 (metadata not yet added)
- LeetCode 0530 (metadata not yet added)
LeetCode 100 - Same Tree Β· Solution¶
π’ Easy β Topics: tree, depth_first_search, breadth_first_search
π View Solution
Related Problems¶
- LeetCode 0101 (metadata not yet added)
- π’ LeetCode 104 - Maximum Depth of Binary Tree Β· Solution
- π’ LeetCode 572 - Subtree of Another Tree Β· Solution
LeetCode 104 - Maximum Depth of Binary Tree Β· Solution¶
π’ Easy β Topics: tree, depth_first_search, breadth_first_search
π View Solution
Related Problems¶
- LeetCode 0111 (metadata not yet added)
- π’ LeetCode 110 - Balanced Binary Tree Β· Solution
- π’ LeetCode 543 - Diameter of Binary Tree Β· Solution
LeetCode 110 - Balanced Binary Tree Β· Solution¶
π’ Easy β Topics: tree, depth_first_search, binary_tree
π View Solution
Related Problems¶
- π’ LeetCode 104 - Maximum Depth of Binary Tree Β· Solution
- π’ LeetCode 543 - Diameter of Binary Tree Β· Solution
- LeetCode 0111 (metadata not yet added)
LeetCode 125 - Valid Palindrome Β· Solution¶
π’ Easy β Topics: two_pointers, string
π View Solution
Related Problems¶
- π’ LeetCode 680 - Valid Palindrome II Β· Solution
- π‘ LeetCode 5 - Longest Palindromic Substring Β· Solution
- π’ LeetCode 125 - Valid Palindrome Β· Solution
LeetCode 127 - Word Ladder Β· Solution¶
π΄ Hard β Topics: hash_table, string, breadth_first_search
π View Solution
Related Problems¶
- π΄ LeetCode 126 - Word Ladder II Β· Solution
- LeetCode 0433 (metadata not yet added)
- LeetCode 0752 (metadata not yet added)
LeetCode 130 - Surrounded Regions Β· Solution¶
π‘ Medium β Topics: array, depth_first_search, breadth_first_search
π View Solution
Related Problems¶
- π‘ LeetCode 200 - Number of Islands Β· Solution
- π‘ LeetCode 286 - Walls and Gates Β· Solution
- π‘ LeetCode 417 - Pacific Atlantic Water Flow Β· Solution
LeetCode 136 - Single Number Β· Solution¶
π’ Easy β Topics: array, bit_manipulation
π View Solution
Related Problems¶
- LeetCode 0137 (metadata not yet added)
- LeetCode 0260 (metadata not yet added)
- π’ LeetCode 268 - Missing Number Β· Solution
LeetCode 143 - Reorder List Β· Solution¶
π‘ Medium β Topics: linked_list, two_pointers, stack
π View Solution
Related Problems¶
- π’ LeetCode 206 - Reverse Linked List Β· Solution
- π’ LeetCode 876 - Middle of the Linked List Β· Solution
- LeetCode 0234 (metadata not yet added)
LeetCode 146 - LRU Cache Β· Solution¶
π‘ Medium β Topics: hash_table, linked_list, design
π View Solution
Related Problems¶
- LeetCode 0460 (metadata not yet added)
- LeetCode 0432 (metadata not yet added)
- LeetCode 0588 (metadata not yet added)
LeetCode 150 - Evaluate Reverse Polish Notation Β· Solution¶
π‘ Medium β Topics: array, math, stack
π View Solution
Related Problems¶
- LeetCode 0224 (metadata not yet added)
- LeetCode 0227 (metadata not yet added)
- LeetCode 0772 (metadata not yet added)
LeetCode 152 - Maximum Product Subarray Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 53 - Maximum Subarray Β· Solution
- LeetCode 0628 (metadata not yet added)
- π‘ LeetCode 238 - Product of Array Except Self Β· Solution
LeetCode 153 - Find Minimum in Rotated Sorted Array Β· Solution¶
π‘ Medium β Topics: array, binary_search
π View Solution
Related Problems¶
- π‘ LeetCode 33 - Search in Rotated Sorted Array Β· Solution
- LeetCode 0154 (metadata not yet added)
- π‘ LeetCode 81 - Search in Rotated Sorted Array II Β· Solution
LeetCode 162 - Find Peak Element Β· Solution¶
π‘ Medium β Topics: array, binary_search
π View Solution
Related Problems¶
- LeetCode 0852 (metadata not yet added)
- LeetCode 1095 (metadata not yet added)
- π‘ LeetCode 153 - Find Minimum in Rotated Sorted Array Β· Solution
LeetCode 190 - Reverse Bits Β· Solution¶
π’ Easy β Topics: divide_and_conquer, bit_manipulation
π View Solution
Related Problems¶
- π‘ LeetCode 7 - Reverse Integer Β· Solution
- π’ LeetCode 191 - Number of 1 Bits Β· Solution
- π’ LeetCode 338 - Counting Bits Β· Solution
LeetCode 191 - Number of 1 Bits Β· Solution¶
π’ Easy β Topics: divide_and_conquer, bit_manipulation
π View Solution
Related Problems¶
- π’ LeetCode 190 - Reverse Bits Β· Solution
- LeetCode 0231 (metadata not yet added)
- π’ LeetCode 338 - Counting Bits Β· Solution
LeetCode 199 - Binary Tree Right Side View Β· Solution¶
π‘ Medium β Topics: tree, depth_first_search, breadth_first_search
π View Solution
Related Problems¶
- π‘ LeetCode 102 - Binary Tree Level Order Traversal Β· Solution
- LeetCode 0116 (metadata not yet added)
- LeetCode 0545 (metadata not yet added)
LeetCode 206 - Reverse Linked List Β· Solution¶
π’ Easy β Topics: linked_list, recursion
π View Solution
Related Problems¶
- π‘ LeetCode 92 - Reverse Linked List II Β· Solution
- π΄ LeetCode 25 - Reverse Nodes in k-Group Β· Solution
- LeetCode 0234 (metadata not yet added)
LeetCode 207 - Course Schedule Β· Solution¶
π‘ Medium β Topics: depth_first_search, breadth_first_search, graph
π View Solution
Related Problems¶
- π‘ LeetCode 210 - Course Schedule II Β· Solution
- π‘ LeetCode 802 - Find Eventual Safe States Β· Solution
- π΄ LeetCode 1203 - Sort Items by Groups Respecting Dependencies Β· Solution
LeetCode 210 - Course Schedule II Β· Solution¶
π‘ Medium β Topics: depth_first_search, breadth_first_search, graph
π View Solution
Related Problems¶
- π‘ LeetCode 207 - Course Schedule Β· Solution
- π‘ LeetCode 802 - Find Eventual Safe States Β· Solution
- π΄ LeetCode 1203 - Sort Items by Groups Respecting Dependencies Β· Solution
LeetCode 212 - Word Search II Β· Solution¶
π΄ Hard β Topics: array, string, backtracking
π View Solution
Related Problems¶
- π‘ LeetCode 208 - Implement Trie (Prefix Tree) Β· Solution(Prefix Tree)
- π‘ LeetCode 211 - Design Add and Search Words Data Structure Β· Solution
- π‘ LeetCode 79 - Word Search Β· Solution
LeetCode 216 - Combination Sum III Β· Solution¶
π‘ Medium β Topics: array, backtracking
π View Solution
Related Problems¶
- π‘ LeetCode 39 - Combination Sum Β· Solution
- π‘ LeetCode 40 - Combination Sum II Β· Solution
- π‘ LeetCode 77 - Combinations Β· Solution
LeetCode 217 - Contains Duplicate Β· Solution¶
π’ Easy β Topics: array, hash_table, sorting
π View Solution
Related Problems¶
- LeetCode 0219 (metadata not yet added)
- π΄ LeetCode 220 - Contains Duplicate III Β· Solution
- LeetCode 0287 (metadata not yet added)
LeetCode 226 - Invert Binary Tree Β· Solution¶
π’ Easy β Topics: tree, depth_first_search, breadth_first_search
π View Solution
Related Problems¶
- LeetCode 0101 (metadata not yet added)
- π’ LeetCode 104 - Maximum Depth of Binary Tree Β· Solution
- π’ LeetCode 110 - Balanced Binary Tree Β· Solution
LeetCode 230 - Kth Smallest Element in a BST Β· Solution¶
π‘ Medium β Topics: tree, depth_first_search, binary_search_tree
π View Solution
Related Problems¶
- π’ LeetCode 94 - Binary Tree Inorder Traversal Β· Solution
- LeetCode 0144 (metadata not yet added)
- LeetCode 0270 (metadata not yet added)
LeetCode 235 - Lowest Common Ancestor of a Binary Search Tree Β· Solution¶
π‘ Medium β Topics: tree, depth_first_search, binary_search_tree
π View Solution
Related Problems¶
- LeetCode 0236 (metadata not yet added)
- LeetCode 0700 (metadata not yet added)
- LeetCode 0701 (metadata not yet added)
LeetCode 239 - Sliding Window Maximum Β· Solution¶
π΄ Hard β Topics: array, queue, sliding_window
π View Solution
Related Problems¶
- π‘ LeetCode 1438 - Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Β· Solution
- π΄ LeetCode 862 - Shortest Subarray with Sum at Least K Β· Solution
- π΄ LeetCode 1499 - Max Value of Equation Β· Solution
LeetCode 242 - Valid Anagram Β· Solution¶
π’ Easy β Topics: hash_table, string, sorting
π View Solution
Related Problems¶
- π‘ LeetCode 49 - Group Anagrams Β· Solution
- LeetCode 0266 (metadata not yet added)
- π‘ LeetCode 438 - Find All Anagrams in a String Β· Solution
LeetCode 252 - Meeting Rooms Β· Solution¶
π’ Easy β Topics: array, sorting
π View Solution
Related Problems¶
- π‘ LeetCode 253 - Meeting Rooms II Β· Solution
- π‘ LeetCode 56 - Merge Intervals Β· Solution
- π‘ LeetCode 435 - Non-overlapping Intervals Β· Solution
LeetCode 261 - Graph Valid Tree Β· Solution¶
π‘ Medium β Topics: graph, dfs, bfs
π View Solution
Related Problems¶
- π‘ LeetCode 200 - Number of Islands Β· Solution
- π‘ LeetCode 684 - Redundant Connection Β· Solution
- LeetCode 0323 (metadata not yet added)
LeetCode 268 - Missing Number Β· Solution¶
π’ Easy β Topics: array, hash_table, math
π View Solution
Related Problems¶
- LeetCode 0041 (metadata not yet added)
- π’ LeetCode 136 - Single Number Β· Solution
- LeetCode 0287 (metadata not yet added)
LeetCode 269 - Alien Dictionary Β· Solution¶
π΄ Hard β Topics: graph, topological_sort, dfs
π View Solution
Related Problems¶
- π‘ LeetCode 207 - Course Schedule Β· Solution
- π‘ LeetCode 210 - Course Schedule II Β· Solution
- LeetCode 0953 (metadata not yet added)
LeetCode 271 - Encode and Decode Strings Β· Solution¶
π‘ Medium β Topics: string, design
π View Solution
Related Problems¶
- π΄ LeetCode 297 - Serialize and Deserialize Binary Tree Β· Solution
- LeetCode 0394 (metadata not yet added)
- LeetCode 0443 (metadata not yet added)
LeetCode 286 - Walls and Gates Β· Solution¶
π‘ Medium β Topics: array, breadth_first_search, matrix
π View Solution
Related Problems¶
- π‘ LeetCode 994 - Rotting Oranges Β· Solution
- π‘ LeetCode 542 - 01 Matrix Β· Solution
- LeetCode 1162 (metadata not yet added)
LeetCode 297 - Serialize and Deserialize Binary Tree Β· Solution¶
π΄ Hard β Topics: string, tree, depth_first_search
π View Solution
Related Problems¶
- LeetCode 0449 (metadata not yet added)
- LeetCode 0652 (metadata not yet added)
- LeetCode 0428 (metadata not yet added)
LeetCode 303 - Range Sum Query - Immutable Β· Solution¶
π’ Easy β Topics: array, design, prefix_sum
π View Solution
Related Problems¶
- π‘ LeetCode 304 - Range Sum Query 2D - Immutable Β· Solution
- π‘ LeetCode 307 - Range Sum Query - Mutable Β· Solution
- π‘ LeetCode 560 - Subarray Sum Equals K Β· Solution
LeetCode 307 - Range Sum Query - Mutable Β· Solution¶
π‘ Medium β Topics: array, design, binary_indexed_tree
π View Solution
Related Problems¶
- π’ LeetCode 303 - Range Sum Query - Immutable Β· Solution
- π‘ LeetCode 304 - Range Sum Query 2D - Immutable Β· Solution
- LeetCode 0308 (metadata not yet added)
LeetCode 329 - Longest Increasing Path in a Matrix Β· Solution¶
π΄ Hard β Topics: array, dynamic_programming, dfs
π View Solution
Related Problems¶
- π‘ LeetCode 200 - Number of Islands Β· Solution
- π‘ LeetCode 417 - Pacific Atlantic Water Flow Β· Solution
- π‘ LeetCode 695 - Max Area of Island Β· Solution
LeetCode 337 - House Robber III Β· Solution¶
π‘ Medium β Topics: dynamic_programming, tree, depth_first_search
π View Solution
Related Problems¶
- π‘ LeetCode 198 - House Robber Β· Solution
- π‘ LeetCode 213 - House Robber II Β· Solution
- π΄ LeetCode 124 - Binary Tree Maximum Path Sum Β· Solution
LeetCode 338 - Counting Bits Β· Solution¶
π’ Easy β Topics: dynamic_programming, bit_manipulation
π View Solution
Related Problems¶
- π’ LeetCode 191 - Number of 1 Bits Β· Solution
- π’ LeetCode 190 - Reverse Bits Β· Solution
- LeetCode 0461 (metadata not yet added)
LeetCode 347 - Top K Frequent Elements Β· Solution¶
π‘ Medium β Topics: array, hash_table, divide_and_conquer
π View Solution
Related Problems¶
- π‘ LeetCode 215 - Kth Largest Element in an Array Β· Solution
- LeetCode 0451 (metadata not yet added)
- LeetCode 0692 (metadata not yet added)
LeetCode 355 - Design Twitter Β· Solution¶
π‘ Medium β Topics: hash_table, linked_list, design
π View Solution
Related Problems¶
- π΄ LeetCode 23 - Merge k Sorted Lists Β· Solution
- π‘ LeetCode 146 - LRU Cache Β· Solution
- LeetCode 0380 (metadata not yet added)
LeetCode 371 - Sum of Two Integers Β· Solution¶
π‘ Medium β Topics: math, bit_manipulation
π View Solution
Related Problems¶
- LeetCode 0067 (metadata not yet added)
- LeetCode 0415 (metadata not yet added)
- LeetCode 0989 (metadata not yet added)
LeetCode 402 - Remove K Digits Β· Solution¶
π‘ Medium β Topics: string, stack, greedy
π View Solution
Related Problems¶
- π‘ LeetCode 316 - Remove Duplicate Letters Β· Solution
- π΄ LeetCode 321 - Create Maximum Number Β· Solution
- LeetCode 0738 (metadata not yet added)
LeetCode 417 - Pacific Atlantic Water Flow Β· Solution¶
π‘ Medium β Topics: array, depth_first_search, breadth_first_search
π View Solution
Related Problems¶
- π‘ LeetCode 200 - Number of Islands Β· Solution
- π‘ LeetCode 130 - Surrounded Regions Β· Solution
- π΄ LeetCode 329 - Longest Increasing Path in a Matrix Β· Solution
LeetCode 424 - Longest Repeating Character Replacement Β· Solution¶
π‘ Medium β Topics: hash_table, string, sliding_window
π View Solution
Related Problems¶
- π‘ LeetCode 3 - Longest Substring Without Repeating Characters Β· Solution
- π΄ LeetCode 76 - Minimum Window Substring Β· Solution
- π‘ LeetCode 340 - Longest Substring with At Most K Distinct Characters Β· Solution
LeetCode 435 - Non-overlapping Intervals Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming, greedy
π View Solution
Related Problems¶
- π‘ LeetCode 452 - Minimum Number of Arrows to Burst Balloons Β· Solution
- LeetCode 0646 (metadata not yet added)
- LeetCode 1235 (metadata not yet added)
LeetCode 452 - Minimum Number of Arrows to Burst Balloons Β· Solution¶
π‘ Medium β Topics: array, greedy, sorting
π View Solution
Related Problems¶
- π‘ LeetCode 435 - Non-overlapping Intervals Β· Solution
- π‘ LeetCode 253 - Meeting Rooms II Β· Solution
- π‘ LeetCode 56 - Merge Intervals Β· Solution
LeetCode 496 - Next Greater Element I Β· Solution¶
π’ Easy β Topics: array, hash_table, stack
π View Solution
Related Problems¶
- π‘ LeetCode 503 - Next Greater Element II Β· Solution
- LeetCode 0556 (metadata not yet added)
- π‘ LeetCode 739 - Daily Temperatures Β· Solution
LeetCode 523 - Continuous Subarray Sum Β· Solution¶
π‘ Medium β Topics: array, hash_table, math
π View Solution
Related Problems¶
- π‘ LeetCode 560 - Subarray Sum Equals K Β· Solution
- π‘ LeetCode 525 - Contiguous Array Β· Solution
- LeetCode 0974 (metadata not yet added)
LeetCode 525 - Contiguous Array Β· Solution¶
π‘ Medium β Topics: array, hash_table, prefix_sum
π View Solution
Related Problems¶
- π‘ LeetCode 560 - Subarray Sum Equals K Β· Solution
- π‘ LeetCode 523 - Continuous Subarray Sum Β· Solution
- LeetCode 0930 (metadata not yet added)
LeetCode 542 - 01 Matrix Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming, breadth_first_search
π View Solution
Related Problems¶
- π‘ LeetCode 994 - Rotting Oranges Β· Solution
- π‘ LeetCode 286 - Walls and Gates Β· Solution
- LeetCode 1162 (metadata not yet added)
LeetCode 547 - Number of Provinces Β· Solution¶
π‘ Medium β Topics: depth_first_search, breadth_first_search, union_find
π View Solution
Related Problems¶
- π‘ LeetCode 200 - Number of Islands Β· Solution
- LeetCode 0323 (metadata not yet added)
- π‘ LeetCode 1319 - Number of Operations to Make Network Connected Β· Solution
LeetCode 572 - Subtree of Another Tree Β· Solution¶
π’ Easy β Topics: tree, depth_first_search, string_matching
π View Solution
Related Problems¶
- π’ LeetCode 100 - Same Tree Β· Solution
- π’ LeetCode 226 - Invert Binary Tree Β· Solution
- LeetCode 0508 (metadata not yet added)
LeetCode 621 - Task Scheduler Β· Solution¶
π‘ Medium β Topics: array, hash_table, greedy
π View Solution
Related Problems¶
- LeetCode 0767 (metadata not yet added)
- LeetCode 0358 (metadata not yet added)
- LeetCode 1834 (metadata not yet added)
LeetCode 647 - Palindromic Substrings Β· Solution¶
π‘ Medium β Topics: two_pointers, string, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 5 - Longest Palindromic Substring Β· Solution
- π‘ LeetCode 516 - Longest Palindromic Subsequence Β· Solution
- π‘ LeetCode 131 - Palindrome Partitioning Β· Solution
LeetCode 678 - Valid Parenthesis String Β· Solution¶
π‘ Medium β Topics: string, dynamic_programming, stack
π View Solution
Related Problems¶
- π’ LeetCode 20 - Valid Parentheses Β· Solution
- π‘ LeetCode 22 - Generate Parentheses Β· Solution
- LeetCode 0032 (metadata not yet added)
LeetCode 695 - Max Area of Island Β· Solution¶
π‘ Medium β Topics: array, depth_first_search, breadth_first_search
π View Solution
Related Problems¶
- π‘ LeetCode 200 - Number of Islands Β· Solution
- LeetCode 0463 (metadata not yet added)
- LeetCode 0733 (metadata not yet added)
LeetCode 703 - Kth Largest Element in a Stream Β· Solution¶
π’ Easy β Topics: tree, design, binary_search_tree
π View Solution
Related Problems¶
- π‘ LeetCode 215 - Kth Largest Element in an Array Β· Solution
- π‘ LeetCode 347 - Top K Frequent Elements Β· Solution
- π΄ LeetCode 295 - Find Median from Data Stream Β· Solution
LeetCode 704 - Binary Search Β· Solution¶
π’ Easy β Topics: array, binary_search
π View Solution
Related Problems¶
- π‘ LeetCode 33 - Search in Rotated Sorted Array Β· Solution
- π‘ LeetCode 34 - Find First and Last Position of Element in Sorted Array Β· Solution
- π’ LeetCode 35 - Search Insert Position Β· Solution
LeetCode 707 - Design Linked List Β· Solution¶
π‘ Medium β Topics: linked-list, design
π View Solution
Related Problems¶
- π‘ LeetCode 146 - LRU Cache Β· Solution
- LeetCode 0460 (metadata not yet added)
- LeetCode 0706 (metadata not yet added)
LeetCode 721 - Accounts Merge Β· Solution¶
π‘ Medium β Topics: array, string, depth_first_search
π View Solution
Related Problems¶
- π‘ LeetCode 990 - Satisfiability of Equality Equations Β· Solution
- LeetCode 0839 (metadata not yet added)
- LeetCode 1202 (metadata not yet added)
LeetCode 763 - Partition Labels Β· Solution¶
π‘ Medium β Topics: hash_table, two_pointers, string
π View Solution
Related Problems¶
- π‘ LeetCode 56 - Merge Intervals Β· Solution
- π‘ LeetCode 435 - Non-overlapping Intervals Β· Solution
- π‘ LeetCode 452 - Minimum Number of Arrows to Burst Balloons Β· Solution
LeetCode 802 - Find Eventual Safe States Β· Solution¶
π‘ Medium β Topics: depth_first_search, breadth_first_search, graph
π View Solution
Related Problems¶
- π‘ LeetCode 207 - Course Schedule Β· Solution
- π‘ LeetCode 210 - Course Schedule II Β· Solution
- π΄ LeetCode 1203 - Sort Items by Groups Respecting Dependencies Β· Solution
LeetCode 846 - Hand of Straights Β· Solution¶
π‘ Medium β Topics: array, hash_table, greedy
π View Solution
Related Problems¶
- LeetCode 1296 (metadata not yet added)
- LeetCode 0659 (metadata not yet added)
- LeetCode 2009 (metadata not yet added)
LeetCode 853 - Car Fleet Β· Solution¶
π‘ Medium β Topics: array, stack, sorting
π View Solution
Related Problems¶
- π‘ LeetCode 739 - Daily Temperatures Β· Solution
- π‘ LeetCode 901 - Online Stock Span Β· Solution
- LeetCode 1776 (metadata not yet added)
LeetCode 973 - K Closest Points to Origin Β· Solution¶
π‘ Medium β Topics: array, math, divide_and_conquer
π View Solution
Related Problems¶
- π‘ LeetCode 215 - Kth Largest Element in an Array Β· Solution
- π‘ LeetCode 347 - Top K Frequent Elements Β· Solution
- LeetCode 0692 (metadata not yet added)
LeetCode 981 - Time Based Key-Value Store Β· Solution¶
π‘ Medium β Topics: hash_table, string, binary_search
π View Solution
Related Problems¶
- π‘ LeetCode 146 - LRU Cache Β· Solution
- LeetCode 0380 (metadata not yet added)
- LeetCode 0705 (metadata not yet added)
LeetCode 986 - Interval List Intersections Β· Solution¶
π‘ Medium β Topics: array, two_pointers
π View Solution
Related Problems¶
- π‘ LeetCode 56 - Merge Intervals Β· Solution
- π’ LeetCode 88 - Merge Sorted Array Β· Solution
- LeetCode 0349 (metadata not yet added)
LeetCode 990 - Satisfiability of Equality Equations Β· Solution¶
π‘ Medium β Topics: array, string, union_find
π View Solution
Related Problems¶
- π‘ LeetCode 721 - Accounts Merge Β· Solution
- LeetCode 0399 (metadata not yet added)
- LeetCode 1061 (metadata not yet added)
LeetCode 1203 - Sort Items by Groups Respecting Dependencies Β· Solution¶
π΄ Hard β Topics: depth_first_search, breadth_first_search, graph
π View Solution
Related Problems¶
- π‘ LeetCode 207 - Course Schedule Β· Solution
- π‘ LeetCode 210 - Course Schedule II Β· Solution
- π‘ LeetCode 802 - Find Eventual Safe States Β· Solution
LeetCode 1319 - Number of Operations to Make Network Connected Β· Solution¶
π‘ Medium β Topics: depth_first_search, breadth_first_search, union_find
π View Solution
Related Problems¶
- π‘ LeetCode 547 - Number of Provinces Β· Solution
- LeetCode 1579 (metadata not yet added)
- LeetCode 1101 (metadata not yet added)
LeetCode 1438 - Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Β· Solution¶
π‘ Medium β Topics: array, queue, sliding_window
π View Solution
Related Problems¶
- π΄ LeetCode 239 - Sliding Window Maximum Β· Solution
- π΄ LeetCode 862 - Shortest Subarray with Sum at Least K Β· Solution
- π΄ LeetCode 1499 - Max Value of Equation Β· Solution
LeetCode 1499 - Max Value of Equation Β· Solution¶
π΄ Hard β Topics: array, queue, sliding_window
π View Solution
Related Problems¶
- π΄ LeetCode 239 - Sliding Window Maximum Β· Solution
- π‘ LeetCode 1438 - Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Β· Solution
- π΄ LeetCode 862 - Shortest Subarray with Sum at Least K Β· Solution
LeetCode 1899 - Merge Triplets to Form Target Triplet Β· Solution¶
π‘ Medium β Topics: array, greedy
π View Solution
Related Problems¶
- π‘ LeetCode 45 - Jump Game II Β· Solution
- π‘ LeetCode 55 - Jump Game Β· Solution
- π‘ LeetCode 134 - Gas Station Β· Solution
LeetCode 1923 - Longest Common Subpath Β· Solution¶
π΄ Hard β Topics: array, binary-search, rolling-hash
π View Solution
Related Problems¶
- LeetCode 0718 (metadata not yet added)
- LeetCode 1062 (metadata not yet added)
- LeetCode 1044 (metadata not yet added)
LeetCode 1971 - Find if Path Exists in Graph Β· Solution¶
π’ Easy β Topics: depth_first_search, breadth_first_search, union_find
π View Solution
Related Problems¶
- π‘ LeetCode 547 - Number of Provinces Β· Solution
- π‘ LeetCode 684 - Redundant Connection Β· Solution
- π‘ LeetCode 841 - Keys and Rooms Β· Solution
LeetCode 2407 - Longest Increasing Subsequence II Β· Solution¶
π΄ Hard β Topics: array, dynamic_programming, segment_tree
π View Solution
Related Problems¶
- π‘ LeetCode 300 - Longest Increasing Subsequence Β· Solution
- LeetCode 0673 (metadata not yet added)
- LeetCode 0354 (metadata not yet added)
LeetCode 10 - Regular Expression Matching Β· Solution¶
π΄ Hard β Topics: String, Dynamic Programming, Recursion
π View Solution
Related Problems¶
LeetCode 16 - 3Sum Closest Β· Solution¶
π‘ Medium β Topics: array, two_pointers, sorting
π View Solution
Related Problems¶
- π‘ LeetCode 15 - 3Sum Β· Solution
- π’ LeetCode 1 - Two Sum Β· Solution
LeetCode 27 - Remove Element Β· Solution¶
π’ Easy β Topics: array, two_pointers
π View Solution
Related Problems¶
- π’ LeetCode 26 - Remove Duplicates from Sorted Array Β· Solution
- π’ LeetCode 283 - Move Zeroes Β· Solution
LeetCode 49 - Group Anagrams Β· Solution¶
π‘ Medium β Topics: array, hash_table, string
π View Solution
Related Problems¶
- π’ LeetCode 242 - Valid Anagram Β· Solution
- π‘ LeetCode 438 - Find All Anagrams in a String Β· Solution
LeetCode 50 - Pow(x, n) Β· Solution(x, n)¶
π‘ Medium β Topics: math, recursion
π View Solution
Related Problems¶
- LeetCode 0069 (metadata not yet added)
- LeetCode 0372 (metadata not yet added)
LeetCode 51 - N-Queens Β· Solution¶
π΄ Hard β Topics: array, backtracking
π View Solution
Related Problems¶
- π΄ LeetCode 52 - N-Queens II Β· Solution
- LeetCode 0037 (metadata not yet added)
LeetCode 55 - Jump Game Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming, greedy
π View Solution
Related Problems¶
- π‘ LeetCode 45 - Jump Game II Β· Solution
- π‘ LeetCode 134 - Gas Station Β· Solution
LeetCode 70 - Climbing Stairs Β· Solution¶
π’ Easy β Topics: math, dynamic_programming, memoization
π View Solution
Related Problems¶
- π’ LeetCode 746 - Min Cost Climbing Stairs Β· Solution
- π‘ LeetCode 198 - House Robber Β· Solution
LeetCode 74 - Search a 2D Matrix Β· Solution¶
π‘ Medium β Topics: array, binary_search, matrix
π View Solution
Related Problems¶
- LeetCode 0240 (metadata not yet added)
- π’ LeetCode 35 - Search Insert Position Β· Solution
LeetCode 75 - Sort Colors Β· Solution¶
π‘ Medium β Topics: array, two_pointers, sorting
π View Solution
Related Problems¶
- π’ LeetCode 905 - Sort Array By Parity Β· Solution
- π’ LeetCode 922 - Sort Array By Parity II Β· Solution
LeetCode 80 - Remove Duplicates from Sorted Array II Β· Solution¶
π‘ Medium β Topics: array, two_pointers
π View Solution
Related Problems¶
- π’ LeetCode 26 - Remove Duplicates from Sorted Array Β· Solution
- π’ LeetCode 27 - Remove Element Β· Solution
LeetCode 84 - Largest Rectangle in Histogram Β· Solution¶
π΄ Hard β Topics: array, stack, monotonic_stack
π View Solution
Related Problems¶
LeetCode 85 - Maximal Rectangle Β· Solution¶
π΄ Hard β Topics: array, dynamic_programming, stack
π View Solution
Related Problems¶
- π΄ LeetCode 84 - Largest Rectangle in Histogram Β· Solution
- LeetCode 0221 (metadata not yet added)
LeetCode 88 - Merge Sorted Array Β· Solution¶
π’ Easy β Topics: array, two_pointers, sorting
π View Solution
Related Problems¶
- π’ LeetCode 21 - Merge Two Sorted Lists Β· Solution
- π’ LeetCode 977 - Squares of a Sorted Array Β· Solution
LeetCode 92 - Reverse Linked List II Β· Solution¶
π‘ Medium β Topics: linked_list
π View Solution
Related Problems¶
- π’ LeetCode 206 - Reverse Linked List Β· Solution
- π΄ LeetCode 25 - Reverse Nodes in k-Group Β· Solution
LeetCode 93 - Restore IP Addresses Β· Solution¶
π‘ Medium β Topics: string, backtracking
π View Solution
Related Problems¶
- π‘ LeetCode 131 - Palindrome Partitioning Β· Solution
- π‘ LeetCode 93 - Restore IP Addresses Β· Solution
LeetCode 105 - Construct Binary Tree from Preorder and Inorder Traversal Β· Solution¶
π‘ Medium β Topics: array, hash_table, divide_and_conquer
π View Solution
Related Problems¶
- LeetCode 0106 (metadata not yet added)
- LeetCode 0889 (metadata not yet added)
LeetCode 121 - Best Time to Buy and Sell Stock Β· Solution¶
π’ Easy β Topics: array, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 53 - Maximum Subarray Β· Solution
- LeetCode 0122 (metadata not yet added)
LeetCode 128 - Longest Consecutive Sequence Β· Solution¶
π‘ Medium β Topics: array, hash_table, union_find
π View Solution
Related Problems¶
- LeetCode 0298 (metadata not yet added)
- LeetCode 0549 (metadata not yet added)
LeetCode 131 - Palindrome Partitioning Β· Solution¶
π‘ Medium β Topics: string, dynamic_programming, backtracking
π View Solution
Related Problems¶
- π‘ LeetCode 93 - Restore IP Addresses Β· Solution
- π‘ LeetCode 5 - Longest Palindromic Substring Β· Solution
LeetCode 133 - Clone Graph Β· Solution¶
π‘ Medium β Topics: hash_table, depth_first_search, breadth_first_search
π View Solution
Related Problems¶
- π‘ LeetCode 138 - Copy List with Random Pointer Β· Solution
- LeetCode 1485 (metadata not yet added)
LeetCode 134 - Gas Station Β· Solution¶
π‘ Medium β Topics: array, greedy
π View Solution
Related Problems¶
- π‘ LeetCode 55 - Jump Game Β· Solution
- π‘ LeetCode 45 - Jump Game II Β· Solution
LeetCode 138 - Copy List with Random Pointer Β· Solution¶
π‘ Medium β Topics: hash_table, linked_list
π View Solution
Related Problems¶
- π‘ LeetCode 133 - Clone Graph Β· Solution
- LeetCode 1485 (metadata not yet added)
LeetCode 139 - Word Break Β· Solution¶
π‘ Medium β Topics: array, hash_table, string
π View Solution
Related Problems¶
- LeetCode 0140 (metadata not yet added)
- LeetCode 0472 (metadata not yet added)
LeetCode 141 - Linked List Cycle Β· Solution¶
π’ Easy β Topics: linked_list, two_pointers, hash_table
π View Solution
Related Problems¶
LeetCode 142 - Linked List Cycle II Β· Solution¶
π‘ Medium β Topics: linked_list, two_pointers, hash_table
π View Solution
Related Problems¶
- π’ LeetCode 141 - Linked List Cycle Β· Solution
- π’ LeetCode 202 - Happy Number Β· Solution
LeetCode 155 - Min Stack Β· Solution¶
π‘ Medium β Topics: stack, design
π View Solution
Related Problems¶
- π΄ LeetCode 239 - Sliding Window Maximum Β· Solution
- LeetCode 0716 (metadata not yet added)
LeetCode 198 - House Robber Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 213 - House Robber II Β· Solution
- π’ LeetCode 70 - Climbing Stairs Β· Solution
LeetCode 202 - Happy Number Β· Solution¶
π’ Easy β Topics: hash_table, math, two_pointers
π View Solution
Related Problems¶
- π’ LeetCode 141 - Linked List Cycle Β· Solution
- π‘ LeetCode 142 - Linked List Cycle II Β· Solution
LeetCode 204 - Count Primes Β· Solution¶
π‘ Medium β Topics: array, math, enumeration
π View Solution
Related Problems¶
- π’ LeetCode 1979 - Find Greatest Common Divisor of Array Β· Solution
- π’ LeetCode 168 - Excel Sheet Column Title Β· Solution
LeetCode 215 - Kth Largest Element in an Array Β· Solution¶
π‘ Medium β Topics: array, divide_and_conquer, sorting
π View Solution
Related Problems¶
- π‘ LeetCode 347 - Top K Frequent Elements Β· Solution
- LeetCode 0378 (metadata not yet added)
LeetCode 218 - The Skyline Problem Β· Solution¶
π΄ Hard β Topics: array, divide_and_conquer, binary_indexed_tree
π View Solution
Related Problems¶
- π‘ LeetCode 253 - Meeting Rooms II Β· Solution
- π‘ LeetCode 1094 - Car Pooling Β· Solution
LeetCode 220 - Contains Duplicate III Β· Solution¶
π΄ Hard β Topics: array, sliding_window, sorting
π View Solution
Related Problems¶
- π’ LeetCode 217 - Contains Duplicate Β· Solution
- LeetCode 0219 (metadata not yet added)
LeetCode 238 - Product of Array Except Self Β· Solution¶
π‘ Medium β Topics: array, prefix_sum
π View Solution
Related Problems¶
- π΄ LeetCode 42 - Trapping Rain Water Β· Solution
- π‘ LeetCode 152 - Maximum Product Subarray Β· Solution
LeetCode 283 - Move Zeroes Β· Solution¶
π’ Easy β Topics: array, two_pointers
π View Solution
Related Problems¶
- π’ LeetCode 27 - Remove Element Β· Solution
- π’ LeetCode 26 - Remove Duplicates from Sorted Array Β· Solution
LeetCode 295 - Find Median from Data Stream Β· Solution¶
π΄ Hard β Topics: two_pointers, design, sorting
π View Solution
Related Problems¶
- LeetCode 0480 (metadata not yet added)
- π’ LeetCode 703 - Kth Largest Element in a Stream Β· Solution
LeetCode 304 - Range Sum Query 2D - Immutable Β· Solution¶
π‘ Medium β Topics: array, design, matrix
π View Solution
Related Problems¶
- π’ LeetCode 303 - Range Sum Query - Immutable Β· Solution
- LeetCode 0308 (metadata not yet added)
LeetCode 315 - Count of Smaller Numbers After Self Β· Solution¶
π΄ Hard β Topics: array, binary_search, divide_and_conquer
π View Solution
Related Problems¶
- π΄ LeetCode 327 - Count of Range Sum Β· Solution
- LeetCode 0493 (metadata not yet added)
LeetCode 316 - Remove Duplicate Letters Β· Solution¶
π‘ Medium β Topics: string, stack, greedy
π View Solution
Related Problems¶
- π‘ LeetCode 402 - Remove K Digits Β· Solution
- LeetCode 1081 (metadata not yet added)
LeetCode 321 - Create Maximum Number Β· Solution¶
π΄ Hard β Topics: array, two_pointers, stack
π View Solution
Related Problems¶
- π‘ LeetCode 402 - Remove K Digits Β· Solution
- π‘ LeetCode 316 - Remove Duplicate Letters Β· Solution
LeetCode 322 - Coin Change Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming, bfs
π View Solution
Related Problems¶
- π‘ LeetCode 518 - Coin Change II Β· Solution
- LeetCode 0279 (metadata not yet added)
LeetCode 327 - Count of Range Sum Β· Solution¶
π΄ Hard β Topics: array, binary_search, divide_and_conquer
π View Solution
Related Problems¶
- π΄ LeetCode 315 - Count of Smaller Numbers After Self Β· Solution
- LeetCode 0493 (metadata not yet added)
LeetCode 332 - Reconstruct Itinerary Β· Solution¶
π΄ Hard β Topics: dfs, graph, eulerian_circuit
π View Solution
Related Problems¶
- LeetCode 0753 (metadata not yet added)
- LeetCode 2097 (metadata not yet added)
LeetCode 416 - Partition Equal Subset Sum Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 494 - Target Sum Β· Solution
- LeetCode 0698 (metadata not yet added)
LeetCode 420 - Strong Password Checker Β· Solution¶
π΄ Hard β Topics: string, greedy, heap
π View Solution
Related Problems¶
- LeetCode 0068 (metadata not yet added)
- LeetCode 0068 (metadata not yet added)
LeetCode 503 - Next Greater Element II Β· Solution¶
π‘ Medium β Topics: array, stack, monotonic_stack
π View Solution
Related Problems¶
- π’ LeetCode 496 - Next Greater Element I Β· Solution
- LeetCode 0556 (metadata not yet added)
LeetCode 518 - Coin Change II Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 322 - Coin Change Β· Solution
- LeetCode 0377 (metadata not yet added)
LeetCode 665 - Non-decreasing Array Β· Solution¶
π‘ Medium β Topics: array, greedy
π View Solution
Related Problems¶
- π‘ LeetCode 53 - Maximum Subarray Β· Solution
- π’ LeetCode 283 - Move Zeroes Β· Solution
LeetCode 684 - Redundant Connection Β· Solution¶
π‘ Medium β Topics: depth_first_search, breadth_first_search, union_find
π View Solution
Related Problems¶
- LeetCode 0685 (metadata not yet added)
- π‘ LeetCode 261 - Graph Valid Tree Β· Solution
LeetCode 739 - Daily Temperatures Β· Solution¶
π‘ Medium β Topics: array, stack, monotonic_stack
π View Solution
Related Problems¶
- π’ LeetCode 496 - Next Greater Element I Β· Solution
- π‘ LeetCode 901 - Online Stock Span Β· Solution
LeetCode 805 - Split Array With Same Average Β· Solution¶
π΄ Hard β Topics: array, math, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 416 - Partition Equal Subset Sum Β· Solution
- π‘ LeetCode 494 - Target Sum Β· Solution
LeetCode 841 - Keys and Rooms Β· Solution¶
π‘ Medium β Topics: depth_first_search, breadth_first_search, graph
π View Solution
Related Problems¶
- π‘ LeetCode 547 - Number of Provinces Β· Solution
- π’ LeetCode 1971 - Find if Path Exists in Graph Β· Solution
LeetCode 847 - Shortest Path Visiting All Nodes Β· Solution¶
π΄ Hard β Topics: dynamic_programming, bit_manipulation, bfs
π View Solution
Related Problems¶
- LeetCode 0943 (metadata not yet added)
- π΄ LeetCode 1494 - Parallel Courses II
LeetCode 876 - Middle of the Linked List Β· Solution¶
π’ Easy β Topics: linked_list, two_pointers
π View Solution
Related Problems¶
- π’ LeetCode 141 - Linked List Cycle Β· Solution
- π‘ LeetCode 142 - Linked List Cycle II Β· Solution
LeetCode 901 - Online Stock Span Β· Solution¶
π‘ Medium β Topics: stack, design, monotonic_stack
π View Solution
Related Problems¶
- π‘ LeetCode 739 - Daily Temperatures Β· Solution
- π’ LeetCode 496 - Next Greater Element I Β· Solution
LeetCode 905 - Sort Array By Parity Β· Solution¶
π’ Easy β Topics: array, two_pointers, sorting
π View Solution
Related Problems¶
LeetCode 907 - Sum of Subarray Minimums Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming, stack
π View Solution
Related Problems¶
- π‘ LeetCode 2104 - Sum of Subarray Ranges Β· Solution
- π΄ LeetCode 84 - Largest Rectangle in Histogram Β· Solution
LeetCode 922 - Sort Array By Parity II Β· Solution¶
π’ Easy β Topics: array, two_pointers
π View Solution
Related Problems¶
- π’ LeetCode 905 - Sort Array By Parity Β· Solution
- π‘ LeetCode 75 - Sort Colors Β· Solution
LeetCode 968 - Binary Tree Cameras Β· Solution¶
π΄ Hard β Topics: dynamic_programming, tree, depth_first_search
π View Solution
Related Problems¶
- π‘ LeetCode 337 - House Robber III Β· Solution
- π΄ LeetCode 124 - Binary Tree Maximum Path Sum Β· Solution
LeetCode 977 - Squares of a Sorted Array Β· Solution¶
π’ Easy β Topics: array, two_pointers, sorting
π View Solution
Related Problems¶
- π’ LeetCode 21 - Merge Two Sorted Lists Β· Solution
- π’ LeetCode 88 - Merge Sorted Array Β· Solution
LeetCode 1046 - Last Stone Weight Β· Solution¶
π’ Easy β Topics: array, heap
π View Solution
Related Problems¶
- LeetCode 1049 (metadata not yet added)
- LeetCode 1167 (metadata not yet added)
LeetCode 1094 - Car Pooling Β· Solution¶
π‘ Medium β Topics: array, sorting, heap_priority_queue
π View Solution
Related Problems¶
- π‘ LeetCode 1109 - Corporate Flight Bookings Β· Solution
- π‘ LeetCode 253 - Meeting Rooms II Β· Solution
LeetCode 1109 - Corporate Flight Bookings Β· Solution¶
π‘ Medium β Topics: array, prefix_sum
π View Solution
Related Problems¶
- π‘ LeetCode 1094 - Car Pooling Β· Solution
- LeetCode 0370 (metadata not yet added)
LeetCode 1125 - Smallest Sufficient Team Β· Solution¶
π΄ Hard β Topics: array, dynamic_programming, bit_manipulation
π View Solution
Related Problems¶
- LeetCode 1723 (metadata not yet added)
- LeetCode 1986 (metadata not yet added)
LeetCode 1909 - Remove One Element to Make the Array Strictly Increasing Β· Solution¶
π’ Easy β Topics: array
π View Solution
Related Problems¶
- π‘ LeetCode 665 - Non-decreasing Array Β· Solution
- LeetCode 0376 (metadata not yet added)
LeetCode 1979 - Find Greatest Common Divisor of Array Β· Solution¶
π’ Easy β Topics: array, math, number_theory
π View Solution
Related Problems¶
- π‘ LeetCode 204 - Count Primes Β· Solution
- π’ LeetCode 168 - Excel Sheet Column Title Β· Solution
LeetCode 2013 - Detect Squares Β· Solution¶
π‘ Medium β Topics: array, hash_table, design
π View Solution
Related Problems¶
- π΄ LeetCode 149 - Max Points on a Line Β· Solution
- LeetCode 0593 (metadata not yet added)
LeetCode 2104 - Sum of Subarray Ranges Β· Solution¶
π‘ Medium β Topics: array, stack, monotonic_stack
π View Solution
Related Problems¶
- π‘ LeetCode 907 - Sum of Subarray Minimums Β· Solution
- π΄ LeetCode 84 - Largest Rectangle in Histogram Β· Solution
LeetCode 2156 - Find Substring With Given Hash Value Β· Solution¶
π΄ Hard β Topics: string, sliding_window, rolling_hash
π View Solution
Related Problems¶
- π’ LeetCode 28 - Find the Index of the First Occurrence in a String
- LeetCode 0187 (metadata not yet added)
LeetCode 2332 - The Latest Time to Catch a Bus Β· Solution¶
π‘ Medium β Topics: array, two-pointers, binary-search
π View Solution
Related Problems¶
- LeetCode 1870 (metadata not yet added)
- LeetCode 2410 (metadata not yet added)
LeetCode 2550 - Count Collisions of Monkeys on a Polygon Β· Solution¶
π‘ Medium β Topics: math, recursion
π View Solution
Related Problems¶
- π‘ LeetCode 50 - Pow(x, n) Β· Solution(x, n)
- LeetCode 0372 (metadata not yet added)
LeetCode 2572 - Count the Number of Square-Free Subsets Β· Solution¶
π‘ Medium β Topics: array, math, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 78 - Subsets Β· Solution
- π‘ LeetCode 90 - Subsets II Β· Solution
LeetCode 2708 - Maximum Strength of a Group Β· Solution¶
π‘ Medium β Topics: array, greedy, sorting
π View Solution
Related Problems¶
- π‘ LeetCode 152 - Maximum Product Subarray Β· Solution
- LeetCode 0628 (metadata not yet added)
LeetCode 8 - String to Integer (atoi) Β· Solution(atoi)¶
π‘ Medium β Topics: string
π View Solution
Related Problems¶
- π‘ LeetCode 7 - Reverse Integer Β· Solution
LeetCode 36 - Valid Sudoku Β· Solution¶
π‘ Medium β Topics: array, hash_table, matrix
π View Solution
Related Problems¶
- LeetCode 0037 (metadata not yet added)
LeetCode 44 - Wildcard Matching¶
π΄ Hard β Topics: string, dynamic_programming, greedy
π View Solution
Related Problems¶
LeetCode 45 - Jump Game II Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming, greedy
π View Solution
Related Problems¶
- π‘ LeetCode 55 - Jump Game Β· Solution
LeetCode 52 - N-Queens II Β· Solution¶
π΄ Hard β Topics: backtracking
π View Solution
Related Problems¶
- π΄ LeetCode 51 - N-Queens Β· Solution
LeetCode 65 - Valid Number Β· Solution¶
π΄ Hard β Topics: string
π View Solution
Related Problems¶
- π‘ LeetCode 8 - String to Integer (atoi) Β· Solution(atoi)
LeetCode 73 - Set Matrix Zeroes Β· Solution¶
π‘ Medium β Topics: array, hash_table, matrix
π View Solution
Related Problems¶
- LeetCode 0289 (metadata not yet added)
LeetCode 126 - Word Ladder II Β· Solution¶
π΄ Hard β Topics: hash_table, string, backtracking
π View Solution
Related Problems¶
-LeetCode 127 - Word Ladder Β· Solution (metadata not yet added)
LeetCode 135 - Candy Β· Solution¶
π΄ Hard β Topics: array, greedy
π View Solution
Related Problems¶
LeetCode 149 - Max Points on a Line Β· Solution¶
π΄ Hard β Topics: array, hash-table, math
π View Solution
Related Problems¶
- LeetCode 0356 (metadata not yet added)
LeetCode 168 - Excel Sheet Column Title Β· Solution¶
π’ Easy β Topics: math, string
π View Solution
Related Problems¶
- LeetCode 0171 (metadata not yet added)
LeetCode 213 - House Robber II Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming
π View Solution
Related Problems¶
- π‘ LeetCode 198 - House Robber Β· Solution
LeetCode 455 - Assign Cookies Β· Solution¶
π’ Easy β Topics: array, two_pointers, greedy
π View Solution
Related Problems¶
LeetCode 494 - Target Sum Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming, backtracking
π View Solution
Related Problems¶
LeetCode 680 - Valid Palindrome II Β· Solution¶
π’ Easy β Topics: two_pointers, string, greedy
π View Solution
Related Problems¶
LeetCode 746 - Min Cost Climbing Stairs Β· Solution¶
π’ Easy β Topics: array, dynamic_programming
π View Solution
Related Problems¶
LeetCode 785 - Is Graph Bipartite? Β· Solution¶
π‘ Medium β Topics: depth_first_search, breadth_first_search, union_find
π View Solution
Related Problems¶
- LeetCode 0886 (metadata not yet added)
LeetCode 887 - Super Egg Drop Β· Solution¶
π΄ Hard β Topics: math, binary-search, dynamic-programming
π View Solution
Related Problems¶
- LeetCode 1884 (metadata not yet added)
LeetCode 1029 - Two City Scheduling Β· Solution¶
π‘ Medium β Topics: array, greedy, sorting
π View Solution
Related Problems¶
LeetCode 1191 - K-Concatenation Maximum Sum Β· Solution¶
π‘ Medium β Topics: array, dynamic_programming
π View Solution
Related Problems¶
LeetCode 1648 - Sell Diminishing-Valued Colored Balls Β· Solution¶
π‘ Medium β Topics: array, math, binary-search
π View Solution
Related Problems¶
- LeetCode 1870 (metadata not yet added)
LeetCode 2035 - Partition Array Into Two Arrays to Minimize Sum Difference Β· Solution¶
π΄ Hard β Topics: array, two_pointers, binary_search
π View Solution
Related Problems¶
LeetCode 2069 - Walking Robot Simulation II Β· Solution¶
π‘ Medium β Topics: design, simulation, math
π View Solution
Related Problems¶
- LeetCode 0874 (metadata not yet added)
LeetCode 2280 - Minimum Lines to Represent a Line Chart Β· Solution¶
π‘ Medium β Topics: array, math, geometry
π View Solution
Related Problems¶
LeetCode 2281 - Sum of Total Strength of Wizards Β· Solution¶
π΄ Hard β Topics: array, stack, monotonic_stack
π View Solution
Related Problems¶
-LeetCode 907 - Sum of Subarray Minimums Β· Solution (metadata not yet added)
LeetCode 2286 - Booking Concert Tickets in Groups Β· Solution¶
π΄ Hard β Topics: binary_search, design, segment_tree
π View Solution
Related Problems¶
LeetCode 2333 - Minimum Sum of Squared Difference Β· Solution¶
π‘ Medium β Topics: array, math, sorting
π View Solution
Related Problems¶
- LeetCode 0462 (metadata not yet added)
LeetCode 2659 - Make Array Empty Β· Solution¶
π΄ Hard β Topics: array, sorting, greedy
π View Solution
Related Problems¶
LeetCode 2736 - Maximum Sum Queries Β· Solution¶
π΄ Hard β Topics: array, binary-search, stack
π View Solution
Related Problems¶
- LeetCode 2940 (metadata not yet added)