| 4 |
Median of Two Sorted Arrays |
Hard |
cpp |
|
| 20 |
Valid Parentheses |
Easy |
cpp |
|
| 26 |
Remove Duplicates from Sorted Array |
Easy |
cpp |
|
| 29 |
Divide Two Integers |
Medium |
cpp |
|
| 33 |
Search in Rotated Sorted Array |
Medium |
|
py |
| 34 |
Find First and Last Position of Element in Sorted Array |
Medium |
cpp |
|
| 49 |
Group Anagrams |
Medium |
|
py |
| 51 |
N-Queens |
Hard |
cpp |
|
| 53 |
Maximum Subarray |
Medium |
cpp |
py |
| 55 |
Jump Game |
Medium |
|
py |
| 64 |
Minimum Path Sum |
Medium |
|
py |
| 69 |
Sqrt(x) |
Easy |
cpp |
|
| 75 |
Sort Colors |
Medium |
cpp |
|
| 78 |
Subsets |
Medium |
cpp |
|
| 79 |
Word Search |
Medium |
cpp |
|
| 122 |
Best Time to Buy and Sell Stock II |
Medium |
|
py |
| 129 |
Sum Root to Leaf Numbers |
Medium |
💽: O(H) 💽: O(1) |
|
| 136 |
Single Number |
Easy |
|
py |
| 146 |
LRU Cache |
Medium |
|
py (not O(1)) |
| 153 |
Find Minimum in Rotated Sorted Array |
Medium |
cpp |
|
| 155 |
Min Stack |
Medium |
|
py |
| 159 |
Longest Substring with At Most Two Distinct Characters |
Medium |
cpp |
|
| 162 |
Find Peak Element |
Medium |
cpp |
|
| 198 |
House Robber |
Medium |
cpp |
|
| 200 |
Number of Islands |
Medium |
cpp |
py |
| 201 |
Bitwise AND of Numbers Range |
Medium |
|
py |
| 202 |
Happy Number |
Easy |
|
py |
| 204 |
Count Primes |
Medium |
cpp |
|
| 207 |
Course Schedule |
Medium |
cpp |
|
| 208 |
Implement Trie (Prefix Tree) |
Medium |
cpp |
|
| 210 |
Course Schedule II |
Medium |
cpp |
|
| 238 |
Product of Array Except Self |
Medium |
|
py |
| 278 |
First Bad Version |
Easy |
cpp |
|
| 283 |
Move Zeroes |
Easy |
cpp |
py |
| 300 |
Longest Increasing Subsequence |
Medium |
cpp |
|
| 304 |
Range Sum Query 2D - Immutable |
Medium |
cpp |
|
| 310 |
Minimum Height Trees |
Medium |
cpp |
|
| 330 |
Patching Array |
Hard |
cpp |
|
| 340 |
Longest Substring with At Most K Distinct Characters |
Medium |
cpp |
|
| 344 |
Reverse String |
Easy |
cpp |
|
| 374 |
Guess Number Higher or Lower |
Easy |
cpp |
|
| 399 |
Evaluate Division |
Medium |
cpp |
|
| 402 |
Remove K Digits |
Medium |
cpp |
|
| 404 |
Sum of Left Leaves |
Easy |
💽: O(N) 💽: O(1) |
|
| 409 |
Longest Palindrome |
Easy |
cpp |
|
| 463 |
Island Perimeter |
Easy |
cpp |
|
| 476 |
Number Complement |
Easy |
|
py |
| 502 |
IPO |
Hard |
cpp |
|
| 514 |
Freedom Trail |
Hard |
cpp |
|
| 523 |
Continuous Subarray Sum |
Medium |
cpp |
|
| 543 |
Diameter of Binary Tree |
Easy |
|
py |
| 547 |
Number of Provinces |
Medium |
cpp |
|
| 560 |
Subarray Sum Equals K |
Medium |
|
py |
| 623 |
Add One Row to Tree |
Medium |
cpp |
|
| 648 |
Replace Words |
Medium |
cpp |
|
| 658 |
Find K Closest Elements |
Medium |
cpp |
|
| 678 |
Valid Parenthesis String |
Medium |
cpp |
|
| 704 |
Binary Search |
Easy |
cpp |
|
| 739 |
Daily Temperatures |
Medium |
cpp |
|
| 743 |
Network Delay Time |
Medium |
cpp |
|
| 752 |
Open the Lock |
Medium |
cpp |
|
| 771 |
Jewels and Stones |
Easy |
|
py |
| 844 |
Backspace String Compare |
Easy |
|
py |
| 846 |
Hand of Straights |
Medium |
cpp |
|
| 876 |
Middle of the Linked List |
Easy |
|
py |
| 945 |
Minimum Increment to Make Array Unique |
Medium |
cpp |
|
| 974 |
Subarray Sums Divisible by K |
Medium |
cpp |
|
| 988 |
Smallest String Starting From Leaf |
Medium |
💽: O(N2) 💽: O(N) |
|
| 995 |
Minimum Number of K Consecutive Bit Flips |
Hard |
cpp |
|
| 1002 |
Find Common Characters |
Easy |
cpp |
|
| 1008 |
Construct Binary Search Tree from Preorder Traversal |
Medium |
|
py |
| 1046 |
Last Stone Weight |
Easy |
|
py |
| 1051 |
Height Checker |
Easy |
cpp |
|
| 1112 |
Relative Sort Array |
Easy |
cpp |
|
| 1137 |
N-th Tribonacci Number |
Easy |
cpp |
|
| 1143 |
Longest Common Subsequence |
Medium |
|
py |
| 1197 |
Minimum Knight Moves |
Medium |
O(N2) O(1) |
|
| 1202 |
Smallest String With Swaps |
Medium |
cpp |
|
| 1203 |
Sort Items by Groups Respecting Dependencies |
Hard |
cpp |
|
| 1249 |
Minimum Remove to Make Valid Parentheses |
Medium |
cpp |
|
| 1289 |
Minimum Falling Path Sum II |
Hard |
cpp |
|
| 1296 |
Divide Array in Sets of K Consecutive Numbers |
Medium |
cpp |
|
| 1351 |
Count Negative Numbers in a Sorted Matrix |
Easy |
|
py |
| 1356 |
Sort Integers by The Number of 1 Bits |
Easy |
|
py |
| 1357 |
Apply Discount Every n Orders |
Medium |
|
py |
| 1360 |
Number of Days Between Two Dates |
Easy |
|
py |
| 1365 |
How Many Numbers Are Smaller Than the Current Number |
Easy |
|
py |
| 1366 |
Rank Teams by Votes |
Medium |
|
py |
| 1374 |
Generate a String With Characters That Have Odd Counts |
Easy |
|
py |
| 1394 |
Find Lucky Integer in an Array |
Easy |
|
py |
| 1395 |
Count Number of Teams |
Medium |
|
py |
| 1396 |
Design Underground System |
Medium |
|
py |
| 1399 |
Count Largest Group |
Easy |
|
py |
| 1400 |
Construct K Palindrome Strings |
Medium |
|
py |
| 1401 |
Circle and Rectangle Overlapping |
Medium |
|
py |
| 1402 |
Reducing Dishes |
Hard |
|
py |
| 1403 |
Minimum Subsequence in Non-Increasing Order |
Easy |
|
py |
| 1404 |
Number of Steps to Reduce a Number in Binary Representation to One |
Medium |
|
py |
| 1408 |
String Matching in an Array |
Easy |
|
py |
| 1409 |
Queries on a Permutation With Key |
Medium |
|
py |
| 1410 |
HTML Entity Parser |
Medium |
|
py |
| 1413 |
Minimum Value to Get Positive Step by Step Sum |
Easy |
|
py |
| 1414 |
Find the Minimum Number of Fibonacci Numbers Whose Sum Is K |
Medium |
|
py |
| 1415 |
The k-th Lexicographical String of All Happy Strings of Length n |
Medium |
|
py |
| 1416 |
Restore The Array |
Hard |
|
py |
| 1417 |
Reformat The String |
Easy |
|
py |
| 1418 |
Display Table of Food Orders in a Restaurant |
Medium |
|
py |
| 1419 |
Minimum Number of Frogs Croaking |
Medium |
|
py |
| 1422 |
Maximum Score After Splitting a String |
Easy |
|
py |
| 1423 |
Maximum Points You Can Obtain from Cards |
Medium |
|
py |
| 1424 |
Diagonal TraverseII |
Medium |
|
py |
| 1425 |
Constrained Subset Sum |
Hard |
|
py |
| 1426 |
Counting Elements |
Easy |
|
py |
| 1427 |
Perform String Shifts |
Easy |
|
py |
| 1428 |
Leftmost Column with at Least a One |
Medium |
|
py |
| 1431 |
Kids With the Greatest Number of Candies |
Easy |
|
py |
| 1432 |
Max Difference You Can Get From Changing an Integer |
Medium |
|
py |
| 1433 |
Check If a String Can Break Another String |
Medium |
|
py |
| 1436 |
Destination City |
Easy |
|
py |
| 1437 |
Check If All 1's Are at Least Length K Places Away |
Easy |
|
py |
| 1461 |
Check If a String Contains All Binary Codes of Size K |
Medium |
cpp |
|
| 1480 |
Running Sum of 1d Array |
Easy |
cpp |
|
| 1544 |
Make The String Great |
Easy |
cpp |
|
| 1552 |
Magnetic Force Between Two Balls |
Medium |
cpp |
|
| 1553 |
Find the Winner of an Array Game |
Medium |
cpp |
|
| 1564 |
Put Boxes Into the Warehouse I |
Medium |
cpp |
|
| 1580 |
Put Boxes Into the Warehouse II |
Medium |
cpp |
|
| 1700 |
Number of Students Unable to Eat Lunch |
Easy |
cpp |
|
| 1857 |
Largest Color Value in a Directed Graph |
Hard |
cpp |
|
| 1915 |
Number of Wonderful Substrings |
Medium |
cpp |
|
| 1940 |
Longest Common Subsequence Between Sorted Arrays |
Medium |
cpp |
|
| 1971 |
Find if Path Exists in Graph |
Easy |
cpp |
|
| 1992 |
Find All Groups of Farmland |
Medium |
cpp |
|
| 2037 |
Minimum Number of Moves to Seat Everyone |
Easy |
cpp |
|
| 2073 |
Time Needed to Buy Tickets |
Easy |
cpp |
|
| 2083 |
Substrings That Begin and End With the Same Letter |
Medium |
cpp |
|
| 2192 |
All Ancestors of a Node in a Directed Acyclic Graph |
Medium |
⌛: O(N2+N*E) 💽: O(N+E) ⌛💽: O(N2+E) |
|
| 2236 |
Add Two Integers |
Easy |
cpp |
|
| 2293 |
Min Max Game |
Easy |
cpp |
|
| 2294 |
Partition Array Such That Maximum Difference Is K |
Medium |
cpp |
|
| 2295 |
Replace Elements in an Array |
Medium |
cpp |
|
| 2296 |
Design a Text Editor |
Hard |
cpp |
|
| 2299 |
Strong Password Checker II |
Easy |
cpp |
|
| 2302 |
Count Subarrays With Score Less Than K |
Hard |
cpp |
|
| 2303 |
Calculate Amount Paid in Taxes |
Easy |
cpp |
|
| 2304 |
Minimum Path Cost in a Grid |
Medium |
cpp |
|
| 2309 |
Greatest English Letter in Upper and Lower Case |
Easy |
cpp |
|
| 2310 |
Sum of Numbers With Units Digit K |
Medium |
cpp |
|
| 2315 |
Count Asterisks |
Easy |
cpp |
|
| 2316 |
Count Unreachable Pairs of Nodes in an Undirected Graph |
Medium |
cpp |
|
| 2317 |
Maximum XOR After Operations |
Medium |
cpp |
|
| 2335 |
Minimum Amount of Time to Fill Cups |
Easy |
cpp |
|
| 2336 |
Smallest Number in Infinite Set |
Medium |
cpp |
|
| 2347 |
Best Poker Hand |
Easy |
cpp |
|
| 2348 |
Number of Zero-Filled Subarrays |
Medium |
cpp |
|
| 2349 |
Design a Number Container System |
Medium |
cpp |
|
| 2363 |
Merge Similar Items |
Easy |
cpp |
|
| 2364 |
Count Number of Bad Pairs |
Medium |
cpp |
|
| 2365 |
Task Scheduler II |
Medium |
cpp |
|
| 2366 |
Minimum Replacements to Sort the Array |
Hard |
cpp |
|
| 2367 |
Number of Arithmetic Triplets |
Easy |
cpp |
|
| 2379 |
Minimum Recolors to Get K Consecutive Black Blocks |
Easy |
cpp |
|
| 2381 |
Shifting Letters II |
Medium |
cpp |
|
| 2389 |
Longest Subsequence With Limited Sum |
Easy |
cpp |
|
| 2390 |
Removing Stars From a String |
Medium |
cpp |
|
| 2391 |
Minimum Amount of Time to Collect Garbage |
Medium |
cpp |
|
| 2395 |
Find Subarrays With Equal Sum |
Easy |
cpp |
|
| 2396 |
Strictly Palindromic Number |
Medium |
cpp |
|
| 2399 |
Check Distances Between Same Letters |
Easy |
cpp |
|
| 2404 |
Most Frequent Even Element |
Easy |
cpp |
|
| 2405 |
Optimal Partition of String |
Medium |
cpp |
|
| 2413 |
Smallest Even Multiple |
Easy |
cpp |
|
| 2414 |
Length of the Longest Alphabetical Continuous Substring |
Medium |
cpp |
|
| 2415 |
Reverse Odd Levels of Binary Tree |
Medium |
cpp |
|
| 2427 |
Number of Common Factors |
Easy |
cpp |
|
| 2429 |
Minimize XOR |
Medium |
cpp |
|
| 2432 |
The Employee That Worked on the Longest Task |
Easy |
cpp |
|
| 2433 |
Find The Original Array of Prefix Xor |
Medium |
cpp |
|
| 2437 |
Number of Valid Clock Times |
Easy |
cpp |
|
| 2438 |
Range Product Queries of Powers |
Medium |
cpp |
|
| 2455 |
Average Value of Even Numbers That Are Divisible by Three |
Easy |
cpp |
|
| 2456 |
Most Popular Video Creator |
Medium |
cpp |
|
| 2457 |
Minimum Addition to Make Integer Beautiful |
Medium |
cpp |
|
| 2460 |
Apply Operations to an Array |
Easy |
cpp |
|
| 2461 |
Maximum Sum of Distinct Subarrays With Length K |
Medium |
cpp |
|
| 2462 |
Total Cost to Hire K Workers |
Medium |
cpp |
|
| 2469 |
Convert the Temperature |
Easy |
cpp |
|
| 2470 |
Number of Subarrays With LCM Equal to K |
Medium |
cpp |
|
| 2471 |
Minimum Number of Operations to Sort a Binary Tree by Level |
Medium |
cpp |
|
| 2485 |
Find the Pivot Integer |
Easy |
cpp |
|
| 2486 |
Append Characters to String to Make Subsequence |
Medium |
cpp |
|
| 2487 |
Remove Nodes From Linked List |
Medium |
cpp |
|
| 2997 |
Minimum Number of Operations to Make Array XOR Equal to K |
Medium |
cpp |
|
| 3105 |
Longest Strictly Increasing or Strictly Decreasing Subarray |
Easy |
cpp |
|
| 3106 |
Lexicographically Smallest String After Operations With Constraint |
Medium |
cpp |
|
| 3107 |
Minimum Operations to Make Median of Array Equal to K |
Medium |
cpp |
|
| 3108 |
Minimum Cost Walk in Weighted Graph |
Hard |
cpp |
|
| 3110 |
Score of a String |
Easy |
cpp |
|
| 3114 |
Latest Time You Can Obtain After Replacing Characters |
Easy |
cpp |
|
| 3115 |
Maximum Prime Difference |
Medium |
cpp |
|
| 3116 |
Kth Smallest Amount With Single Denomination Combination |
Hard |
cpp |
|
| 3120 |
Count the Number of Special Characters I |
Easy |
cpp |
|
| 3121 |
Count the Number of Special Characters II |
Medium |
cpp |
|
| 3122 |
Minimum Number of Operations to Satisfy Conditions |
Medium |
cpp |
|
| 3123 |
Find Edges in Shortest Paths |
Hard |
cpp |
|
| 3131 |
Find the Integer Added to Array I |
Easy |
cpp |
|
| 3132 |
Find the Integer Added to Array II |
Medium |
cpp |
|
| 3133 |
Minimum Array End |
Medium |
cpp |
|
| 3174 |
Clear Digits |
Easy |
cpp |
|
| 3175 |
Find The First Player to win K Games in a Row |
Medium |
cpp |
|