| ✅ |
1 |
Two Sum |
View Code |
| ✅ |
21 |
Merge Two Sorted Lists |
View Code |
| ✅ |
35 |
Search Insert Position |
View Code |
| ✅ |
58 |
Length of Last Word |
View Code |
| ✅ |
70 |
Climbing Stairs |
View Code |
| ✅ |
83 |
Remove Duplicates from Sorted List |
View Code |
| ✅ |
88 |
Merge Sorted Array |
View Code |
| ✅ |
100 |
Same Tree |
View Code |
| ✅ |
101 |
Symmetric Tree |
View Code |
| ✅ |
104 |
Maximum Depth of Binary Tree |
View Code |
| ✅ |
110 |
Balanced Binary Tree |
View Code |
| ✅ |
112 |
Path Sum |
View Code |
| ⬜ |
118 |
Pascal's Triangle |
|
| ✅ |
121 |
Best Time to Buy and Sell Stock |
View Code |
| ✅ |
125 |
Valid Palindrome |
View Code |
| ✅ |
136 |
Single Number |
View Code |
| ✅ |
141 |
Linked List Cycle |
View Code |
| ✅ |
160 |
Intersection of Two Linked Lists |
View Code |
| ✅ |
169 |
Majority Element |
View Code |
| ✅ |
171 |
Excel Sheet Column Number |
View Code |
| ✅ |
191 |
Number of 1 Bits |
View Code |
| ✅ |
202 |
Happy Number |
View Code |
| ✅ |
203 |
Remove Linked List Elements |
View Code |
| ✅ |
205 |
Isomorphic Strings |
View Code |
| ✅ |
206 |
Reverse Linked List |
View Code |
| ✅ |
217 |
Contains Duplicate |
View Code |
| ✅ |
219 |
Contains Duplicate II |
View Code |
| ✅ |
226 |
Invert Binary Tree |
View Code |
| ✅ |
231 |
Power of Two |
View Code |
| ✅ |
235 |
Lowest Common Ancestor of a BST |
View Code |
| ✅ |
237 |
Delete Node in a Linked List |
View Code |
| ✅ |
242 |
Valid Anagram |
View Code |
| ⬜ |
257 |
Binary Tree Paths |
|
| ✅ |
258 |
Add Digits |
View Code |
| ✅ |
268 |
Missing Number |
View Code |
| ✅ |
278 |
First Bad Version |
View Code |
| ✅ |
283 |
Move Zeroes |
View Code |
| ⬜ |
290 |
Word Pattern |
|
| ✅ |
292 |
Nim Game |
View Code |
| ✅ |
326 |
Power of Three |
View Code |
| ✅ |
342 |
Power of Four |
View Code |
| ✅ |
344 |
Reverse String |
View Code |
| ✅ |
345 |
Reverse Vowels of a String |
View Code |
| ⬜ |
349 |
Intersection of Two Arrays |
|
| ⬜ |
350 |
Intersection of Two Arrays II |
|
| ✅ |
367 |
Valid Perfect Square |
View Code |
| ✅ |
371 |
Sum of Two Integers |
View Code |
| ✅ |
374 |
Guess Number Higher or Lower |
View Code |
| ✅ |
383 |
Ransom Note |
View Code |
| ✅ |
387 |
First Unique Character in a String |
View Code |
| ⬜ |
389 |
Find the Difference |
|
| ✅ |
392 |
Is Subsequence |
View Code |
| ✅ |
404 |
Sum of Left Leaves |
View Code |
| ⬜ |
405 |
Convert a Number to Hexadecimal |
|
| ⬜ |
409 |
Longest Palindrome |
|
| ✅ |
412 |
Fizz Buzz |
View Code |
| ⬜ |
415 |
Add Strings |
|
| ⬜ |
434 |
Number of Segments in a String |
|
| ✅ |
441 |
Arranging Coins |
View Code |
| ✅ |
448 |
Find All Numbers Disappeared in an Array |
View Code |
| ⬜ |
461 |
Hamming Distance |
|
| ⬜ |
463 |
Island Perimeter |
|
| ✅ |
485 |
Max Consecutive Ones |
View Code |
| ⬜ |
492 |
Construct the Rectangle |
|
| ⬜ |
496 |
Next Greater Element I |
|
| ⬜ |
500 |
Keyboard Row |
|
| ✅ |
509 |
Fibonacci Number |
View Code |
| ⬜ |
520 |
Detect Capital |
|
| ⬜ |
541 |
Reverse String II |
|
| ✅ |
543 |
Diameter of Binary Tree |
View Code |
| ⬜ |
551 |
Student Attendance Record I |
|
| ✅ |
557 |
Reverse Words in a String III |
View Code |
| ⬜ |
561 |
Array Partition |
|
| ⬜ |
566 |
Reshape the Matrix |
|
| ⬜ |
572 |
Subtree of Another Tree |
|
| ⬜ |
575 |
Distribute Candies |
|
| ⬜ |
589 |
N-ary Tree Preorder Traversal |
|
| ⬜ |
605 |
Can Place Flowers |
|
| ⬜ |
617 |
Merge Two Binary Trees |
|
| ✅ |
637 |
Average of Levels in Binary Tree |
View Code |
| ✅ |
645 |
Set Mismatch |
View Code |
| ✅ |
657 |
Robot Return to Origin |
View Code |
| ⬜ |
682 |
Baseball Game |
|
| ⬜ |
693 |
Binary Number with Alternating Bits |
|
| ⬜ |
700 |
Search in a Binary Search Tree |
|
| ✅ |
704 |
Binary Search |
View Code |
| ⬜ |
709 |
To Lower Case |
|
| ⬜ |
728 |
Self Dividing Numbers |
|
| ⬜ |
771 |
Jewels and Stones |
|
| ⬜ |
796 |
Rotate String |
|
| ⬜ |
804 |
Unique Morse Code Words |
|
| ⬜ |
867 |
Transpose Matrix |
|
| ✅ |
908 |
Smallest Range I |
View Code |
| ✅ |
1108 |
Defanging an IP Address |
View Code |
| ⬜ |
1221 |
Split a String in Balanced Strings |
|
| ⬜ |
1281 |
Subtract the Product and Sum of Digits of an Integer |
|
| ⬜ |
1323 |
Maximum 69 Number |
|
| ✅ |
1342 |
Number of Steps to Reduce a Number to Zero |
View Code |
| ⬜ |
1431 |
Kids With the Greatest Number of Candies |
|
| ⬜ |
1464 |
Maximum Product of Two Elements in an Array |
|
| ✅ |
1470 |
Shuffle the Array |
View Code |
| ⬜ |
1480 |
Running Sum of 1d Array |
|
| ⬜ |
1486 |
XOR Operation in an Array |
|
| ⬜ |
1512 |
Number of Good Pairs |
|
| ⬜ |
1518 |
Water Bottles |
|
| ✅ |
1528 |
Shuffle String |
View Code |
| ⬜ |
1544 |
Make The String Great |
|
| ⬜ |
1550 |
Three Consecutive Odds |
|
| ⬜ |
1556 |
Thousand Separator |
|
| ⬜ |
1572 |
Matrix Diagonal Sum |
|
| ⬜ |
1614 |
Maximum Nesting Depth of the Parentheses |
|
| ⬜ |
1619 |
Mean of Array After Removing Some Elements |
|
| ⬜ |
1636 |
Sort Array by Increasing Frequency |
|
| ⬜ |
1637 |
Widest Vertical Area Between Two Points Containing No Points |
|
| ⬜ |
1662 |
Check If Two String Arrays are Equivalent |
|
| ⬜ |
1672 |
Richest Customer Wealth |
|
| ⬜ |
1678 |
Goal Parser Interpretation |
|
| ⬜ |
1684 |
Count the Number of Consistent Strings |
|
| ⬜ |
1688 |
Count of Matches in Tournament |
|
| ⬜ |
1704 |
Determine if String Halves Are Alike |
|
| ⬜ |
1716 |
Calculate Money in Leetcode Bank |
|
| ⬜ |
1720 |
Decode XORed Array |
|
| ⬜ |
1725 |
Number of Rectangles That Can Form The Largest Square |
|
| ⬜ |
1732 |
Find the Highest Altitude |
|
| ⬜ |
1748 |
Sum of Unique Elements |
|
| ⬜ |
1752 |
Check if Array Is Sorted and Rotated |
|
| ⬜ |
1768 |
Merge Strings Alternately |
|
| ⬜ |
1773 |
Count Items Matching a Rule |
|
| ⬜ |
1790 |
Check if One String Swap Can Make Strings Equal |
|
| ✅ |
1791 |
Find Center of Star Graph |
View Code |
| ⬜ |
1796 |
Second Largest Digit in a String |
|
| ⬜ |
1800 |
Maximum Ascending Subarray Sum |
|
| ⬜ |
1805 |
Number of Different Integers in a String |
|
| ⬜ |
1812 |
Determine Color of a Chessboard Square |
|
| ⬜ |
1816 |
Truncate Sentence |
|
| ⬜ |
1822 |
Sign of the Product of an Array |
|
| ⬜ |
1827 |
Minimum Operations to Make the Array Increasing |
|
| ⬜ |
1832 |
Check if the Sentence Is Pangram |
|
| ⬜ |
1837 |
Sum of Digits in Base K |
|
| ⬜ |
1844 |
Replace All Digits with Characters |
|
| ⬜ |
1848 |
Minimum Distance to the Target Element |
|
| ⬜ |
1854 |
Maximum Population Year |
|
| ⬜ |
1859 |
Sorting the Sentence |
|
| ⬜ |
1863 |
Sum of All Subset XOR Totals |
|
| ⬜ |
1869 |
Longer Contiguous Segments of Ones than Zeros |
|
| ⬜ |
1876 |
Substrings of Size Three with Distinct Characters |
|
| ⬜ |
1880 |
Check if Word Equals Summation of Two Words |
|
| ⬜ |
1886 |
Determine Whether Matrix Can Be Obtained By Rotation |
|
| ⬜ |
1893 |
Check if All the Integers in a Range Are Covered |
|
| ⬜ |
1897 |
Redistribute Characters to Make All Strings Equal |
|
| ⬜ |
1903 |
Largest Odd Number in String |
|
| ⬜ |
1909 |
Remove One Element to Make the Array Strictly Increasing |
|
| ⬜ |
1913 |
Maximum Product Difference Between Two Pairs |
|
| ⬜ |
1920 |
Build Array from Permutation |
|
| ⬜ |
1925 |
Count Square Sum Triples |
|
| ✅ |
1929 |
Concatenation of Array |
View Code |
| ⬜ |
1941 |
Check if All Characters Have Equal Number of Occurrences |
|
| ⬜ |
1945 |
Sum of Digits of String After Convert |
|
| ⬜ |
1952 |
Three Divisors |
|
| ⬜ |
1957 |
Delete Characters to Make Fancy String |
|
| ⬜ |
1961 |
Check if String Is a Prefix of Array |
|
| ⬜ |
1974 |
Minimum Time to Type Word Using Special Typewriter |
|
| ⬜ |
1979 |
Find Greatest Common Divisor of Array |
|
| ⬜ |
1984 |
Minimum Difference Between Highest and Lowest of K Scores |
|
| ⬜ |
1991 |
Find the Middle Index in Array |
|
| ⬜ |
1995 |
Count Special Quadruplets |
|
| ⬜ |
2000 |
Reverse Prefix of Word |
|
| ⬜ |
2006 |
Count Number of Pairs With Absolute Difference K |
|
| ⬜ |
2011 |
Final Value of Variable After Performing Operations |
|
| ⬜ |
2022 |
Convert 1D Array Into 2D Array |
|
| ⬜ |
2027 |
Minimum Moves to Convert String |
|
| ⬜ |
2032 |
Two Out of Three |
|
| ⬜ |
2037 |
Minimum Number of Moves to Seat Everyone |
|
| ⬜ |
2042 |
Check if Numbers Are Ascending in a Sentence |
|
| ⬜ |
2053 |
Kth Distinct String in an Array |
|
| ⬜ |
2057 |
Smallest Index With Equal Value |
|
| ⬜ |
2062 |
Count Vowel Substrings of a String |
|
| ⬜ |
2068 |
Check Whether Two Strings are Almost Equivalent |
|
| ⬜ |
2073 |
Time Needed to Buy Tickets |
|
| ⬜ |
2078 |
Two Furthest Houses With Different Colors |
|
| ⬜ |
2085 |
Count Common Words With One Occurrence |
|
| ⬜ |
2089 |
Find Target Indices After Sorting Array |
|
| ⬜ |
2094 |
Finding 3-Digit Even Numbers |
|
| ✅ |
2099 |
Find Subsequence of Length K With the Largest Sum |
View Code |
| ⬜ |
2103 |
Rings and Rods |
|
| ⬜ |
2108 |
First Palindrome in an Array |
|
| ⬜ |
2114 |
Maximum Number of Words Found in Sentences |
|
| ⬜ |
2119 |
A Number After a Double Reversal |
|
| ⬜ |
2124 |
Check if All A's Appears Before All B's |
|
| ⬜ |
2129 |
Capitalize the Title |
|
| ⬜ |
2133 |
Check if Every Row and Column Contains All Numbers |
|
| ⬜ |
2148 |
Count Elements With Strictly Smaller and Greater Elements |
|
| ⬜ |
2154 |
Keep Multiplying Found Values by Two |
|
| ⬜ |
2160 |
Minimum Sum of Four Digit Number |
|
| ⬜ |
2164 |
Sort Even and Odd Indices Independently |
|
| ⬜ |
2169 |
Count Operations to Obtain Zero |
|
| ⬜ |
2176 |
Count Equal and Divisible Pairs in an Array |
|
| ⬜ |
2180 |
Count Integers With Even Digit Sum |
|
| ⬜ |
2185 |
Counting Words With a Given Prefix |
|
| ⬜ |
2190 |
Most Frequent Number Following Key In an Array |
|
| ⬜ |
2194 |
Cells in a Range on an Excel Sheet |
|
| ⬜ |
2200 |
Find All K-Distant Indices in an Array |
|
| ⬜ |
2206 |
Divide Array Into Equal Pairs |
|
| ⬜ |
2210 |
Count Hills and Valleys in an Array |
|
| ⬜ |
2215 |
Find the Difference of Two Arrays |
|
| ⬜ |
2220 |
Minimum Bit Flips to Convert Number |
|
| ⬜ |
2231 |
Largest Number After Digit Swaps by Parity |
|
| ⬜ |
2235 |
Add Two Integers |
|
| ⬜ |
2236 |
Root Equals Sum of Children |
|
| ⬜ |
2239 |
Find Closest Number to Zero |
|
| ⬜ |
2243 |
Calculate Digit Sum of a String |
|
| ⬜ |
2248 |
Intersection of Multiple Arrays |
|
| ⬜ |
2255 |
Count Prefixes of a Given String |
|
| ⬜ |
2259 |
Remove Digit From Number to Maximize Result |
|
| ⬜ |
2264 |
Largest 3-Same-Digit Number in String |
|
| ⬜ |
2269 |
Find the K-Beauty of a Number |
|
| ⬜ |
2278 |
Percentage of Letter in String |
|
| ⬜ |
2283 |
Check if Number Has Equal Digit Count and Digit Value |
|
| ⬜ |
2293 |
Min Max Game |
|
| ⬜ |
2299 |
Strong Password Checker II |
|
| ⬜ |
2303 |
Calculate Amount Paid in Taxes |
|
| ⬜ |
2309 |
Greatest English Letter in Upper and Lower Case |
|
| ⬜ |
2315 |
Count Asterisks |
|
| ⬜ |
2319 |
Check if Matrix Is X-Matrix |
|
| ⬜ |
2325 |
Decode the Message |
|
| ⬜ |
2331 |
Evaluate Boolean Binary Tree |
|
| ⬜ |
2335 |
Minimum Amount of Time to Fill Cups |
|
| ⬜ |
2341 |
Maximum Number of Pairs in Array |
|
| ⬜ |
2347 |
Best Poker Hand |
|
| ⬜ |
2351 |
First Letter to Appear Twice |
|
| ⬜ |
2357 |
Make Array Zero by Subtracting Equal Amounts |
|
| ⬜ |
2363 |
Merge Similar Items |
|
| ⬜ |
2367 |
Number of Arithmetic Triplets |
|
| ⬜ |
2373 |
Largest Local Values in a Matrix |
|
| ⬜ |
2383 |
Minimum Hours of Training to Win a Competition |
|
| ⬜ |
2389 |
Longest Subsequence With Limited Sum |
|
| ⬜ |
2395 |
Find Subarrays With Equal Sum |
|
| ⬜ |
2399 |
Check Distances Between Same Letters |
|
| ⬜ |
2404 |
Most Frequent Even Element |
|
| ⬜ |
2413 |
Smallest Even Multiple |
|
| ⬜ |
2418 |
Sort the People |
|
| ⬜ |
2427 |
Number of Common Factors |
|
| ⬜ |
2441 |
Largest Positive Integer That Exists With Its Negative |
|
| ⬜ |
2446 |
Determine if Two Events Have Conflict |
|
| ⬜ |
2460 |
Apply Operations to an Array |
|
| ⬜ |
2469 |
Convert the Temperature |
|
| ⬜ |
2475 |
Number of Unequal Triplets in Array |
|
| ⬜ |
2481 |
Minimum Cuts to Divide a Circle |
|
| ✅ |
2485 |
Find the Pivot Integer |
View Code |
| ⬜ |
2496 |
Maximum Value of a String in an Array |
|
| ⬜ |
2500 |
Delete Greatest Value in Each Row |
|
| ⬜ |
2515 |
Shortest Distance to Target String in a Circular Array |
|
| ⬜ |
2520 |
Count the Digits That Divide a Number |
|
| ⬜ |
2525 |
Categorize Box According to Criteria |
|
| ⬜ |
2529 |
Maximum Count of Positive Integer and Negative Integer |
|
| ⬜ |
2535 |
Difference Between Element Sum and Digit Sum |
|
| ⬜ |
2540 |
Minimum Common Value |
|
| ⬜ |
2544 |
Alternating Digit Sum |
|
| ⬜ |
2549 |
Count Distinct Numbers on Board |
|
| ⬜ |
2553 |
Separate the Digits in an Array |
|
| ⬜ |
2562 |
Find the Array Concatenation Value |
|
| ⬜ |
2566 |
Maximum Difference by Remapping a Digit |
|
| ⬜ |
2574 |
Left and Right Sum Differences |
|
| ⬜ |
2582 |
Pass the Pillow |
|
| ⬜ |
2600 |
K Items With the Maximum Sum |
|
| ⬜ |
2605 |
Form Smallest Number From Two Digit Arrays |
|
| ⬜ |
2614 |
Prime In Diagonal |
|
| ⬜ |
2639 |
Find the Width of Columns of a Grid |
|
| ⬜ |
2643 |
Row With Maximum Ones |
|
| ⬜ |
2651 |
Calculate Delayed Arrival Time |
|
| ⬜ |
2652 |
Sum Multiples |
|
| ⬜ |
2656 |
Maximum Sum With Exactly K Elements |
|
| ⬜ |
2660 |
Determine the Winner of a Bowling Game |
|
| ⬜ |
2670 |
Find the Distinct Difference Array |
|
| ⬜ |
2678 |
Number of Senior Citizens |
|
| ⬜ |
2682 |
Find the Losers of the Circular Game |
|
| ⬜ |
2696 |
Minimum String Length After Removing Substrings |
|
| ⬜ |
2697 |
Lexicographically Smallest Palindrome |
|
| ⬜ |
2706 |
Buy Two Chocolates |
|
| ⬜ |
2710 |
Remove Trailing Zeros From a String |
|
| ⬜ |
2716 |
Minimize String Length |
|
| ⬜ |
2729 |
Check if Number is Fascinating |
|
| ⬜ |
2733 |
Neither Minimum nor Maximum |
|
| ⬜ |
2739 |
Total Distance Traveled |
|
| ⬜ |
2748 |
Number of Beautiful Pairs |
|
| ⬜ |
2765 |
Longest Alternating Subarray |
|
| ⬜ |
2769 |
Find the Maximum Achievable Number |
|
| ⬜ |
2778 |
Sum of Squares of Special Elements |
|
| ✅ |
2784 |
Check if Array is Good |
View Code |
| ⬜ |
2788 |
Split Strings by Separator |
|
| ⬜ |
2798 |
Number of Employees Who Met the Target |
|
| ⬜ |
2806 |
Account Balance After Rounded Purchase |
|
| ⬜ |
2810 |
Faulty Keyboard |
|
| ⬜ |
2824 |
Count Pairs Whose Sum is Less than Target |
|
| ⬜ |
2828 |
Check if a String Is an Acronym of Words |
|
| ⬜ |
2839 |
Check if Strings Can be Made Equal With Operations I |
|
| ⬜ |
2848 |
Points That Intersect With Cars |
|
| ⬜ |
2859 |
Sum of Values at Indices With K Set Bits |
|
| ⬜ |
2864 |
Maximum Odd Binary Number |
|
| ⬜ |
2894 |
Divisible and Non-divisible Sums Difference |
|
| ⬜ |
2903 |
Find Indices With Index and Value Difference I |
|
| ⬜ |
2908 |
Minimum Sum of Mountain Triplets I |
|
| ⬜ |
2923 |
Find Champion I |
|
| ⬜ |
2928 |
Distribute Candies Among Children I |
|
| ⬜ |
2942 |
Find Words Containing Character |
|
| ✅ |
2951 |
Find the Peaks |
View Code |
| ⬜ |
2956 |
Find Common Elements Between Two Arrays |
|
| ⬜ |
2960 |
Count Tested Devices After Test Operations |
|
| ⬜ |
2965 |
Missing and Repeated Values |
|
| ⬜ |
2970 |
Count the Number of Incremovable Subarrays I |
|
| ✅ |
2974 |
Minimum Number Game |
View Code |
| ✅ |
2980 |
Check if Bitwise OR Has Trailing Zeros |
View Code |
| ⬜ |
2996 |
Smallest Missing Integer Greater Than Sequential Prefix Sum |
|
| ⬜ |
3000 |
Maximum Area of Longest Diagonal Rectangle |
|
| ⬜ |
3005 |
Maximum Frequency Elements |
|
| ⬜ |
3010 |
Divide an Array Into Subarrays With Minimum Cost I |
|
| ⬜ |
3014 |
Minimum Number of Pushes to Type Word I |
|
| ⬜ |
3019 |
Number of Changing Keys |
|
| ⬜ |
3024 |
Type of Triangle |
|
| ✅ |
3028 |
Ant on the Boundary |
View Code |
| ✅ |
3033 |
Modify the Matrix |
View Code |
| ✅ |
3038 |
Maximum Number of Operations With the Same Score I |
View Code |
| ✅ |
3042 |
Count Prefix and Suffix Pairs I |
View Code |
| ⬜ |
3046 |
Split the Array |
|
| ⬜ |
3065 |
Minimum Operations to Exceed Threshold Value I |
|
| ⬜ |
3069 |
Distribute Elements Into Two Arrays I |
|
| ⬜ |
3079 |
Find the Sum of Encrypted Integers |
|
| ✅ |
3099 |
Harshad Number |
View Code |
| ✅ |
3110 |
Score of a String |
View Code |
| ⬜ |
3127 |
Make a Square with the Same Color |
|
| ⬜ |
3131 |
Find the Integer Added to Array I |
|
| ⬜ |
3146 |
Permutation Difference between Two Strings |
|
| ✅ |
3151 |
Special Array I |
View Code |
| ⬜ |
3158 |
Find the XOR of Numbers Which Appear Twice |
|
| ⬜ |
3162 |
Find the Number of Good Pairs I |
|
| ⬜ |
3168 |
Minimum Number of Chairs in a Waiting Room |
|
| ⬜ |
3184 |
Count Pairs That Form a Complete Day I |
|
| ⬜ |
3190 |
Find Minimum Operations to Make All Elements Divisible by Three |
|
| ⬜ |
3222 |
Find the Winning Player in Coin Game |
|
| ⬜ |
3270 |
Find the Key of the Numbers |
|
| ✅ |
3280 |
Convert Date to Binary |
View Code |
| ✅ |
3285 |
Find Indices of Stable Mountains |
View Code |
| ✅ |
3289 |
The Two Sneaky Numbers of Digitville |
View Code |