| 264 |
Ugly Number II |
| 2487 |
Remove Nodes From Linked List |
| 1492 |
The kth Factor of n |
| 861 |
Score After Flipping Matrix |
| 1219 |
Path with Maximum Gold |
| 1325 |
Delete Leaves With a Given Value |
| 200 |
Number of Islands |
| 11 |
Container With Most Water |
| 155 |
Min Stack |
| 981 |
Time Based Key-Value Store |
| 21 |
Merge Two Sorted Lists |
| 90 |
Subsets II |
| 15 |
3 Sum |
| 167 |
Two Sum II - Input Array Is Sorted |
| 846 |
Hand of Straights |
| 153 |
Find Minimum in Rotated Sorted Array |
| 33 |
Search in Rotated Sorted Array |
| 3 |
Longest Substring Without Repeating Characters |
| 424 |
Longest Repeating Character Replacement |
| 695 |
Max Area of Island |
| 146 |
LRU Cache |
| 287 |
Find the Duplicate Number |
| 286 |
Walls and Gates |
| 253 |
Meeting Rooms II |
| 56 |
Merge Intervals |
| 57 |
Insert Interval |
| 435 |
Non-overlapping Intervals |
| 994 |
Rotting Oranges |
| 207 |
Course Schedule |
| 210 |
Course Schedule II |
| 678 |
Valid Parenthesis String |
| 261 |
Graph Valid Tree |
| 75 |
Sort Colors |
| 1899 |
Merge Triplets to Form Target Triplet |
| 134 |
Gas Station |
| 235 |
Lowest Common Ancestor of a Binary Search Tree |
| 102 |
Binary Tree Level Order Traversal |
| 235 |
Lowest Common Ancestor of a Binary Search Tree |
| 199 |
Binary Tree Right Side View |
| 208 |
Implement Trie (Prefix Tree) |
| 211 |
Design Add and Search Words Data Structure |
| 945 |
Minimum Increment to Make Array Unique |
| 2707 |
Extra Characters in a String |
| 49 |
Group Anagrams |
| 36 |
Valid Sudoku |
| 78 |
Subsets |
| 39 |
Combination Sum |
| 46 |
Permutations |
| 90 |
Subsets II |
| 40 |
Combination Sum II |
| 216 |
Combination Sum III |
| 79 |
Word Search |
| 131 |
Palindrome Partitioning |
| 17 |
Letter Combinations of a Phone Number |
| 633 |
Sum of Square Numbers |
| 826 |
Most Profit Assigning Work |
| 1288 |
Remove Covered Intervals |
| 1448 |
Count Good Nodes in Binary Tree |
| 113 |
Path Sum II |
| 437 |
Path Sum III |
| 98 |
Validate Binary Search Tree |
| 230 |
Kth Smallest Element in a BST |
| 105 |
Construct Binary Tree from Preorder and Inorder Traversal |
| 1482 |
Minimum Number of Days to Make m Bouquets |
| 1052 |
Grumpy Bookstore Owner |
| 1552 |
Magnetic Force Between Two Balls |
| 3043 |
Find the Length of the Longest Common Prefix |
| 1248 |
Count Number of Nice Subarrays |
| 1438 |
Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit |
| 314 |
Binary Tree Vertical Order Traversal |
| 1038 |
Binary Search Tree to Greater Sum Tree |
| 1249 |
Minimum Remove to Make Valid Parentheses |
| 1382 |
Balance a Binary Search Tree |
| 1650 |
Lowest Common Ancestor of a Binary Tree III |
| 1570 |
Dot Product of Two Sparse Vectors |
| 2285 |
Maximum Total Importance of Roads |
| 2192 |
All Ancestors of a Node in a Directed Acyclic Graph |
| 1762 |
Buildings With an Ocean View |
| 426 |
Convert Binary Search Tree to Sorted Doubly Linked List |
| 227 |
Basic Calculator II |
| 528 |
Random Pick with Weight |
| 71 |
Simplify Path |
| 708 |
Insert into a Sorted Circular Linked List |
| 1509 |
Minimum Difference Between Largest and Smallest Value in Three Moves |
| 2181 |
Merge Nodes in Between Zeros |
| 2058 |
Find the Minimum and Maximum Number of Nodes Between Critical Points |
| 1315 |
Sum of Nodes with Even-Valued Grandparent |
| 209 |
Minimum Size Subarray Sum |
| 1823 |
Find the Winner of the Circular Game |
| 1701 |
Average Waiting Time |
| 399 |
Evaluate Division |
| 1481 |
Least Number of Unique Integers after K Removals |
| 1091 |
Shortest Path in Binary Matrix |
| 921 |
Minimum Add to Make Parentheses Valid |
| 986 |
Interval List Intersections |
| 1190 |
Reverse Substrings Between Each Pair of Parentheses |
| 1717 |
Maximum Score From Removing Substrings |
| 2196 |
Create Binary Tree From Descriptions |
| 1722 |
Minimize Hamming Distance After Swap Operations |
| 300 |
Longest Increasing Subsequence |
| 2096 |
Step-By-Step Directions From a Binary Tree Node to Another |
| 973 |
K Closest Points to Origin |
| 1110 |
Delete Nodes And Return Forest |
| 1530 |
Number of Good Leaf Nodes Pairs |
| 427 |
Construct Quad Tree |
| 24 |
Swap Nodes in Pairs |
| 34 |
Find First and Last Position of Element in Sorted Array |
| 1605 |
Find Valid Matrix Given Row and Column Sums |
| 687 |
Longest Univalue Path |
| 371 |
Sum of Two Integers |
| 621 |
Task Scheduler |
| 355 |
Design Twitter |
| 1642 |
Furthest Building You Can Reach |
| 2542 |
Maximum Subsequence Score |
| 2017 |
Grid Game |
| 2191 |
Sort the Jumbled Numbers |
| 912 |
Sort an Array |
| 2976 |
Minimum Cost to Convert String I |
| 150 |
Evaluate Reverse Polish Notation |
| 2390 |
Removing Stars From a String |
| 946 |
Validate Stack Sequences |
| 22 |
Generate Parentheses |
| 739 |
Daily Temperatures |
| 735 |
Asteroid Collision |
| 901 |
Online Stock Span |
| 1395 |
Count Number of Teams |
| 1653 |
Minimum Deletions to Make String Balanced |
| 48 |
Rotate Image |
| 1834 |
Single-Threaded CPU |
| 103 |
Binary Tree Zigzag Level Order Traversal |
| 1105 |
Filling Bookcase Shelves |
| 2 |
Add Two Numbers |
| 910 |
Smallest Range II |
| 1151 |
Minimum Swaps to Group All 1's Together |
| 2134 |
Minimum Swaps to Group All 1's Together II |
| 366 |
Find Leaves of Binary Tree |
| 1020 |
Number of Enclaves |
| 91 |
Decode Ways |
| 96 |
Unique Binary Search Trees |
| 95 |
Unique Binary Search Trees II |
| 1257 |
Smallest Common Region |
| 1508 |
Range Sum of Sorted Subarray Sums |
| 3016 |
Minimum Number of Pushes to Type Word II |
| 2473 |
Minimum Cost to Buy Apples |
| 1418 |
Display Table of Food Orders in a Restaurant |
| 1247 |
Minimum Swaps to Make Strings Equal |
| 665 |
Non-decreasing Array |
| 1079 |
Letter Tile Possibilities |
| 12 |
Integer to Roman |
| 885 |
Spiral Matrix III |
| 915 |
Partition Array into Disjoint Intervals |
| 840 |
Magic Squares In Grid |
| 1041 |
Robot Bounded In Circle |
| 240 |
Search a 2D Matrix II |
| 8 |
String to Integer (atoi) |
| 122 |
Best Time to Buy and Sell Stock II |
| 714 |
Best Time to Buy and Sell Stock with Transaction Fee |
| 309 |
Best Time to Buy and Sell Stock with Cooldown |
| 53 |
Maximum Subarray |
| 198 |
House Robber |
| 213 |
House Robber II |
| 337 |
House Robber III |
| 2560 |
House Robber IV |
| 959 |
Regions Cut By Slashes |
| 279 |
Perfect Squares |
| 322 |
Coin Change |
| 518 |
Coin Change II |
| 983 |
Minimum Cost For Tickets |
| 624 |
Maximum Distance in Arrays |
| 2266 |
Count Number of Texts |
| 397 |
Integer Replacement |
| 646 |
Maximum Length of Pair Chain |
| 416 |
Partition Equal Subset Sum |
| 650 |
2 Keys Keyboard |
| 1937 |
Maximum Number of Points with Cost |
| 2611 |
Mice and Cheese |
| 2095 |
Delete the Middle Node of a Linked List |
| 877 |
Stone Game |
| 1140 |
Stone Game II |
| 1686 |
Stone Game VI |
| 1690 |
Stone Game VII |
| 2029 |
Stone Game IX |
| 2101 |
Detonate the Maximum Bombs |
| 688 |
Knight Probability in Chessboard |
| 592 |
Fraction Addition and Subtraction |
| 152 |
Maximum Product Subarray |
| 62 |
Unique Paths |
| 63 |
Unique Paths II |
| 1143 |
Longest Common Subsequence |
| 494 |
Target Sum |
| 97 |
Interleaving String |
| 72 |
Edit Distance |
| 1514 |
Path with Maximum Probability |
| 947 |
Most Stones Removed with Same Row or Column |
| 1894 |
Find the Student that Will Replace the Chalk |
| 2028 |
Find Missing Observations |
| 55 |
Jump Game |
| 725 |
Split Linked List in Parts |
| 2326 |
Spiral Matrix IV |
| 2807 |
Insert Greatest Common Divisors in Linked List |
| 143 |
Reorder List |
| 19 |
Remove Nth Node From End of List |
| 138 |
Copy List with Random Pointer |
| 142 |
Linked List Cycle II |
| 1578 |
Minimum Time to Make Rope Colorful |
| 1310 |
XOR Queries of a Subarray |
| 1615 |
Maximal Network Rank |
| 38 |
Count and Say |
| 490 |
The Maze |
| 2419 |
Longest Subarray With Maximum Bitwise AND |
| 139 |
Word Break |
| 692 |
Top K Frequent Words |
| 622 |
Design Circular Queue |
| 767 |
Reorganize String |
| 449 |
Serialize and Deserialize BST |
| 1371 |
Find the Longest Substring Containing Vowels in Even Counts |
| 348 |
Design Tic-Tac-Toe |
| 341 |
Flatten Nested List Iterator |
| 658 |
Find K Closest Elements |
| 54 |
Spiral Matrix |
| 443 |
String Compression |
| 1838 |
Frequency of the Most Frequent Element |
| 539 |
Minimum Time Difference |
| 1493 |
Longest Subarray of 1's After Deleting One Element |
| 713 |
Subarray Product Less Than K |
| 720 |
Longest Word in Dictionary |
| 567 |
Permutation in String |
| 159 |
Longest Substring with At Most Two Distinct Characters |
| 340 |
Longest Substring with At Most K Distinct Characters |
| 2831 |
Find the Longest Equal Subarray |
| 179 |
Largest Number |
| 1239 |
Maximum Length of a Concatenated String with Unique Characters |
| 241 |
Different Ways to Add Parentheses |
| 311 |
Sparse Matrix Multiplication |
| 792 |
Number of Matching Subsequences |
| 1055 |
Shortest Way to Form String |
| 386 |
Lexicographical Numbers |
| 1996 |
The Number of Weak Characters in the Game |
| 540 |
Single Element in a Sorted Array |
| 785 |
Is Graph Bipartite? |
| 2008 |
Maximum Earnings From Taxi |
| 505 |
The Maze II |
| 487 |
Max Consecutive Ones II |
| 1004 |
Max Consecutive Ones III |
| 503 |
Next Greater Element II |
| 556 |
Next Greater Element III |
| 31 |
Next Permutation |
| 2408 |
Design SQL |
| 450 |
Delete Node in a BST |
| 729 |
My Calendar I |
| 731 |
My Calendar II |
| 641 |
Design Circular Deque |
| 1011 |
Capacity To Ship Packages Within D Days |
| 162 |
Find Peak Element |
| 2300 |
Successful Pairs of Spells and Potions |
| 1268 |
Search Suggestions System |
| 74 |
Search a 2D Matrix |
| 73 |
Set Matrix Zeroes |
| 394 |
Decode String |
| 875 |
Koko Eating Bananas |
| 92 |
Reverse Linked List II |
| 2049 |
Count Nodes With the Highest Score |
| 64 |
Minimum Path Sum |
| 18 |
4Sum |
| 81 |
Search in Rotated Sorted Array II |
| 116 |
Populating Next Right Pointers in Each Node |
| 852 |
Peak Index in a Mountain Array |
| 1381 |
Design a Stack With Increment Operation |
| 328 |
Odd Even Linked List |
| 229 |
Majority Element II |
| 863 |
All Nodes Distance K in Binary Tree |
| 1497 |
Check If Array Pairs Are Divisible by k |
| 362 |
Design Hit Counter |
| 1590 |
Make Sum Divisible by P |
| 2491 |
Divide Players Into Teams of Equal Skill |
| 581 |
Shortest Unsorted Continuous Subarray |
| 1343 |
Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold |
| 1456 |
Maximum Number of Vowels in a Substring of Given Length |
| 1888 |
Minimum Number of Flips to Make the Binary String Alternating |
| 1658 |
Minimum Operations to Reduce X to Zero |
| 1208 |
Get Equal Substrings Within Budget |
| 930 |
Binary Subarrays With Sum |
| 713 |
Subarray Product Less Than K |
| 2958 |
Length of Longest Subarray With at Most K Frequency |
| 2962 |
Count Subarrays Where Max Element Appears at Least K Times |
| 1813 |
Sentence Similarity III |
| 133 |
Clone Graph |
| 419 |
Battleships in a Board |
| 130 |
Surrounded Regions |
| 1466 |
Reorder Routes to Make All Paths Lead to the City Zero |
| 909 |
Snakes and Ladders |
| 752 |
Open the Lock |
| 802 |
Find Eventual Safe States |
| 1462 |
Course Schedule IV |
| 1358 |
Number of Substrings Containing All Three Characters |
| 1963 |
Minimum Number of Swaps to Make the String Balanced |
| 1152 |
Analyze User Website Visit Pattern |
| 45 |
Jump Game II |
| 881 |
Boats to Save People |
| 1750 |
Minimum Length of String After Deleting Similar Ends |
| 962 |
Maximum Width Ramp |
| 1669 |
Merge In Between Linked Lists |
| 2130 |
Maximum Twin Sum of a Linked List |
| 2406 |
Divide Intervals Into Minimum Number of Groups |
| 1721 |
Swapping Nodes in a Linked List |
| 1094 |
Car Pooling |
| 370 |
Range Addition |
| 1109 |
Corporate Flight Bookings |
| 2021 |
Brightest Position on Street |
| 2237 |
Count Positions on Street With Required Brightness |
| 1258 |
Synonymous Sentences |
| 1352 |
Product of the Last K Numbers |
| 2938 |
Separate Black and White Balls |
| 1405 |
Longest Happy String |
| 128 |
Longest Consecutive Sequence |
| 670 |
Maximum Swap |
| 2044 |
Count Number of Maximum Bitwise-OR Subsets |
| 1545 |
Find Kth Bit in Nth Binary String |
| 187 |
Repeated DNA Sequences |
| 1209 |
Remove All Adjacent Duplicates in String II |
| 966 |
Vowel Spellchecker |
| 1631 |
Path With Minimum Effort |
| 743 |
Network Delay Time |
| 1593 |
Split a String Into the Max Number of Unique Substrings |
| 951 |
Flip Equivalent Binary Trees |
| 1233 |
Remove Sub-Folders from the Filesystem |
| 2583 |
Kth Largest Sum in a Binary Tree |
| 1277 |
Count Square Submatrices with All Ones |
| 339 |
Nested List Weight Sum |
| 2501 |
Longest Square Streak in an Array |
| 215 |
Kth Largest Element in an Array |
| 129 |
Sum Root to Leaf Numbers |
| 5 |
Longest Palindromic Substring |
| 2684 |
Maximum Number of Moves in a Grid |
| 236 |
Lowest Common Ancestor of a Binary Tree |
| 606 |
Construct String from Binary Tree |
| 701 |
Insert into a Binary Search Tree |
| 513 |
Find Bottom Left Tree Value |
| 721 |
Accounts Merge |
| 560 |
Subarray Sum Equals K |
| 1845 |
Seat Reservation Manager |
| 3163 |
String Compression III |
| 1985 |
Find the Kth Largest Integer in the Array |
| 380 |
Insert Delete GetRandom O(1) |
| 1229 |
Meeting Scheduler |
| 347 |
Top K Frequent Elements |
| 3011 |
Find if Array Can Be Sorted |
| 2275 |
Largest Combination With Bitwise AND Greater Than Zero |
| 1829 |
Maximum XOR for Each Query |
| 3133 |
Minimum Array End |
| 2090 |
K Radius Subarray Averages |
| 1778 |
Shortest Path in a Hidden Grid |
| 1123 |
Lowest Common Ancestor of Deepest Leaves |
| 3097 |
Shortest Subarray With OR at Least K II |
| 1609 |
Even Odd Tree |
| 814 |
Binary Tree Pruning |
| 616 |
Add Bold Tag in String |
| 468 |
Validate IP Address |
| 453 |
Minimum Moves to Equal Array Elements |
| 114 |
Flatten Binary Tree to Linked List |
| 958 |
Check Completeness of a Binary Tree |
| 1197 |
Minimum Knight Moves |
| 825 |
Friends Of Appropriate Ages |
| 647 |
Palindromic Substrings |
| 2601 |
Prime Subtraction Operation |
| 398 |
Random Pick Index |
| 325 |
Maximum Size Subarray Sum Equals k |
| 378 |
Kth Smallest Element in a Sorted Matrix |
| 109 |
Convert Sorted List to Binary Search Tree |
| 529 |
Minesweeper |
| 498 |
Diagonal Traverse |
| 249 |
Group Shifted Strings |
| 536 |
Construct Binary Tree from String |
| 636 |
Exclusive Time of Functions |
| 1424 |
Diagonal Traverse II |
| 173 |
Binary Search Tree Iterator |
| 1868 |
Product of Two Run-Length Encoded Arrays |
| 16 |
3Sum Closest |
| 1644 |
Lowest Common Ancestor of a Binary Tree II |
| 937 |
Reorder Data in Log Files |
| 2070 |
Most Beautiful Item for Each Query |
| 2563 |
Count the Number of Fair Pairs |
| 1574 |
Shortest Subarray to be Removed to Make Array Sorted |
| 2064 |
Minimized Maximum of Products Distributed to Any Store |
| 2516 |
Take K of Each Character From Left and Right |
| 791 |
Custom Sort String |
| 451 |
Sort Characters By Frequency |
| 2257 |
Count Unguarded Cells in the Grid |
| 1072 |
Flip Columns For Maximum Number of Equal Rows |
| 723 |
Candy Crush |
| 1861 |
Rotating the Box |
| 1161 |
Maximum Level Sum of a Binary Tree |
| 1498 |
Number of Subsequences That Satisfy the Given Sum Condition |
| 1602 |
Find Nearest Right Node in Binary Tree |
| 117 |
Populating Next Right Pointers in Each Node II |
| 323 |
Number of Connected Components in an Undirected Graph |
| 1305 |
All Elements in Two Binary Search Trees |
| 221 |
Maximal Square |
| 523 |
Continuous Subarray Sum |
| 1975 |
Maximum Matrix Sum |
| 525 |
Contiguous Array |
| 547 |
Number of Provinces |
| 974 |
Subarray Sums Divisible by K |
| 2914 |
Minimum Number of Changes to Make Binary String Beautiful |
| 107 |
Binary Tree Level Order Traversal II |
| 3243 |
Shortest Distance After Road Addition Queries I |
| 907 |
Sum of Subarray Minimums |
| 77 |
Combinations |
| 2034 |
Stock Price Fluctuation |
| 6 |
Zigzag Conversion |
| 934 |
Shortest Bridge |
| 3355 |
Zero Array Transformation I |
| 3355 |
Zero Array Transformation II |
| 151 |
Reverse Words in a String |
| 75 |
Sort Colors |
| 1438 |
Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit |
| 1493 |
Longest Subarray of 1's After Deleting One Element |
| 247 |
Strobogrammatic Number II |
| 2109 |
Adding Spaces to a String |
| 2825 |
Make String a Subsequence Using Cyclic Increments |
| 2075 |
Decode the Slanted Ciphertext |
| 1060 |
Missing Element in Sorted Array |
| 1029 |
Two City Scheduling |
| 2337 |
Move Pieces to Obtain a String |
| 1797 |
Design Authentication Manager |
| 2554 |
Maximum Number of Integers to Choose From a Range I |
| 1760 |
Minimum Limit of Balls in a Bag |
| 2054 |
Two Best Non-Overlapping Events |
| 1485 |
Clone Binary Tree With Random Pointer |
| 364 |
Nested List Weight Sum II |
| 3152 |
Special Array II |
| 29 |
Divide Two IntegersI |
| 2981 |
Find Longest Special Substring That Occurs Thrice I |
| 1443 |
Minimum Time to Collect All Apples in a Tree |
| 2779 |
Maximum Beauty of an Array After Applying Operation |
| 1146 |
Snapshot Array |
| 2762 |
Continuous Subarrays |
| 1792 |
Maximum Average Pass Ratio |
| 395 |
Longest Substring with At Least K Repeating Characters |
| 2182 |
Construct String With Repeat Limit |
| 285 |
Inorder Successor in BST |
| 769 |
Max Chunks To Make Sorted |
| 2415 |
Reverse Odd Levels of Binary Tree |
| 2471 |
Minimum Number of Operations to Sort a Binary Tree by Level |
| 515 |
Find Largest Value in Each Tree Row |
| 1014 |
Best Sightseeing Pair |
| 2559 |
Count Vowel Strings in Ranges |
| 2270 |
Number of Ways to Split Array |
| 1930 |
Unique Length-3 Palindromic Subsequences |
| 2352 |
Equal Row and Column Pairs |
| 2466 |
Count Ways To Build Good Strings |
| 2381 |
Shifting Letters II |
| 1769 |
Minimum Number of Operations to Move All Balls to Each Box |
| 3223 |
Minimum Length of String After Operations |
| 2429 |
Minimize XOR |
| 2425 |
Bitwise XOR of All Pairings |
| 2683 |
Neighboring Bitwise XOR |
| 2948 |
Make Lexicographically Smallest Array by Swapping Elements |