# |
Title |
Difficulty |
Solution Here |
1 |
Two Sum |
Easy |
Solution Here |
4 |
Median of Two Sorted Arrays |
Hard |
Solution Here |
11 |
Container With Most Water |
Medium |
Solution Here |
15 |
3Sum |
Medium |
Solution Here |
16 |
3Sum Closest |
Medium |
Solution Here |
18 |
4Sum |
Medium |
Solution Here |
26 |
Remove Duplicates from Sorted Array |
Easy |
Solution Here |
27 |
Remove Element |
Easy |
Solution Here |
31 |
Next Permutation |
Medium |
Solution Here |
33 |
Search in Rotated Sorted Array |
Medium |
Solution Here |
34 |
Find First and Last Position of Element in Sorted Array |
Medium |
Solution Here |
35 |
Search Insert Position |
Easy |
Solution Here |
36 |
Valid Sudoku |
Medium |
Solution Here |
37 |
Sudoku Solver |
Hard |
Solution Here |
39 |
Combination Sum |
Medium |
Solution Here |
40 |
Combination Sum II |
Medium |
Solution Here |
41 |
First Missing Positive |
Hard |
Solution Here |
42 |
Trapping Rain Water |
Hard |
Solution Here |
45 |
Jump Game II |
Medium |
Solution Here |
46 |
Permutations |
Medium |
Solution Here |
47 |
Permutations II |
Medium |
Solution Here |
48 |
Rotate Image |
Medium |
Solution Here |
49 |
Group Anagrams |
Medium |
Solution Here |
51 |
N-Queens |
Hard |
Solution Here |
53 |
Maximum Subarray |
Medium |
Solution Here |
54 |
Spiral Matrix |
Medium |
Solution Here |
55 |
Jump Game |
Medium |
Solution Here |
56 |
Merge Intervals |
Medium |
Solution Here |
57 |
Insert Interval |
Medium |
Solution Here |
59 |
Spiral Matrix II |
Medium |
Solution Here |
63 |
Unique Paths II |
Medium |
Solution Here |
64 |
Minimum Path Sum |
Medium |
Solution Here |
66 |
Plus One |
Easy |
Solution Here |
68 |
Text Justification |
Hard |
Solution Here |
73 |
Set Matrix Zeroes |
Medium |
Solution Here |
74 |
Search a 2D Matrix |
Medium |
Solution Here |
75 |
Sort Colors |
Medium |
Solution Here |
78 |
Subsets |
Medium |
Solution Here |
79 |
Word Search |
Medium |
Solution Here |
80 |
Remove Duplicates from Sorted Array II |
Medium |
Solution Here |
81 |
Search in Rotated Sorted Array II |
Medium |
Solution Here |
84 |
Largest Rectangle in Histogram |
Hard |
Solution Here |
85 |
Maximal Rectangle |
Hard |
Solution Here |
88 |
Merge Sorted Array |
Easy |
Solution Here |
90 |
Subsets II |
Medium |
Solution Here |
105 |
Construct Binary Tree from Preorder and Inorder Traversal |
Medium |
Solution Here |
106 |
Construct Binary Tree from Inorder and Postorder Traversal |
Medium |
Solution Here |
108 |
Convert Sorted Array to Binary Search Tree |
Easy |
Solution Here |
118 |
Pascal’s Triangle |
Easy |
Solution Here |
119 |
Pascal’s Triangle II |
Easy |
Solution Here |
120 |
Triangle |
Medium |
Solution Here |
121 |
Best Time to Buy and Sell Stock |
Easy |
Solution Here |
122 |
Best Time to Buy and Sell Stock II |
Medium |
Solution Here |
123 |
Best Time to Buy and Sell Stock III |
Hard |
Solution Here |
128 |
Longest Consecutive Sequence |
Medium |
Solution Here |
130 |
Surrounded Regions |
Medium |
Solution Here |
134 |
Gas Station |
Medium |
Solution Here |
135 |
Candy |
Hard |
Solution Here |
136 |
Single Number |
Easy |
Solution Here |
137 |
Single Number II |
Medium |
Solution Here |
149 |
Max Points on a Line |
Hard |
Solution Here |
150 |
Evaluate Reverse Polish Notation |
Medium |
Solution Here |
152 |
Maximum Product Subarray |
Medium |
Solution Here |
153 |
Find Minimum in Rotated Sorted Array |
Medium |
Solution Here |
154 |
Find Minimum in Rotated Sorted Array II |
Hard |
Solution Here |
162 |
Find Peak Element |
Medium |
Solution Here |
163 |
Missing Ranges |
Easy |
Solution Here |
164 |
Maximum Gap |
Hard |
Solution Here |
167 |
Two Sum II – Input Array Is Sorted |
Medium |
Solution Here |
169 |
Majority Element |
Easy |
Solution Here |
170 |
Two Sum III – Data structure design |
Easy |
Solution Here |
174 |
Dungeon Game |
Hard |
Solution Here |
188 |
Best Time to Buy and Sell Stock IV |
Hard |
Solution Here |
189 |
Rotate Array |
Medium |
Solution Here |
198 |
House Robber |
Medium |
Solution Here |
200 |
Number of Islands |
Medium |
Solution Here |
204 |
Count Primes |
Medium |
Solution Here |
209 |
Minimum Size Subarray Sum |
Medium |
Solution Here |
212 |
Word Search II |
Hard |
Solution Here |
213 |
House Robber II |
Medium |
Solution Here |
215 |
Kth Largest Element in an Array |
Medium |
Solution Here |
216 |
Combination Sum III |
Medium |
Solution Here |
217 |
Contains Duplicate |
Easy |
Solution Here |
218 |
The Skyline Problem |
Hard |
Solution Here |
219 |
Contains Duplicate II |
Easy |
Solution Here |
220 |
Contains Duplicate III |
Medium |
Solution Here |
221 |
Maximal Square |
Medium |
Solution Here |
228 |
Summary Ranges |
Easy |
Solution Here |
229 |
Majority Element II |
Medium |
Solution Here |
238 |
Product of Array Except Self |
Medium |
Solution Here |
239 |
Sliding Window Maximum |
Hard |
Solution Here |
240 |
Search a 2D Matrix II |
Medium |
Solution Here |
243 |
Shortest Word Distance |
Easy |
Solution Here |
244 |
Shortest Word Distance II |
Medium |
Solution Here |
245 |
Shortest Word Distance III |
Medium |
Solution Here |
247 |
Strobogrammatic Number II |
Medium |
Solution Here |
248 |
Strobogrammatic Number III |
Hard |
Solution Here |
249 |
Group Shifted Strings |
Medium |
Solution Here |
251 |
Flatten 2D Vector |
Medium |
Solution Here |
252 |
Meeting Rooms |
Easy |
Solution Here |
253 |
Meeting Rooms II |
Medium |
Solution Here |
254 |
Factor Combinations |
Medium |
Solution Here |
256 |
Paint House |
Medium |
Solution Here |
259 |
3Sum Smaller |
Medium |
Solution Here |
260 |
Single Number III |
Medium |
Solution Here |
265 |
Paint House II |
Hard |
Solution Here |
268 |
Missing Number |
Easy |
Solution Here |
269 |
Alien Dictionary |
Hard |
Solution Here |
271 |
Encode and Decode Strings |
Medium |
Solution Here |
274 |
H-Index |
Medium |
Solution Here |
275 |
H-Index II |
Medium |
Solution Here |
280 |
Wiggle Sort |
Medium |
Solution Here |
281 |
Zigzag Iterator |
Medium |
Solution Here |
283 |
Move Zeroes |
Easy |
Solution Here |
284 |
Peeking Iterator |
Medium |
Solution Here |
286 |
Walls and Gates |
Medium |
Solution Here |
287 |
Find the Duplicate Number |
Medium |
Solution Here |
288 |
Unique Word Abbreviation |
Medium |
Solution Here |
289 |
Game of Life |
Medium |
Solution Here |
296 |
Best Meeting Point |
Hard |
Solution Here |
300 |
Longest Increasing Subsequence |
Medium |
Solution Here |
302 |
Smallest Rectangle Enclosing Black Pixels |
Hard |
Solution Here |
303 |
Range Sum Query – Immutable |
Easy |
Solution Here |
304 |
Range Sum Query 2D – Immutable |
Medium |
Solution Here |
305 |
Number of Islands II |
Hard |
Solution Here |
307 |
Range Sum Query – Mutable |
Medium |
Solution Here |
308 |
Range Sum Query 2D – Mutable |
Hard |
Solution Here |
309 |
Best Time to Buy and Sell Stock with Cooldown |
Medium |
Solution Here |
311 |
Sparse Matrix Multiplication |
Medium |
Solution Here |
312 |
Burst Balloons |
Hard |
Solution Here |
313 |
Super Ugly Number |
Medium |
Solution Here |
315 |
Count of Smaller Numbers After Self |
Hard |
Solution Here |
317 |
Shortest Distance from All Buildings |
Hard |
Solution Here |
318 |
Maximum Product of Word Lengths |
Medium |
Solution Here |
322 |
Coin Change |
Medium |
Solution Here |
324 |
Wiggle Sort II |
Medium |
Solution Here |
325 |
Maximum Size Subarray Sum Equals k |
Medium |
Solution Here |
327 |
Count of Range Sum |
Hard |
Solution Here |
329 |
Longest Increasing Path in a Matrix |
Hard |
Solution Here |
330 |
Patching Array |
Hard |
Solution Here |
334 |
Increasing Triplet Subsequence |
Medium |
Solution Here |
335 |
Self Crossing |
Hard |
Solution Here |
336 |
Palindrome Pairs |
Hard |
Solution Here |
346 |
Moving Average from Data Stream |
Easy |
Solution Here |
347 |
Top K Frequent Elements |
Medium |
Solution Here |
348 |
Design Tic-Tac-Toe |
Medium |
Solution Here |
349 |
Intersection of Two Arrays |
Easy |
Solution Here |
350 |
Intersection of Two Arrays II |
Easy |
Solution Here |
353 |
Design Snake Game |
Medium |
Solution Here |
354 |
Russian Doll Envelopes |
Hard |
Solution Here |
356 |
Line Reflection |
Medium |
Solution Here |
360 |
Sort Transformed Array |
Medium |
Solution Here |
361 |
Bomb Enemy |
Medium |
Solution Here |
362 |
Design Hit Counter |
Medium |
Solution Here |
363 |
Max Sum of Rectangle No Larger Than K |
Hard |
Solution Here |
368 |
Largest Divisible Subset |
Medium |
Solution Here |
370 |
Range Addition |
Medium |
Solution Here |
373 |
Find K Pairs with Smallest Sums |
Medium |
Solution Here |
376 |
Wiggle Subsequence |
Medium |
Solution Here |
377 |
Combination Sum IV |
Medium |
Solution Here |
378 |
Kth Smallest Element in a Sorted Matrix |
Medium |
Solution Here |
379 |
Design Phone Directory |
Medium |
Solution Here |
380 |
Insert Delete GetRandom O(1) |
Medium |
Solution Here |
381 |
Insert Delete GetRandom O(1) – Duplicates allowed |
Hard |
Solution Here |
384 |
Shuffle an Array |
Medium |
Solution Here |
391 |
Perfect Rectangle |
Hard |
Solution Here |
393 |
UTF-8 Validation |
Medium |
Solution Here |
396 |
Rotate Function |
Medium |
Solution Here |
399 |
Evaluate Division |
Medium |
Solution Here |
403 |
Frog Jump |
Hard |
Solution Here |
406 |
Queue Reconstruction by Height |
Medium |
Solution Here |
407 |
Trapping Rain Water II |
Hard |
Solution Here |
410 |
Split Array Largest Sum |
Hard |
Solution Here |
413 |
Arithmetic Slices |
Medium |
Solution Here |
414 |
Third Maximum Number |
Easy |
Solution Here |
416 |
Partition Equal Subset Sum |
Medium |
Solution Here |
417 |
Pacific Atlantic Water Flow |
Medium |
Solution Here |
419 |
Battleships in a Board |
Medium |
Solution Here |
421 |
Maximum XOR of Two Numbers in an Array |
Medium |
Solution Here |
422 |
Valid Word Square |
Easy |
Solution Here |
425 |
Word Squares |
Hard |
Solution Here |
435 |
Non-overlapping Intervals |
Medium |
Solution Here |
436 |
Find Right Interval |
Medium |
Solution Here |
442 |
Find All Duplicates in an Array |
Medium |
Solution Here |
444 |
Sequence Reconstruction |
Medium |
Solution Here |
446 |
Arithmetic Slices II – Subsequence |
Hard |
Solution Here |
447 |
Number of Boomerangs |
Medium |
Solution Here |
448 |
Find All Numbers Disappeared in an Array |
Easy |
Solution Here |
452 |
Minimum Number of Arrows to Burst Balloons |
Medium |
Solution Here |
453 |
Minimum Moves to Equal Array Elements |
Medium |
Solution Here |
454 |
4Sum II |
Medium |
Solution Here |
455 |
Assign Cookies |
Easy |
Solution Here |
456 |
132 Pattern |
Medium |
Solution Here |
457 |
Circular Array Loop |
Medium |
Solution Here |
462 |
Minimum Moves to Equal Array Elements II |
Medium |
Solution Here |
463 |
Island Perimeter |
Easy |
Solution Here |
465 |
Optimal Account Balancing |
Hard |
Solution Here |
472 |
Concatenated Words |
Hard |
Solution Here |
473 |
Matchsticks to Square |
Medium |
Solution Here |
474 |
Ones and Zeroes |
Medium |
Solution Here |
475 |
Heaters |
Medium |
Solution Here |
477 |
Total Hamming Distance |
Medium |
Solution Here |
480 |
Sliding Window Median |
Hard |
Solution Here |
484 |
Find Permutation |
Medium |
Solution Here |
485 |
Max Consecutive Ones |
Easy |
Solution Here |
486 |
Predict the Winner |
Medium |
Solution Here |
487 |
Max Consecutive Ones II |
Medium |
Solution Here |
1643 |
Kth Smallest Instructions |
Hard |
Solution Here |
491 |
Increasing Subsequences |
Medium |
Solution Here |
493 |
Reverse Pairs |
Hard |
Solution Here |
494 |
Target Sum |
Medium |
Solution Here |
495 |
Teemo Attacking |
Easy |
Solution Here |
496 |
Next Greater Element I |
Easy |
Solution Here |
498 |
Diagonal Traverse |
Medium |
Solution Here |
500 |
Keyboard Row |
Easy |
Solution Here |
502 |
IPO |
Hard |
Solution Here |
503 |
Next Greater Element II |
Medium |
Solution Here |
506 |
Relative Ranks |
Easy |
Solution Here |
2031 |
Count Subarrays With More Ones Than Zeros |
Medium |
Solution Here |
2036 |
Maximum Alternating Subarray Sum |
Medium |
Solution Here |
517 |
Super Washing Machines |
Hard |
Solution Here |
518 |
Coin Change 2 |
Medium |
Solution Here |
1983 |
Widest Pair of Indices With Equal Range Sum |
Medium |
Solution Here |
522 |
Longest Uncommon Subsequence II |
Medium |
Solution Here |
523 |
Continuous Subarray Sum |
Medium |
Solution Here |
524 |
Longest Word in Dictionary through Deleting |
Medium |
Solution Here |
525 |
Contiguous Array |
Medium |
Solution Here |
526 |
Beautiful Arrangement |
Medium |
Solution Here |
527 |
Word Abbreviation |
Hard |
Solution Here |
529 |
Minesweeper |
Medium |
Solution Here |
531 |
Lonely Pixel I |
Medium |
Solution Here |
532 |
K-diff Pairs in an Array |
Medium |
Solution Here |
533 |
Lonely Pixel II |
Medium |
Solution Here |
539 |
Minimum Time Difference |
Medium |
Solution Here |
540 |
Single Element in a Sorted Array |
Medium |
Solution Here |
542 |
01 Matrix |
Medium |
Solution Here |
546 |
Remove Boxes |
Hard |
Solution Here |
548 |
Split Array with Equal Sum |
Hard |
Solution Here |
1730 |
Shortest Path to Get Food |
Medium |
Solution Here |
553 |
Optimal Division |
Medium |
Solution Here |
554 |
Brick Wall |
Medium |
Solution Here |
555 |
Split Concatenated Strings |
Medium |
Solution Here |
560 |
Subarray Sum Equals K |
Medium |
Solution Here |
561 |
Array Partition |
Easy |
Solution Here |
562 |
Longest Line of Consecutive One in Matrix |
Medium |
Solution Here |
565 |
Array Nesting |
Medium |
Solution Here |
566 |
Reshape the Matrix |
Easy |
Solution Here |
568 |
Maximum Vacation Days |
Hard |
Solution Here |
573 |
Squirrel Simulation |
Medium |
Solution Here |
575 |
Distribute Candies |
Easy |
Solution Here |
581 |
Shortest Unsorted Continuous Subarray |
Medium |
Solution Here |
582 |
Kill Process |
Medium |
Solution Here |
587 |
Erect the Fence |
Hard |
Solution Here |
594 |
Longest Harmonious Subsequence |
Easy |
Solution Here |
598 |
Range Addition II |
Easy |
Solution Here |
599 |
Minimum Index Sum of Two Lists |
Easy |
Solution Here |
604 |
Design Compressed String Iterator |
Easy |
Solution Here |
605 |
Can Place Flowers |
Easy |
Solution Here |
609 |
Find Duplicate File in System |
Medium |
Solution Here |
611 |
Valid Triangle Number |
Medium |
Solution Here |
616 |
Add Bold Tag in String |
Medium |
Solution Here |
621 |
Task Scheduler |
Medium |
Solution Here |
624 |
Maximum Distance in Arrays |
Medium |
Solution Here |
628 |
Maximum Product of Three Numbers |
Easy |
Solution Here |
630 |
Course Schedule III |
Hard |
Solution Here |
632 |
Smallest Range Covering Elements from K Lists |
Hard |
Solution Here |
636 |
Exclusive Time of Functions |
Medium |
Solution Here |
638 |
Shopping Offers |
Medium |
Solution Here |
643 |
Maximum Average Subarray I |
Easy |
Solution Here |
644 |
Maximum Average Subarray II |
Hard |
Solution Here |
645 |
Set Mismatch |
Easy |
Solution Here |
646 |
Maximum Length of Pair Chain |
Medium |
Solution Here |
648 |
Replace Words |
Medium |
Solution Here |
654 |
Maximum Binary Tree |
Medium |
Solution Here |
656 |
Coin Path |
Hard |
Solution Here |
658 |
Find K Closest Elements |
Medium |
Solution Here |
659 |
Split Array into Consecutive Subsequences |
Medium |
Solution Here |
661 |
Image Smoother |
Easy |
Solution Here |
665 |
Non-decreasing Array |
Medium |
Solution Here |
666 |
Path Sum IV |
Medium |
Solution Here |
667 |
Beautiful Arrangement II |
Medium |
Solution Here |
673 |
Number of Longest Increasing Subsequence |
Medium |
Solution Here |
674 |
Longest Continuous Increasing Subsequence |
Easy |
Solution Here |
675 |
Cut Off Trees for Golf Event |
Hard |
Solution Here |
679 |
24 Game |
Hard |
Solution Here |
682 |
Baseball Game |
Easy |
Solution Here |
683 |
K Empty Slots |
Hard |
Solution Here |
689 |
Maximum Sum of 3 Non-Overlapping Subarrays |
Hard |
Solution Here |
691 |
Stickers to Spell Word |
Hard |
Solution Here |
695 |
Max Area of Island |
Medium |
Solution Here |
697 |
Degree of an Array |
Easy |
Solution Here |
698 |
Partition to K Equal Sum Subsets |
Medium |
Solution Here |
699 |
Falling Squares |
Hard |
Solution Here |
713 |
Subarray Product Less Than K |
Medium |
Solution Here |
714 |
Best Time to Buy and Sell Stock with Transaction Fee |
Medium |
Solution Here |
717 |
1-bit and 2-bit Characters |
Easy |
Solution Here |
718 |
Maximum Length of Repeated Subarray |
Medium |
Solution Here |
719 |
Find K-th Smallest Pair Distance |
Hard |
Solution Here |
720 |
Longest Word in Dictionary |
Medium |
Solution Here |
721 |
Accounts Merge |
Medium |
Solution Here |
722 |
Remove Comments |
Medium |
Solution Here |
723 |
Candy Crush |
Medium |
Solution Here |
724 |
Find Pivot Index |
Easy |
Solution Here |
733 |
Flood Fill |
Easy |
Solution Here |
734 |
Sentence Similarity |
Easy |
Solution Here |
735 |
Asteroid Collision |
Medium |
Solution Here |
737 |
Sentence Similarity II |
Medium |
Solution Here |
739 |
Daily Temperatures |
Medium |
Solution Here |
740 |
Delete and Earn |
Medium |
Solution Here |
741 |
Cherry Pickup |
Hard |
Solution Here |
744 |
Find Smallest Letter Greater Than Target |
Easy |
Solution Here |
746 |
Min Cost Climbing Stairs |
Easy |
Solution Here |
747 |
Largest Number At Least Twice of Others |
Easy |
Solution Here |
748 |
Shortest Completing Word |
Easy |
Solution Here |
749 |
Contain Virus |
Hard |
Solution Here |
750 |
Number Of Corner Rectangles |
Medium |
Solution Here |
752 |
Open the Lock |
Medium |
Solution Here |
755 |
Pour Water |
Medium |
Solution Here |
757 |
Set Intersection Size At Least Two |
Hard |
Solution Here |
758 |
Bold Words in String |
Medium |
Solution Here |
759 |
Employee Free Time |
Hard |
Solution Here |
760 |
Find Anagram Mappings |
Easy |
Solution Here |
764 |
Largest Plus Sign |
Medium |
Solution Here |
427 |
Construct Quad Tree |
Medium |
Solution Here |
766 |
Toeplitz Matrix |
Easy |
Solution Here |
768 |
Max Chunks To Make Sorted II |
Hard |
Solution Here |
769 |
Max Chunks To Make Sorted |
Medium |
Solution Here |
702 |
Search in a Sorted Array of Unknown Size |
Medium |
Solution Here |
773 |
Sliding Puzzle |
Hard |
Solution Here |
774 |
Minimize Max Distance to Gas Station |
Hard |
Solution Here |
775 |
Global and Local Inversions |
Medium |
Solution Here |
704 |
Binary Search |
Easy |
Solution Here |
778 |
Swim in Rising Water |
Hard |
Solution Here |
781 |
Rabbits in Forest |
Medium |
Solution Here |
782 |
Transform to Chessboard |
Hard |
Solution Here |
786 |
K-th Smallest Prime Fraction |
Medium |
Solution Here |
789 |
Escape The Ghosts |
Medium |
Solution Here |
794 |
Valid Tic-Tac-Toe State |
Medium |
Solution Here |
795 |
Number of Subarrays with Bounded Maximum |
Medium |
Solution Here |
798 |
Smallest Rotation with Highest Score |
Hard |
Solution Here |
705 |
Design HashSet |
Easy |
Solution Here |
706 |
Design HashMap |
Easy |
Solution Here |
801 |
Minimum Swaps To Make Sequences Increasing |
Hard |
Solution Here |
803 |
Bricks Falling When Hit |
Hard |
Solution Here |
804 |
Unique Morse Code Words |
Easy |
Solution Here |
805 |
Split Array With Same Average |
Hard |
Solution Here |
806 |
Number of Lines To Write String |
Easy |
Solution Here |
807 |
Max Increase to Keep City Skyline |
Medium |
Solution Here |
809 |
Expressive Words |
Medium |
Solution Here |
810 |
Chalkboard XOR Game |
Hard |
Solution Here |
811 |
Subdomain Visit Count |
Medium |
Solution Here |
812 |
Largest Triangle Area |
Easy |
Solution Here |
813 |
Largest Sum of Averages |
Medium |
Solution Here |
815 |
Bus Routes |
Hard |
Solution Here |
820 |
Short Encoding of Words |
Medium |
Solution Here |
821 |
Shortest Distance to a Character |
Easy |
Solution Here |
822 |
Card Flipping Game |
Medium |
Solution Here |
823 |
Binary Trees With Factors |
Medium |
Solution Here |
825 |
Friends Of Appropriate Ages |
Medium |
Solution Here |
826 |
Most Profit Assigning Work |
Medium |
Solution Here |
827 |
Making A Large Island |
Hard |
Solution Here |
641 |
Design Circular Deque |
Medium |
Solution Here |
622 |
Design Circular Queue |
Medium |
Solution Here |
832 |
Flipping an Image |
Easy |
Solution Here |
833 |
Find And Replace in String |
Medium |
Solution Here |
835 |
Image Overlap |
Medium |
Solution Here |
839 |
Similar String Groups |
Hard |
Solution Here |
840 |
Magic Squares In Grid |
Medium |
Solution Here |
843 |
Guess the Word |
Hard |
Solution Here |
845 |
Longest Mountain in Array |
Medium |
Solution Here |
846 |
Hand of Straights |
Medium |
Solution Here |
848 |
Shifting Letters |
Medium |
Solution Here |
849 |
Maximize Distance to Closest Person |
Medium |
Solution Here |
850 |
Rectangle Area II |
Hard |
Solution Here |
851 |
Loud and Rich |
Medium |
Solution Here |
852 |
Peak Index in a Mountain Array |
Medium |
Solution Here |
853 |
Car Fleet |
Medium |
Solution Here |
857 |
Minimum Cost to Hire K Workers |
Hard |
Solution Here |
860 |
Lemonade Change |
Easy |
Solution Here |
861 |
Score After Flipping Matrix |
Medium |
Solution Here |
862 |
Shortest Subarray with Sum at Least K |
Hard |
Solution Here |
867 |
Transpose Matrix |
Easy |
Solution Here |
870 |
Advantage Shuffle |
Medium |
Solution Here |
871 |
Minimum Number of Refueling Stops |
Hard |
Solution Here |
873 |
Length of Longest Fibonacci Subsequence |
Medium |
Solution Here |
874 |
Walking Robot Simulation |
Medium |
Solution Here |
875 |
Koko Eating Bananas |
Medium |
Solution Here |
877 |
Stone Game |
Medium |
Solution Here |
879 |
Profitable Schemes |
Hard |
Solution Here |
881 |
Boats to Save People |
Medium |
Solution Here |
883 |
Projection Area of 3D Shapes |
Easy |
Solution Here |
885 |
Spiral Matrix III |
Medium |
Solution Here |
888 |
Fair Candy Swap |
Easy |
Solution Here |
889 |
Construct Binary Tree from Preorder and Postorder Traversal |
Medium |
Solution Here |
890 |
Find and Replace Pattern |
Medium |
Solution Here |
891 |
Sum of Subsequence Widths |
Hard |
Solution Here |
892 |
Surface Area of 3D Shapes |
Easy |
Solution Here |
893 |
Groups of Special-Equivalent Strings |
Medium |
Solution Here |
896 |
Monotonic Array |
Easy |
Solution Here |
898 |
Bitwise ORs of Subarrays |
Medium |
Solution Here |
900 |
RLE Iterator |
Medium |
Solution Here |
902 |
Numbers At Most N Given Digit Set |
Hard |
Solution Here |
904 |
Fruit Into Baskets |
Medium |
Solution Here |
905 |
Sort Array By Parity |
Easy |
Solution Here |
907 |
Sum of Subarray Minimums |
Medium |
Solution Here |
908 |
Smallest Range I |
Easy |
Solution Here |
909 |
Snakes and Ladders |
Medium |
Solution Here |
910 |
Smallest Range II |
Medium |
Solution Here |
911 |
Online Election |
Medium |
Solution Here |
912 |
Sort an Array |
Medium |
Solution Here |
914 |
X of a Kind in a Deck of Cards |
Easy |
Solution Here |
915 |
Partition Array into Disjoint Intervals |
Medium |
Solution Here |
916 |
Word Subsets |
Medium |
Solution Here |
918 |
Maximum Sum Circular Subarray |
Medium |
Solution Here |
922 |
Sort Array By Parity II |
Easy |
Solution Here |
923 |
3Sum With Multiplicity |
Medium |
Solution Here |
924 |
Minimize Malware Spread |
Hard |
Solution Here |
927 |
Three Equal Parts |
Hard |
Solution Here |
928 |
Minimize Malware Spread II |
Hard |
Solution Here |
929 |
Unique Email Addresses |
Easy |
Solution Here |
930 |
Binary Subarrays With Sum |
Medium |
Solution Here |
931 |
Minimum Falling Path Sum |
Medium |
Solution Here |
932 |
Beautiful Array |
Medium |
Solution Here |
934 |
Shortest Bridge |
Medium |
Solution Here |
937 |
Reorder Data in Log Files |
Medium |
Solution Here |
939 |
Minimum Area Rectangle |
Medium |
Solution Here |
941 |
Valid Mountain Array |
Easy |
Solution Here |
942 |
DI String Match |
Easy |
Solution Here |
943 |
Find the Shortest Superstring |
Hard |
Solution Here |
944 |
Delete Columns to Make Sorted |
Easy |
Solution Here |
945 |
Minimum Increment to Make Array Unique |
Medium |
Solution Here |
946 |
Validate Stack Sequences |
Medium |
Solution Here |
948 |
Bag of Tokens |
Medium |
Solution Here |
950 |
Reveal Cards In Increasing Order |
Medium |
Solution Here |
952 |
Largest Component Size by Common Factor |
Hard |
Solution Here |
953 |
Verifying an Alien Dictionary |
Easy |
Solution Here |
954 |
Array of Doubled Pairs |
Medium |
Solution Here |
955 |
Delete Columns to Make Sorted II |
Medium |
Solution Here |
956 |
Tallest Billboard |
Hard |
Solution Here |
957 |
Prison Cells After N Days |
Medium |
Solution Here |
960 |
Delete Columns to Make Sorted III |
Hard |
Solution Here |
961 |
N-Repeated Element in Size 2N Array |
Easy |
Solution Here |
962 |
Maximum Width Ramp |
Medium |
Solution Here |
963 |
Minimum Area Rectangle II |
Medium |
Solution Here |
966 |
Vowel Spellchecker |
Medium |
Solution Here |
969 |
Pancake Sorting |
Medium |
Solution Here |
973 |
K Closest Points to Origin |
Medium |
Solution Here |
974 |
Subarray Sums Divisible by K |
Medium |
Solution Here |
975 |
Odd Even Jump |
Hard |
Solution Here |
976 |
Largest Perimeter Triangle |
Easy |
Solution Here |
977 |
Squares of a Sorted Array |
Easy |
Solution Here |
978 |
Longest Turbulent Subarray |
Medium |
Solution Here |
980 |
Unique Paths III |
Hard |
Solution Here |
982 |
Triples with Bitwise AND Equal To Zero |
Hard |
Solution Here |
983 |
Minimum Cost For Tickets |
Medium |
Solution Here |
985 |
Sum of Even Numbers After Queries |
Medium |
Solution Here |
986 |
Interval List Intersections |
Medium |
Solution Here |
989 |
Add to Array-Form of Integer |
Easy |
Solution Here |
990 |
Satisfiability of Equality Equations |
Medium |
Solution Here |
992 |
Subarrays with K Different Integers |
Hard |
Solution Here |
994 |
Rotting Oranges |
Medium |
Solution Here |
995 |
Minimum Number of K Consecutive Bit Flips |
Hard |
Solution Here |
996 |
Number of Squareful Arrays |
Hard |
Solution Here |
997 |
Find the Town Judge |
Easy |
Solution Here |
999 |
Available Captures for Rook |
Easy |
Solution Here |
1000 |
Minimum Cost to Merge Stones |
Hard |
Solution Here |
1001 |
Grid Illumination |
Hard |
Solution Here |
1002 |
Find Common Characters |
Easy |
Solution Here |
1004 |
Max Consecutive Ones III |
Medium |
Solution Here |
1005 |
Maximize Sum Of Array After K Negations |
Easy |
Solution Here |
1007 |
Minimum Domino Rotations For Equal Row |
Medium |
Solution Here |
1008 |
Construct Binary Search Tree from Preorder Traversal |
Medium |
Solution Here |
1057 |
Campus Bikes |
Medium |
Solution Here |
1058 |
Minimize Rounding Error to Meet Target |
Medium |
Solution Here |
1010 |
Pairs of Songs With Total Durations Divisible by 60 |
Medium |
Solution Here |
1011 |
Capacity To Ship Packages Within D Days |
Medium |
Solution Here |
1060 |
Missing Element in Sorted Array |
Medium |
Solution Here |
1063 |
Number of Valid Subarrays |
Hard |
Solution Here |
1013 |
Partition Array Into Three Parts With Equal Sum |
Easy |
Solution Here |
1014 |
Best Sightseeing Pair |
Medium |
Solution Here |
1064 |
Fixed Point |
Easy |
Solution Here |
1066 |
Campus Bikes II |
Medium |
Solution Here |
1018 |
Binary Prefix Divisible By 5 |
Easy |
Solution Here |
1019 |
Next Greater Node In Linked List |
Medium |
Solution Here |
1020 |
Number of Enclaves |
Medium |
Solution Here |
1086 |
High Five |
Easy |
Solution Here |
1065 |
Index Pairs of a String |
Easy |
Solution Here |
1024 |
Video Stitching |
Medium |
Solution Here |
1085 |
Sum of Digits in the Minimum Number |
Easy |
Solution Here |
1099 |
Two Sum Less Than K |
Easy |
Solution Here |
1101 |
The Earliest Moment When Everyone Become Friends |
Medium |
Solution Here |
1027 |
Longest Arithmetic Subsequence |
Medium |
Solution Here |
1030 |
Matrix Cells in Distance Order |
Easy |
Solution Here |
1029 |
Two City Scheduling |
Medium |
Solution Here |
1031 |
Maximum Sum of Two Non-Overlapping Subarrays |
Medium |
Solution Here |
1032 |
Stream of Characters |
Hard |
Solution Here |
1133 |
Largest Unique Number |
Easy |
Solution Here |
1102 |
Path With Maximum Minimum Value |
Medium |
Solution Here |
1150 |
Check If a Number Is Majority Element in a Sorted Array |
Easy |
Solution Here |
1034 |
Coloring A Border |
Medium |
Solution Here |
1035 |
Uncrossed Lines |
Medium |
Solution Here |
1036 |
Escape a Large Maze |
Hard |
Solution Here |
1151 |
Minimum Swaps to Group All 1’s Together |
Medium |
Solution Here |
1152 |
Analyze User Website Visit Pattern |
Medium |
Solution Here |
1039 |
Minimum Score Triangulation of Polygon |
Medium |
Solution Here |
1160 |
Find Words That Can Be Formed by Characters |
Easy |
Solution Here |
1040 |
Moving Stones Until Consecutive II |
Medium |
Solution Here |
1037 |
Valid Boomerang |
Easy |
Solution Here |
1162 |
As Far from Land as Possible |
Medium |
Solution Here |
1121 |
Divide Array Into Increasing Sequences |
Hard |
Solution Here |
1043 |
Partition Array for Maximum Sum |
Medium |
Solution Here |
1167 |
Minimum Cost to Connect Sticks |
Medium |
Solution Here |
1046 |
Last Stone Weight |
Easy |
Solution Here |
1048 |
Longest String Chain |
Medium |
Solution Here |
1049 |
Last Stone Weight II |
Medium |
Solution Here |
1181 |
Before and After Puzzle |
Medium |
Solution Here |
1182 |
Shortest Distance to Target Color |
Medium |
Solution Here |
1051 |
Height Checker |
Easy |
Solution Here |
1052 |
Grumpy Bookstore Owner |
Medium |
Solution Here |
1053 |
Previous Permutation With One Swap |
Medium |
Solution Here |
1054 |
Distant Barcodes |
Medium |
Solution Here |
1196 |
How Many Apples Can You Put into the Basket |
Easy |
Solution Here |
1198 |
Find Smallest Common Element in All Rows |
Medium |
Solution Here |
1074 |
Number of Submatrices That Sum to Target |
Hard |
Solution Here |
1072 |
Flip Columns For Maximum Number of Equal Rows |
Medium |
Solution Here |
1073 |
Adding Two Negabinary Numbers |
Medium |
Solution Here |
1213 |
Intersection of Three Sorted Arrays |
Easy |
Solution Here |
1228 |
Missing Number In Arithmetic Progression |
Easy |
Solution Here |
1229 |
Meeting Scheduler |
Medium |
Solution Here |
1089 |
Duplicate Zeros |
Easy |
Solution Here |
1090 |
Largest Values From Labels |
Medium |
Solution Here |
1091 |
Shortest Path in Binary Matrix |
Medium |
Solution Here |
1243 |
Array Transformation |
Easy |
Solution Here |
1094 |
Car Pooling |
Medium |
Solution Here |
1095 |
Find in Mountain Array |
Hard |
Solution Here |
1257 |
Smallest Common Region |
Medium |
Solution Here |
1258 |
Synonymous Sentences |
Medium |
Solution Here |
1231 |
Divide Chocolate |
Hard |
Solution Here |
1105 |
Filling Bookcase Shelves |
Medium |
Solution Here |
1272 |
Remove Interval |
Medium |
Solution Here |
1246 |
Palindrome Removal |
Hard |
Solution Here |
1109 |
Corporate Flight Bookings |
Medium |
Solution Here |
1619 |
Mean of Array After Removing Some Elements |
Easy |
Solution Here |
1122 |
Relative Sort Array |
Easy |
Solution Here |
1124 |
Longest Well-Performing Interval |
Medium |
Solution Here |
1125 |
Smallest Sufficient Team |
Hard |
Solution Here |
1287 |
Element Appearing More Than 25% In Sorted Array |
Easy |
Solution Here |
1288 |
Remove Covered Intervals |
Medium |
Solution Here |
1627 |
Graph Connectivity With Threshold |
Hard |
Solution Here |
1289 |
Minimum Falling Path Sum II |
Hard |
Solution Here |
1128 |
Number of Equivalent Domino Pairs |
Easy |
Solution Here |
1131 |
Maximum of Absolute Value Expression |
Medium |
Solution Here |
1299 |
Replace Elements with Greatest Element on Right Side |
Easy |
Solution Here |
1300 |
Sum of Mutated Array Closest to Target |
Medium |
Solution Here |
1274 |
Number of Ships in a Rectangle |
Hard |
Solution Here |
1301 |
Number of Paths with Max Score |
Hard |
Solution Here |
1139 |
Largest 1-Bordered Square |
Medium |
Solution Here |
1140 |
Stone Game II |
Medium |
Solution Here |
1313 |
Decompress Run-Length Encoded List |
Easy |
Solution Here |
1314 |
Matrix Block Sum |
Medium |
Solution Here |
1144 |
Decrease Elements To Make Array Zigzag |
Medium |
Solution Here |
1146 |
Snapshot Array |
Medium |
Solution Here |
1329 |
Sort the Matrix Diagonally |
Medium |
Solution Here |
1330 |
Reverse Subarray To Maximize Array Value |
Hard |
Solution Here |
1331 |
Rank Transform of an Array |
Easy |
Solution Here |
1632 |
Rank Transform of a Matrix |
Hard |
Solution Here |
1157 |
Online Majority Element In Subarray |
Hard |
Solution Here |
1169 |
Invalid Transactions |
Medium |
Solution Here |
1170 |
Compare Strings by Frequency of the Smallest Character |
Medium |
Solution Here |
1363 |
Largest Multiple of Three |
Hard |
Solution Here |
1176 |
Diet Plan Performance |
Easy |
Solution Here |
1178 |
Number of Valid Words for Each Puzzle |
Hard |
Solution Here |
1390 |
Four Divisors |
Medium |
Solution Here |
1425 |
Constrained Subsequence Sum |
Hard |
Solution Here |
1184 |
Distance Between Bus Stops |
Easy |
Solution Here |
1186 |
Maximum Subarray Sum with One Deletion |
Medium |
Solution Here |
1187 |
Make Array Strictly Increasing |
Hard |
Solution Here |
1550 |
Three Consecutive Odds |
Easy |
Solution Here |
2080 |
Range Frequency Queries |
Medium |
Solution Here |
1191 |
K-Concatenation Maximum Sum |
Medium |
Solution Here |
1944 |
Number of Visible People in a Queue |
Hard |
Solution Here |
1200 |
Minimum Absolute Difference |
Easy |
Solution Here |
2079 |
Watering Plants |
Medium |
Solution Here |
1895 |
Largest Magic Square |
Medium |
Solution Here |
2201 |
Count Artifacts That Can Be Extracted |
Medium |
Solution Here |
1207 |
Unique Number of Occurrences |
Easy |
Solution Here |
1210 |
Minimum Moves to Reach Target with Rotations |
Hard |
Solution Here |
1706 |
Where Will the Ball Fall |
Medium |
Solution Here |
1862 |
Sum of Floored Pairs |
Hard |
Solution Here |
1217 |
Minimum Cost to Move Chips to The Same Position |
Easy |
Solution Here |
1218 |
Longest Arithmetic Subsequence of Given Difference |
Medium |
Solution Here |
1219 |
Path with Maximum Gold |
Medium |
Solution Here |
2191 |
Sort the Jumbled Numbers |
Medium |
Solution Here |
2226 |
Maximum Candies Allocated to K Children |
Medium |
Solution Here |
1222 |
Queens That Can Attack the King |
Medium |
Solution Here |
1223 |
Dice Roll Simulation |
Hard |
Solution Here |
1224 |
Maximum Equal Frequency |
Hard |
Solution Here |
1427 |
Perform String Shifts |
Easy |
Solution Here |
2202 |
Maximize the Topmost Element After K Moves |
Medium |
Solution Here |
2321 |
Maximum Score Of Spliced Array |
Hard |
Solution Here |
1232 |
Check If It Is a Straight Line |
Easy |
Solution Here |
1233 |
Remove Sub-Folders from the Filesystem |
Medium |
Solution Here |
1235 |
Maximum Profit in Job Scheduling |
Hard |
Solution Here |
2273 |
Find Resultant Array After Removing Anagrams |
Easy |
Solution Here |
2225 |
Find Players With Zero or One Losses |
Medium |
Solution Here |
2216 |
Minimum Deletions to Make Array Beautiful |
Medium |
Solution Here |
1239 |
Maximum Length of a Concatenated String with Unique Characters |
Medium |
Solution Here |
1726 |
Tuple with Same Product |
Medium |
Solution Here |
1429 |
First Unique Number |
Medium |
Solution Here |
1691 |
Maximum Height by Stacking Cuboids |
Hard |
Solution Here |
1248 |
Count Number of Nice Subarrays |
Medium |
Solution Here |
1250 |
Check If It Is a Good Array |
Hard |
Solution Here |
1428 |
Leftmost Column with at Least a One |
Medium |
Solution Here |
2217 |
Find Palindrome With Fixed Length |
Medium |
Solution Here |
2312 |
Selling Pieces of Wood |
Hard |
Solution Here |
1252 |
Cells with Odd Values in a Matrix |
Easy |
Solution Here |
1253 |
Reconstruct a 2-Row Binary Matrix |
Medium |
Solution Here |
1254 |
Number of Closed Islands |
Medium |
Solution Here |
1255 |
Maximum Score Words Formed by Letters |
Hard |
Solution Here |
2303 |
Calculate Amount Paid in Taxes |
Easy |
Solution Here |
1618 |
Maximum Font to Fit a Sentence in a Screen |
Medium |
Solution Here |
1260 |
Shift 2D Grid |
Easy |
Solution Here |
1262 |
Greatest Sum Divisible by Three |
Medium |
Solution Here |
1263 |
Minimum Moves to Move a Box to Their Target Location |
Hard |
Solution Here |
1426 |
Counting Elements |
Easy |
Solution Here |
2215 |
Find the Difference of Two Arrays |
Easy |
Solution Here |
2218 |
Maximum Value of K Coins From Piles |
Hard |
Solution Here |
2304 |
Minimum Path Cost in a Grid |
Medium |
Solution Here |
1266 |
Minimum Time Visiting All Points |
Easy |
Solution Here |
1267 |
Count Servers that Communicate |
Medium |
Solution Here |
1268 |
Search Suggestions System |
Medium |
Solution Here |
1275 |
Find Winner on a Tic Tac Toe Game |
Easy |
Solution Here |
1277 |
Count Square Submatrices with All Ones |
Medium |
Solution Here |
1282 |
Group the People Given the Group Size They Belong To |
Medium |
Solution Here |
1283 |
Find the Smallest Divisor Given a Threshold |
Medium |
Solution Here |
1284 |
Minimum Number of Flips to Convert Binary Matrix to Zero Matrix |
Hard |
Solution Here |
1292 |
Maximum Side Length of a Square with Sum Less than or Equal to Threshold |
Medium |
Solution Here |
1293 |
Shortest Path in a Grid with Obstacles Elimination |
Hard |
Solution Here |
2229 |
Check if an Array Is Consecutive |
Easy |
Solution Here |
10005 |
Design a Load Distributor |
Hard |
Solution Here |
2305 |
Fair Distribution of Cookies |
Medium |
Solution Here |
1295 |
Find Numbers with Even Number of Digits |
Easy |
Solution Here |
1296 |
Divide Array in Sets of K Consecutive Numbers |
Medium |
Solution Here |
1298 |
Maximum Candies You Can Get from Boxes |
Hard |
Solution Here |
1304 |
Find N Unique Integers Sum up to Zero |
Easy |
Solution Here |
1306 |
Jump Game III |
Medium |
Solution Here |
1307 |
Verbal Arithmetic Puzzle |
Hard |
Solution Here |
2227 |
Encrypt and Decrypt Strings |
Hard |
Solution Here |
1310 |
XOR Queries of a Subarray |
Medium |
Solution Here |
1311 |
Get Watched Videos by Your Friends |
Medium |
Solution Here |
1343 |
Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold |
Medium |
Solution Here |
1345 |
Jump Game IV |
Hard |
Solution Here |
1324 |
Print Words Vertically |
Medium |
Solution Here |
1326 |
Minimum Number of Taps to Open to Water a Garden |
Hard |
Solution Here |
1333 |
Filter Restaurants by Vegan-Friendly, Price and Distance |
Medium |
Solution Here |
1335 |
Minimum Difficulty of a Job Schedule |
Hard |
Solution Here |
1356 |
Sort Integers by The Number of 1 Bits |
Easy |
Solution Here |
1357 |
Apply Discount Every n Orders |
Medium |
Solution Here |
1337 |
The K Weakest Rows in a Matrix |
Easy |
Solution Here |
1338 |
Reduce Array Size to The Half |
Medium |
Solution Here |
1340 |
Jump Game V |
Hard |
Solution Here |
1346 |
Check If N and Its Double Exist |
Easy |
Solution Here |
1349 |
Maximum Students Taking Exam |
Hard |
Solution Here |
1351 |
Count Negative Numbers in a Sorted Matrix |
Easy |
Solution Here |
1352 |
Product of the Last K Numbers |
Medium |
Solution Here |
1353 |
Maximum Number of Events That Can Be Attended |
Medium |
Solution Here |
1354 |
Construct Target Array With Multiple Sums |
Hard |
Solution Here |
1365 |
How Many Numbers Are Smaller Than the Current Number |
Easy |
Solution Here |
1366 |
Rank Teams by Votes |
Medium |
Solution Here |
1368 |
Minimum Cost to Make at Least One Valid Path in a Grid |
Hard |
Solution Here |
1385 |
Find the Distance Value Between Two Arrays |
Easy |
Solution Here |
1386 |
Cinema Seat Allocation |
Medium |
Solution Here |
1388 |
Pizza With 3n Slices |
Hard |
Solution Here |
1375 |
Number of Times Binary String Is Prefix-Aligned |
Medium |
Solution Here |
1380 |
Lucky Numbers in a Matrix |
Easy |
Solution Here |
1381 |
Design a Stack With Increment Operation |
Medium |
Solution Here |
1383 |
Maximum Performance of a Team |
Hard |
Solution Here |
1402 |
Reducing Dishes |
Hard |
Solution Here |
1389 |
Create Target Array in the Given Order |
Easy |
Solution Here |
1391 |
Check if There is a Valid Path in a Grid |
Medium |
Solution Here |
1394 |
Find Lucky Integer in an Array |
Easy |
Solution Here |
1395 |
Count Number of Teams |
Medium |
Solution Here |
1413 |
Minimum Value to Get Positive Step by Step Sum |
Easy |
Solution Here |
1403 |
Minimum Subsequence in Non-Increasing Order |
Easy |
Solution Here |
1406 |
Stone Game III |
Hard |
Solution Here |
1408 |
String Matching in an Array |
Easy |
Solution Here |
1409 |
Queries on a Permutation With Key |
Medium |
Solution Here |
1431 |
Kids With the Greatest Number of Candies |
Easy |
Solution Here |
1434 |
Number of Ways to Wear Different Hats to Each Other |
Hard |
Solution Here |
1418 |
Display Table of Food Orders in a Restaurant |
Medium |
Solution Here |
1423 |
Maximum Points You Can Obtain from Cards |
Medium |
Solution Here |
1424 |
Diagonal Traverse II |
Medium |
Solution Here |
1449 |
Form Largest Integer With Digits That Add up to Target |
Hard |
Solution Here |
1437 |
Check If All 1’s Are at Least Length K Places Away |
Easy |
Solution Here |
1438 |
Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit |
Medium |
Solution Here |
1439 |
Find the Kth Smallest Sum of a Matrix With Sorted Rows |
Hard |
Solution Here |
1441 |
Build an Array With Stack Operations |
Medium |
Solution Here |
1442 |
Count Triplets That Can Form Two Arrays of Equal XOR |
Medium |
Solution Here |
1444 |
Number of Ways of Cutting a Pizza |
Hard |
Solution Here |
1460 |
Make Two Arrays Equal by Reversing Sub-arrays |
Easy |
Solution Here |
1463 |
Cherry Pickup II |
Hard |
Solution Here |
1450 |
Number of Students Doing Homework at a Given Time |
Easy |
Solution Here |
1452 |
People Whose List of Favorite Companies Is Not a Subset of Another List |
Medium |
Solution Here |
1453 |
Maximum Number of Darts Inside of a Circular Dartboard |
Hard |
Solution Here |
1458 |
Max Dot Product of Two Subsequences |
Hard |
Solution Here |
1475 |
Final Prices With a Special Discount in a Shop |
Easy |
Solution Here |
1478 |
Allocate Mailboxes |
Hard |
Solution Here |
1476 |
Subrectangle Queries |
Medium |
Solution Here |
1477 |
Find Two Non-overlapping Sub-arrays Each With Target Sum |
Medium |
Solution Here |
1464 |
Maximum Product of Two Elements in an Array |
Easy |
Solution Here |
1465 |
Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts |
Medium |
Solution Here |
1470 |
Shuffle the Array |
Easy |
Solution Here |
1471 |
The k Strongest Values in an Array |
Medium |
Solution Here |
1472 |
Design Browser History |
Medium |
Solution Here |
1473 |
Paint House III |
Hard |
Solution Here |
1491 |
Average Salary Excluding the Minimum and Maximum Salary |
Easy |
Solution Here |
1493 |
Longest Subarray of 1’s After Deleting One Element |
Medium |
Solution Here |
1480 |
Running Sum of 1d Array |
Easy |
Solution Here |
1481 |
Least Number of Unique Integers after K Removals |
Medium |
Solution Here |
1482 |
Minimum Number of Days to Make m Bouquets |
Medium |
Solution Here |
1487 |
Making File Names Unique |
Medium |
Solution Here |
1488 |
Avoid Flood in The City |
Medium |
Solution Here |
1508 |
Range Sum of Sorted Subarray Sums |
Medium |
Solution Here |
1509 |
Minimum Difference Between Largest and Smallest Value in Three Moves |
Medium |
Solution Here |
1497 |
Check If Array Pairs Are Divisible by k |
Medium |
Solution Here |
1498 |
Number of Subsequences That Satisfy the Given Sum Condition |
Medium |
Solution Here |
1499 |
Max Value of Equation |
Hard |
Solution Here |
1502 |
Can Make Arithmetic Progression From Sequence |
Easy |
Solution Here |
1503 |
Last Moment Before All Ants Fall Out of a Plank |
Medium |
Solution Here |
1504 |
Count Submatrices With All Ones |
Medium |
Solution Here |
1524 |
Number of Sub-arrays With Odd Sum |
Medium |
Solution Here |
1526 |
Minimum Number of Increments on Subarrays to Form a Target Array |
Hard |
Solution Here |
1512 |
Number of Good Pairs |
Easy |
Solution Here |
1521 |
Find a Value of a Mysterious Function Closest to Target |
Hard |
Solution Here |
1539 |
Kth Missing Positive Number |
Easy |
Solution Here |
1546 |
Maximum Number of Non-Overlapping Subarrays With Sum Equals Target |
Medium |
Solution Here |
1528 |
Shuffle String |
Easy |
Solution Here |
1534 |
Count Good Triplets |
Easy |
Solution Here |
1535 |
Find the Winner of an Array Game |
Medium |
Solution Here |
1536 |
Minimum Swaps to Arrange a Binary Grid |
Medium |
Solution Here |
1537 |
Get the Maximum Score |
Hard |
Solution Here |
1558 |
Minimum Numbers of Function Calls to Make Target Array |
Medium |
Solution Here |
1559 |
Detect Cycles in 2D Grid |
Medium |
Solution Here |
1547 |
Minimum Cost to Cut a Stick |
Hard |
Solution Here |
1533 |
Find the Index of the Large Integer |
Medium |
Solution Here |
1552 |
Magnetic Force Between Two Balls |
Medium |
Solution Here |
1572 |
Matrix Diagonal Sum |
Easy |
Solution Here |
1574 |
Shortest Subarray to be Removed to Make Array Sorted |
Medium |
Solution Here |
1575 |
Count All Possible Routes |
Hard |
Solution Here |
1538 |
Guess the Majority in a Hidden Array |
Medium |
Solution Here |
1560 |
Most Visited Sector in a Circular Track |
Easy |
Solution Here |
1561 |
Maximum Number of Coins You Can Get |
Medium |
Solution Here |
1562 |
Find Latest Group of Size M |
Medium |
Solution Here |
1563 |
Stone Game V |
Hard |
Solution Here |
1566 |
Detect Pattern of Length M Repeated K or More Times |
Easy |
Solution Here |
1567 |
Maximum Length of Subarray With Positive Product |
Medium |
Solution Here |
1568 |
Minimum Number of Days to Disconnect Island |
Hard |
Solution Here |
1569 |
Number of Ways to Reorder Array to Get Same BST |
Hard |
Solution Here |
1588 |
Sum of All Odd Length Subarrays |
Easy |
Solution Here |
1590 |
Make Sum Divisible by P |
Medium |
Solution Here |
1589 |
Maximum Sum Obtained of Any Permutation |
Medium |
Solution Here |
1591 |
Strange Printer II |
Hard |
Solution Here |
1577 |
Number of Ways Where Square of Number Is Equal to Product of Two Numbers |
Medium |
Solution Here |
1578 |
Minimum Time to Make Rope Colorful |
Medium |
Solution Here |
1564 |
Put Boxes Into the Warehouse I |
Medium |
Solution Here |
1582 |
Special Positions in a Binary Matrix |
Easy |
Solution Here |
1583 |
Count Unhappy Friends |
Medium |
Solution Here |
1584 |
Min Cost to Connect All Points |
Medium |
Solution Here |
1604 |
Alert Using Same Key-Card Three or More Times in a One Hour Period |
Medium |
Solution Here |
1606 |
Find Servers That Handled Most Number of Requests |
Hard |
Solution Here |
1605 |
Find Valid Matrix Given Row and Column Sums |
Medium |
Solution Here |
1570 |
Dot Product of Two Sparse Vectors |
Medium |
Solution Here |
1594 |
Maximum Non Negative Product in a Matrix |
Medium |
Solution Here |
1595 |
Minimum Cost to Connect Two Groups of Points |
Hard |
Solution Here |
1580 |
Put Boxes Into the Warehouse II |
Medium |
Solution Here |
1598 |
Crawler Log Folder |
Easy |
Solution Here |
1599 |
Maximum Profit of Operating a Centennial Wheel |
Medium |
Solution Here |
1601 |
Maximum Number of Achievable Transfer Requests |
Hard |
Solution Here |
1620 |
Coordinate With Maximum Network Quality |
Medium |
Solution Here |
1728 |
Cat and Mouse II |
Hard |
Solution Here |
1608 |
Special Array With X Elements Greater Than or Equal X |
Easy |
Solution Here |
1610 |
Maximum Number of Visible Points |
Hard |
Solution Here |
1636 |
Sort Array by Increasing Frequency |
Easy |
Solution Here |
1637 |
Widest Vertical Area Between Two Points Containing No Points |
Medium |
Solution Here |
1639 |
Number of Ways to Form a Target String Given a Dictionary |
Hard |
Solution Here |
1626 |
Best Team With No Conflicts |
Medium |
Solution Here |
1629 |
Slowest Key |
Easy |
Solution Here |
1630 |
Arithmetic Subarrays |
Medium |
Solution Here |
1631 |
Path With Minimum Effort |
Medium |
Solution Here |
1652 |
Defuse the Bomb |
Easy |
Solution Here |
1654 |
Minimum Jumps to Reach Home |
Medium |
Solution Here |
1655 |
Distribute Repeating Integers |
Hard |
Solution Here |
1640 |
Check Array Formation Through Concatenation |
Easy |
Solution Here |
1642 |
Furthest Building You Can Reach |
Medium |
Solution Here |
1671 |
Minimum Number of Removals to Make Mountain Array |
Hard |
Solution Here |
1670 |
Design Front Middle Back Queue |
Medium |
Solution Here |
1646 |
Get Maximum in Generated Array |
Easy |
Solution Here |
1648 |
Sell Diminishing-Valued Colored Balls |
Medium |
Solution Here |
1649 |
Create Sorted Array through Instructions |
Hard |
Solution Here |
1656 |
Design an Ordered Stream |
Easy |
Solution Here |
1658 |
Minimum Operations to Reduce X to Zero |
Medium |
Solution Here |
1662 |
Check If Two String Arrays are Equivalent |
Easy |
Solution Here |
1664 |
Ways to Make a Fair Array |
Medium |
Solution Here |
1665 |
Minimum Initial Energy to Finish Tasks |
Hard |
Solution Here |
1684 |
Count the Number of Consistent Strings |
Easy |
Solution Here |
1685 |
Sum of Absolute Differences in a Sorted Array |
Medium |
Solution Here |
1686 |
Stone Game VI |
Medium |
Solution Here |
1687 |
Delivering Boxes from Storage to Ports |
Hard |
Solution Here |
1672 |
Richest Customer Wealth |
Easy |
Solution Here |
1673 |
Find the Most Competitive Subsequence |
Medium |
Solution Here |
1674 |
Minimum Moves to Make Array Complementary |
Medium |
Solution Here |
1675 |
Minimize Deviation in Array |
Hard |
Solution Here |
1679 |
Max Number of K-Sum Pairs |
Medium |
Solution Here |
1681 |
Minimum Incompatibility |
Hard |
Solution Here |
1700 |
Number of Students Unable to Eat Lunch |
Easy |
Solution Here |
1701 |
Average Waiting Time |
Medium |
Solution Here |
1703 |
Minimum Adjacent Swaps for K Consecutive Ones |
Hard |
Solution Here |
1690 |
Stone Game VII |
Medium |
Solution Here |
1714 |
Sum Of Special Evenly-Spaced Elements In Array |
Hard |
Solution Here |
1695 |
Maximum Erasure Value |
Medium |
Solution Here |
1696 |
Jump Game VI |
Medium |
Solution Here |
1697 |
Checking Existence of Edge Length Limited Paths |
Hard |
Solution Here |
1718 |
Construct the Lexicographically Largest Valid Sequence |
Medium |
Solution Here |
1705 |
Maximum Number of Eaten Apples |
Medium |
Solution Here |
1723 |
Find Minimum Time to Finish All Jobs |
Hard |
Solution Here |
1707 |
Maximum XOR With an Element From Array |
Hard |
Solution Here |
1710 |
Maximum Units on a Truck |
Easy |
Solution Here |
1711 |
Count Good Meals |
Medium |
Solution Here |
1712 |
Ways to Split Array Into Three Subarrays |
Medium |
Solution Here |
1713 |
Minimum Operations to Make a Subsequence |
Hard |
Solution Here |
1732 |
Find the Highest Altitude |
Easy |
Solution Here |
1733 |
Minimum Number of People to Teach |
Medium |
Solution Here |
1734 |
Decode XORed Permutation |
Medium |
Solution Here |
1735 |
Count Ways to Make Array With Product |
Hard |
Solution Here |
1720 |
Decode XORed Array |
Easy |
Solution Here |
1722 |
Minimize Hamming Distance After Swap Operations |
Medium |
Solution Here |
1725 |
Number Of Rectangles That Can Form The Largest Square |
Easy |
Solution Here |
1727 |
Largest Submatrix With Rearrangements |
Medium |
Solution Here |
1708 |
Largest Subarray Length K |
Easy |
Solution Here |
1748 |
Sum of Unique Elements |
Easy |
Solution Here |
1749 |
Maximum Absolute Sum of Any Subarray |
Medium |
Solution Here |
1751 |
Maximum Number of Events That Can Be Attended II |
Hard |
Solution Here |
1738 |
Find Kth Largest XOR Coordinate Value |
Medium |
Solution Here |
1743 |
Restore the Array From Adjacent Pairs |
Medium |
Solution Here |
1744 |
Can You Eat Your Favorite Candy on Your Favorite Day? |
Medium |
Solution Here |
1764 |
Form Array by Concatenating Subarrays of Another Array |
Medium |
Solution Here |
1765 |
Map of Highest Peak |
Medium |
Solution Here |
1752 |
Check if Array Is Sorted and Rotated |
Easy |
Solution Here |
1755 |
Closest Subsequence Sum |
Hard |
Solution Here |
1760 |
Minimum Limit of Balls in a Bag |
Medium |
Solution Here |
1779 |
Find Nearest Point That Has the Same X or Y Coordinate |
Easy |
Solution Here |
1746 |
Maximum Subarray Sum After One Operation |
Medium |
Solution Here |
1769 |
Minimum Number of Operations to Move All Balls to Each Box |
Medium |
Solution Here |
1770 |
Maximum Score from Performing Multiplication Operations |
Medium |
Solution Here |
1773 |
Count Items Matching a Rule |
Easy |
Solution Here |
1774 |
Closest Dessert Cost |
Medium |
Solution Here |
1775 |
Equal Sum Arrays With Minimum Number of Operations |
Medium |
Solution Here |
1776 |
Car Fleet II |
Hard |
Solution Here |
1756 |
Design Most Recently Used Queue |
Medium |
Solution Here |
1799 |
Maximize Score After N Operations |
Hard |
Solution Here |
1803 |
Count Pairs With XOR in a Range |
Hard |
Solution Here |
1762 |
Buildings With an Ocean View |
Medium |
Solution Here |
1785 |
Minimum Elements to Add to Form a Given Sum |
Medium |
Solution Here |
1787 |
Make the XOR of All Segments Equal to Zero |
Hard |
Solution Here |
1792 |
Maximum Average Pass Ratio |
Medium |
Solution Here |
1793 |
Maximum Score of a Good Subarray |
Hard |
Solution Here |
1772 |
Sort Features by Popularity |
Medium |
Solution Here |
1813 |
Sentence Similarity III |
Medium |
Solution Here |
1815 |
Maximum Number of Groups Getting Fresh Donuts |
Hard |
Solution Here |
1814 |
Count Nice Pairs in an Array |
Medium |
Solution Here |
1800 |
Maximum Ascending Subarray Sum |
Easy |
Solution Here |
1801 |
Number of Orders in the Backlog |
Medium |
Solution Here |
1798 |
Maximum Number of Consecutive Values You Can Make |
Medium |
Solution Here |
1807 |
Evaluate the Bracket Pairs of a String |
Medium |
Solution Here |
1806 |
Minimum Number of Operations to Reinitialize a Permutation |
Medium |
Solution Here |
1788 |
Maximize the Beauty of the Garden |
Hard |
Solution Here |
1827 |
Minimum Operations to Make the Array Increasing |
Easy |
Solution Here |
1828 |
Queries on Number of Points Inside a Circle |
Medium |
Solution Here |
1829 |
Maximum XOR for Each Query |
Medium |
Solution Here |
1816 |
Truncate Sentence |
Easy |
Solution Here |
1817 |
Finding the Users Active Minutes |
Medium |
Solution Here |
1818 |
Minimum Absolute Sum Difference |
Medium |
Solution Here |
1819 |
Number of Different Subsequences GCDs |
Hard |
Solution Here |
1822 |
Sign of the Product of an Array |
Easy |
Solution Here |
1823 |
Find the Winner of the Circular Game |
Medium |
Solution Here |
1824 |
Minimum Sideway Jumps |
Medium |
Solution Here |
1846 |
Maximum Element After Decreasing and Rearranging |
Medium |
Solution Here |
1847 |
Closest Room |
Hard |
Solution Here |
1833 |
Maximum Ice Cream Bars |
Medium |
Solution Here |
1834 |
Single-Threaded CPU |
Medium |
Solution Here |
1835 |
Find XOR Sum of All Pairs Bitwise AND |
Hard |
Solution Here |
1838 |
Frequency of the Most Frequent Element |
Medium |
Solution Here |
1840 |
Maximum Building Height |
Hard |
Solution Here |
1820 |
Maximum Number of Accepted Invitations |
Medium |
Solution Here |
1861 |
Rotating the Box |
Medium |
Solution Here |
1848 |
Minimum Distance to the Target Element |
Easy |
Solution Here |
1851 |
Minimum Interval to Include Each Query |
Hard |
Solution Here |
1989 |
Maximum Number of People That Can Be Caught in Tag |
Medium |
Solution Here |
1826 |
Faulty Sensor |
Easy |
Solution Here |
1854 |
Maximum Population Year |
Easy |
Solution Here |
1855 |
Maximum Distance Between a Pair of Values |
Medium |
Solution Here |
1856 |
Maximum Subarray Min-Product |
Medium |
Solution Here |
1877 |
Minimize Maximum Pair Sum in Array |
Medium |
Solution Here |
1879 |
Minimum XOR Sum of Two Arrays |
Hard |
Solution Here |
1878 |
Get Biggest Three Rhombus Sums in a Grid |
Medium |
Solution Here |
1863 |
Sum of All Subset XOR Totals |
Easy |
Solution Here |
1865 |
Finding Pairs With a Certain Sum |
Medium |
Solution Here |
1870 |
Minimum Speed to Arrive on Time |
Medium |
Solution Here |
1872 |
Stone Game VIII |
Hard |
Solution Here |
1852 |
Distinct Numbers in Each Subarray |
Medium |
Solution Here |
1893 |
Check if All the Integers in a Range Are Covered |
Easy |
Solution Here |
1894 |
Find the Student that Will Replace the Chalk |
Medium |
Solution Here |
1882 |
Process Tasks Using Servers |
Medium |
Solution Here |
1883 |
Minimum Skips to Arrive at Meeting On Time |
Hard |
Solution Here |
1886 |
Determine Whether Matrix Can Be Obtained By Rotation |
Easy |
Solution Here |
1887 |
Reduction Operations to Make the Array Elements Equal |
Medium |
Solution Here |
1889 |
Minimum Space Wasted From Packaging |
Hard |
Solution Here |
1868 |
Product of Two Run-Length Encoded Arrays |
Medium |
Solution Here |
1909 |
Remove One Element to Make the Array Strictly Increasing |
Easy |
Solution Here |
1911 |
Maximum Alternating Subsequence Sum |
Medium |
Solution Here |
1912 |
Design Movie Rental System |
Hard |
Solution Here |
1899 |
Merge Triplets to Form Target Triplet |
Medium |
Solution Here |
1898 |
Maximum Number of Removable Characters |
Medium |
Solution Here |
1874 |
Minimize Product Sum of Two Arrays |
Medium |
Solution Here |
1906 |
Minimum Absolute Difference Queries |
Medium |
Solution Here |
1905 |
Count Sub Islands |
Medium |
Solution Here |
1885 |
Count Pairs in Two Arrays |
Medium |
Solution Here |
1926 |
Nearest Exit from Entrance in Maze |
Medium |
Solution Here |
1913 |
Maximum Product Difference Between Two Pairs |
Easy |
Solution Here |
1914 |
Cyclically Rotating a Grid |
Medium |
Solution Here |
1891 |
Cutting Ribbons |
Medium |
Solution Here |
1901 |
Find a Peak Element II |
Medium |
Solution Here |
1920 |
Build Array from Permutation |
Easy |
Solution Here |
1921 |
Eliminate Maximum Number of Monsters |
Medium |
Solution Here |
1923 |
Longest Common Subpath |
Hard |
Solution Here |
1942 |
The Number of the Smallest Unoccupied Chair |
Medium |
Solution Here |
1943 |
Describe the Painting |
Medium |
Solution Here |
2297 |
Jump Game VIII |
Medium |
Solution Here |
1929 |
Concatenation of Array |
Easy |
Solution Here |
1908 |
Game of Nim |
Medium |
Solution Here |
2307 |
Check for Contradictions in Equations |
Hard |
Solution Here |
1936 |
Add Minimum Number of Rungs |
Medium |
Solution Here |
1937 |
Maximum Number of Points with Cost |
Medium |
Solution Here |
1938 |
Maximum Genetic Difference Query |
Hard |
Solution Here |
1918 |
Kth Smallest Subarray Sum |
Medium |
Solution Here |
1940 |
Longest Common Subsequence Between Sorted Arrays |
Medium |
Solution Here |
1950 |
Maximum of Minimum Values in All Subarrays |
Medium |
Solution Here |
1956 |
Minimum Time For K Virus Variants to Spread |
Hard |
Solution Here |
1924 |
Erect the Fence II |
Hard |
Solution Here |
2021 |
Brightest Position on Street |
Medium |
Solution Here |
1946 |
Largest Number After Mutating Substring |
Medium |
Solution Here |
1947 |
Maximum Compatibility Score Sum |
Medium |
Solution Here |
1948 |
Delete Duplicate Folders in System |
Hard |
Solution Here |
1958 |
Check if Move is Legal |
Medium |
Solution Here |
1959 |
Minimum Total Space Wasted With K Resizing Operations |
Medium |
Solution Here |
2052 |
Minimum Cost to Separate Sentence Into Rows |
Medium |
Solution Here |
1953 |
Maximum Number of Weeks for Which You Can Work |
Medium |
Solution Here |
1968 |
Array With Elements Not Equal to Average of Neighbors |
Medium |
Solution Here |
1955 |
Count Number of Special Subsequences |
Hard |
Solution Here |
1975 |
Maximum Matrix Sum |
Medium |
Solution Here |
1961 |
Check If String Is a Prefix of Array |
Easy |
Solution Here |
1962 |
Remove Stones to Minimize the Total |
Medium |
Solution Here |
1964 |
Find the Longest Valid Obstacle Course at Each Position |
Hard |
Solution Here |
1970 |
Last Day Where You Can Still Cross |
Hard |
Solution Here |
1991 |
Find the Middle Index in Array |
Easy |
Solution Here |
1992 |
Find All Groups of Farmland |
Medium |
Solution Here |
1994 |
The Number of Good Subsets |
Hard |
Solution Here |
1979 |
Find Greatest Common Divisor of Array |
Easy |
Solution Here |
1980 |
Find Unique Binary String |
Medium |
Solution Here |
1981 |
Minimize the Difference Between Target and Chosen Elements |
Medium |
Solution Here |
1982 |
Find Array Given Subset Sums |
Hard |
Solution Here |
1966 |
Binary Searchable Numbers in an Unsorted Array |
Medium |
Solution Here |
1984 |
Minimum Difference Between Highest and Lowest of K Scores |
Easy |
Solution Here |
1985 |
Find the Kth Largest Integer in the Array |
Medium |
Solution Here |
1986 |
Minimum Number of Work Sessions to Finish the Tasks |
Medium |
Solution Here |
2006 |
Count Number of Pairs With Absolute Difference K |
Easy |
Solution Here |
2007 |
Find Original Array From Doubled Array |
Medium |
Solution Here |
2008 |
Maximum Earnings From Taxi |
Medium |
Solution Here |
2009 |
Minimum Number of Operations to Make Array Continuous |
Hard |
Solution Here |
1995 |
Count Special Quadruplets |
Easy |
Solution Here |
1996 |
The Number of Weak Characters in the Game |
Medium |
Solution Here |
1997 |
First Day Where You Have Been in All the Rooms |
Medium |
Solution Here |
1998 |
GCD Sort of an Array |
Hard |
Solution Here |
2001 |
Number of Pairs of Interchangeable Rectangles |
Medium |
Solution Here |
2022 |
Convert 1D Array Into 2D Array |
Easy |
Solution Here |
2023 |
Number of Pairs of Strings With Concatenation Equal to Target |
Medium |
Solution Here |
2025 |
Maximum Number of Ways to Partition an Array |
Hard |
Solution Here |
2011 |
Final Value of Variable After Performing Operations |
Easy |
Solution Here |
2012 |
Sum of Beauty in the Array |
Medium |
Solution Here |
2013 |
Detect Squares |
Medium |
Solution Here |
2015 |
Average Height of Buildings in Each Segment |
Medium |
Solution Here |
2016 |
Maximum Difference Between Increasing Elements |
Easy |
Solution Here |
2017 |
Grid Game |
Medium |
Solution Here |
2018 |
Check if Word Can Be Placed In Crossword |
Medium |
Solution Here |
2019 |
The Score of Students Solving Math Expression |
Hard |
Solution Here |
2037 |
Minimum Number of Moves to Seat Everyone |
Easy |
Solution Here |
2040 |
Kth Smallest Product of Two Sorted Arrays |
Hard |
Solution Here |
2039 |
The Time When the Network Becomes Idle |
Medium |
Solution Here |
2028 |
Find Missing Observations |
Medium |
Solution Here |
2029 |
Stone Game IX |
Medium |
Solution Here |
2032 |
Two Out of Three |
Easy |
Solution Here |
2033 |
Minimum Operations to Make a Uni-Value Grid |
Medium |
Solution Here |
2035 |
Partition Array Into Two Arrays to Minimize Sum Difference |
Hard |
Solution Here |
2053 |
Kth Distinct String in an Array |
Easy |
Solution Here |
2054 |
Two Best Non-Overlapping Events |
Medium |
Solution Here |
2055 |
Plates Between Candles |
Medium |
Solution Here |
2056 |
Number of Valid Move Combinations On Chessboard |
Hard |
Solution Here |
2043 |
Simple Bank System |
Medium |
Solution Here |
2044 |
Count Number of Maximum Bitwise-OR Subsets |
Medium |
Solution Here |
2049 |
Count Nodes With the Highest Score |
Medium |
Solution Here |
2070 |
Most Beautiful Item for Each Query |
Medium |
Solution Here |
2071 |
Maximum Number of Tasks You Can Assign |
Hard |
Solution Here |
2057 |
Smallest Index With Equal Value |
Easy |
Solution Here |
2059 |
Minimum Operations to Convert Number |
Medium |
Solution Here |
2064 |
Minimized Maximum of Products Distributed to Any Store |
Medium |
Solution Here |
2065 |
Maximum Path Quality of a Graph |
Hard |
Solution Here |
2085 |
Count Common Words With One Occurrence |
Easy |
Solution Here |
2087 |
Minimum Cost Homecoming of a Robot in a Grid |
Medium |
Solution Here |
2088 |
Count Fertile Pyramids in a Land |
Hard |
Solution Here |
2073 |
Time Needed to Buy Tickets |
Easy |
Solution Here |
2078 |
Two Furthest Houses With Different Colors |
Easy |
Solution Here |
2132 |
Stamping the Grid |
Hard |
Solution Here |
2061 |
Number of Spaces Cleaning Robot Cleaned |
Medium |
Solution Here |
2099 |
Find Subsequence of Length K With the Largest Sum |
Easy |
Solution Here |
2100 |
Find Good Days to Rob the Bank |
Medium |
Solution Here |
2101 |
Detonate the Maximum Bombs |
Medium |
Solution Here |
2089 |
Find Target Indices After Sorting Array |
Easy |
Solution Here |
2090 |
K Radius Subarray Averages |
Medium |
Solution Here |
2091 |
Removing Minimum and Maximum From Array |
Medium |
Solution Here |
2094 |
Finding 3-Digit Even Numbers |
Easy |
Solution Here |
2114 |
Maximum Number of Words Found in Sentences |
Easy |
Solution Here |
2115 |
Find All Possible Recipes from Given Supplies |
Medium |
Solution Here |
2104 |
Sum of Subarray Ranges |
Medium |
Solution Here |
2105 |
Watering Plants II |
Medium |
Solution Here |
2106 |
Maximum Fruits Harvested After at Most K Steps |
Hard |
Solution Here |
2108 |
Find First Palindromic String in the Array |
Easy |
Solution Here |
2109 |
Adding Spaces to a String |
Medium |
Solution Here |
2110 |
Number of Smooth Descent Periods of a Stock |
Medium |
Solution Here |
2111 |
Minimum Operations to Make the Array K-Increasing |
Hard |
Solution Here |
2131 |
Longest Palindrome by Concatenating Two Letter Words |
Medium |
Solution Here |
2121 |
Intervals Between Identical Elements |
Medium |
Solution Here |
2122 |
Recover the Original Array |
Hard |
Solution Here |
2098 |
Subsequence of Size K With the Largest Even Sum |
Medium |
Solution Here |
2125 |
Number of Laser Beams in a Bank |
Medium |
Solution Here |
2126 |
Destroying Asteroids |
Medium |
Solution Here |
2107 |
Number of Unique Flavors After Sharing K Candies |
Medium |
Solution Here |
2144 |
Minimum Cost of Buying Candies With Discount |
Easy |
Solution Here |
2145 |
Count the Hidden Sequences |
Medium |
Solution Here |
2146 |
K Highest Ranked Items Within a Price Range |
Medium |
Solution Here |
2133 |
Check if Every Row and Column Contains All Numbers |
Easy |
Solution Here |
2134 |
Minimum Swaps to Group All 1’s Together II |
Medium |
Solution Here |
2135 |
Count Words Obtained After Adding a Letter |
Medium |
Solution Here |
2136 |
Earliest Possible Day of Full Bloom |
Hard |
Solution Here |
2113 |
Elements in Array After Removing and Replacing Elements |
Medium |
Solution Here |
2123 |
Minimum Operations to Remove Adjacent Ones in Matrix |
Hard |
Solution Here |
2155 |
All Divisions With the Highest Score of a Binary Array |
Medium |
Solution Here |
2140 |
Solving Questions With Brainpower |
Medium |
Solution Here |
2141 |
Maximum Running Time of N Computers |
Hard |
Solution Here |
2161 |
Partition Array According to Given Pivot |
Medium |
Solution Here |
2163 |
Minimum Difference in Sums After Removal of Elements |
Hard |
Solution Here |
2128 |
Remove All Ones With Row and Column Flips |
Medium |
Solution Here |
2148 |
Count Elements With Strictly Smaller and Greater Elements |
Easy |
Solution Here |
2150 |
Find All Lonely Numbers in the Array |
Medium |
Solution Here |
2149 |
Rearrange Array Elements by Sign |
Medium |
Solution Here |
2151 |
Maximum Good People Based on Statements |
Hard |
Solution Here |
2137 |
Pour Water Between Buckets to Make Water Levels Equal |
Medium |
Solution Here |
2154 |
Keep Multiplying Found Values by Two |
Easy |
Solution Here |
2176 |
Count Equal and Divisible Pairs in an Array |
Easy |
Solution Here |
2179 |
Count Good Triplets in an Array |
Hard |
Solution Here |
2143 |
Choose Numbers From Two Arrays in Range |
Hard |
Solution Here |
2164 |
Sort Even and Odd Indices Independently |
Easy |
Solution Here |
2166 |
Design Bitset |
Medium |
Solution Here |
2152 |
Minimum Number of Lines to Cover Points |
Medium |
Solution Here |
2170 |
Minimum Operations to Make the Array Alternating |
Medium |
Solution Here |
2171 |
Removing Minimum Number of Magic Beans |
Medium |
Solution Here |
2172 |
Maximum AND Sum of Array |
Hard |
Solution Here |
2185 |
Counting Words With a Given Prefix |
Easy |
Solution Here |
2187 |
Minimum Time to Complete Trips |
Medium |
Solution Here |
2188 |
Minimum Time to Finish the Race |
Hard |
Solution Here |
2158 |
Amount of New Area Painted Each Day |
Hard |
Solution Here |
2183 |
Count Array Pairs Divisible by K |
Hard |
Solution Here |
2195 |
Append K Integers With Minimal Sum |
Medium |
Solution Here |
2196 |
Create Binary Tree From Descriptions |
Medium |
Solution Here |
2197 |
Replace Non-Coprime Numbers in Array |
Hard |
Solution Here |
2206 |
Divide Array Into Equal Pairs |
Easy |
Solution Here |
2208 |
Minimum Operations to Halve Array Sum |
Medium |
Solution Here |
2190 |
Most Frequent Number Following Key In an Array |
Easy |
Solution Here |
2174 |
Remove All Ones With Row and Column Flips II |
Medium |
Solution Here |
2210 |
Count Hills and Valleys in an Array |
Easy |
Solution Here |
2212 |
Maximum Points in an Archery Competition |
Medium |
Solution Here |
2213 |
Longest Substring of One Repeating Character |
Hard |
Solution Here |
2200 |
Find All K-Distant Indices in an Array |
Easy |
Solution Here |
2184 |
Number of Ways to Build Sturdy Brick Wall |
Medium |
Solution Here |
2221 |
Find Triangular Sum of an Array |
Medium |
Solution Here |
2233 |
Maximum Product After K Increments |
Medium |
Solution Here |
2234 |
Maximum Total Beauty of the Gardens |
Hard |
Solution Here |
2248 |
Intersection of Multiple Arrays |
Easy |
Solution Here |
2249 |
Count Lattice Points Inside a Circle |
Medium |
Solution Here |
2250 |
Count Number of Rectangles Containing Each Point |
Medium |
Solution Here |
2251 |
Number of Flowers in Full Bloom |
Hard |
Solution Here |
2260 |
Minimum Consecutive Cards to Pick Up |
Medium |
Solution Here |
2261 |
K Divisible Elements Subarrays |
Medium |
Solution Here |
2255 |
Count Prefixes of a Given String |
Easy |
Solution Here |
2256 |
Minimum Average Difference |
Medium |
Solution Here |
2257 |
Count Unguarded Cells in the Grid |
Medium |
Solution Here |
2258 |
Escape the Spreading Fire |
Hard |
Solution Here |
2267 |
Check if There Is a Valid Parentheses String Path |
Hard |
Solution Here |
2239 |
Find Closest Number to Zero |
Easy |
Solution Here |
2241 |
Design an ATM Machine |
Medium |
Solution Here |
2242 |
Maximum Score of a Node Sequence |
Hard |
Solution Here |
2214 |
Minimum Health to Beat Game |
Medium |
Solution Here |
2274 |
Maximum Consecutive Floors Without Special Floors |
Medium |
Solution Here |
2275 |
Largest Combination With Bitwise AND Greater Than Zero |
Medium |
Solution Here |
2270 |
Number of Ways to Split Array |
Medium |
Solution Here |
2271 |
Maximum White Tiles Covered by a Carpet |
Medium |
Solution Here |
2272 |
Substring With Largest Variance |
Hard |
Solution Here |
2244 |
Minimum Rounds to Complete All Tasks |
Medium |
Solution Here |
2245 |
Maximum Trailing Zeros in a Cornered Path |
Medium |
Solution Here |
2246 |
Longest Path With Different Adjacent Characters |
Hard |
Solution Here |
2279 |
Maximum Bags With Full Capacity of Rocks |
Medium |
Solution Here |
2280 |
Minimum Lines to Represent a Line Chart |
Medium |
Solution Here |
2281 |
Sum of Total Strength of Wizards |
Hard |
Solution Here |
2219 |
Maximum Sum Score of Array |
Medium |
Solution Here |
2289 |
Steps to Make Array Non-decreasing |
Medium |
Solution Here |
2290 |
Minimum Obstacle Removal to Reach Corner |
Hard |
Solution Here |
2284 |
Sender With Largest Word Count |
Medium |
Solution Here |
2237 |
Count Positions on Street With Required Brightness |
Medium |
Solution Here |
2293 |
Min Max Game |
Easy |
Solution Here |
2294 |
Partition Array Such That Maximum Difference Is K |
Medium |
Solution Here |
2295 |
Replace Elements in an Array |
Medium |
Solution Here |
2306 |
Naming a Company |
Hard |
Solution Here |
2300 |
Successful Pairs of Spells and Potions |
Medium |
Solution Here |
2301 |
Match Substring After Replacement |
Hard |
Solution Here |
2302 |
Count Subarrays With Score Less Than K |
Hard |
Solution Here |
2319 |
Check if Matrix Is X-Matrix |
Easy |
Solution Here |
2322 |
Minimum Score After Removals on a Tree |
Hard |
Solution Here |
2317 |
Maximum XOR After Operations |
Medium |
Solution Here |
2268 |
Minimum Number of Keypresses |
Medium |
Solution Here |
2328 |
Number of Increasing Paths in a Grid |
Hard |
Solution Here |
2326 |
Spiral Matrix IV |
Medium |
Solution Here |
2335 |
Minimum Amount of Time to Fill Cups |
Easy |
Solution Here |
2332 |
The Latest Time to Catch a Bus |
Medium |
Solution Here |
2333 |
Minimum Sum of Squared Difference |
Medium |
Solution Here |
2334 |
Subarray With Elements Greater Than Varying Threshold |
Hard |
Solution Here |
2277 |
Closest Node to Path in Tree |
Hard |
Solution Here |
2341 |
Maximum Number of Pairs in Array |
Easy |
Solution Here |
2343 |
Query Kth Smallest Trimmed Number |
Medium |
Solution Here |
2344 |
Minimum Deletions to Make Array Divisible |
Hard |
Solution Here |
2282 |
Number of People That Can Be Seen in a Grid |
Medium |
Solution Here |
2291 |
Maximum Profit From Trading Stocks |
Medium |
Solution Here |
2352 |
Equal Row and Column Pairs |
Medium |
Solution Here |
2354 |
Number of Excellent Pairs |
Hard |
Solution Here |
2348 |
Number of Zero-Filled Subarrays |
Medium |
Solution Here |
2347 |
Best Poker Hand |
Easy |
Solution Here |
2350 |
Shortest Impossible Sequence of Rolls |
Hard |
Solution Here |
2357 |
Make Array Zero by Subtracting Equal Amounts |
Easy |
Solution Here |
2358 |
Maximum Number of Groups Entering a Competition |
Medium |
Solution Here |
2367 |
Number of Arithmetic Triplets |
Easy |
Solution Here |
2369 |
Check if There is a Valid Partition For The Array |
Medium |
Solution Here |
2368 |
Reachable Nodes With Restrictions |
Medium |
Solution Here |
2363 |
Merge Similar Items |
Easy |
Solution Here |
2364 |
Count Number of Bad Pairs |
Medium |
Solution Here |
2366 |
Minimum Replacements to Sort the Array |
Hard |
Solution Here |
2373 |
Largest Local Values in a Matrix |
Easy |
Solution Here |
2323 |
Find Minimum Time to Finish All Jobs II |
Medium |
Solution Here |
2383 |
Minimum Hours of Training to Win a Competition |
Easy |
Solution Here |
2386 |
Find the K-Sum of an Array |
Hard |
Solution Here |
2381 |
Shifting Letters II |
Medium |
Solution Here |
2382 |
Maximum Segment Sum After Removals |
Hard |
Solution Here |
2389 |
Longest Subsequence With Limited Sum |
Easy |
Solution Here |
2391 |
Minimum Amount of Time to Collect Garbage |
Medium |
Solution Here |
2392 |
Build a Matrix With Conditions |
Hard |
Solution Here |
2342 |
Max Sum of a Pair With Equal Sum of Digits |
Medium |
Solution Here |
2340 |
Minimum Adjacent Swaps to Make a Valid Array |
Medium |
Solution Here |
2365 |
Task Scheduler II |
Medium |
Solution Here |
2345 |
Finding the Number of Visible Mountains |
Medium |
Solution Here |
2355 |
Maximum Number of Books You Can Take |
Hard |
Solution Here |
2361 |
Minimum Costs Using the Train Line |
Hard |
Solution Here |
2371 |
Minimize Maximum Value in a Grid |
Hard |
Solution Here |
2387 |
Median of a Row Wise Sorted Matrix |
Medium |
Solution Here |