907 |
* Sum of Subarray Minimums 🆕 |
15% |
Medium |
|
906 |
* Super Palindromes 🆕 |
23% |
Hard |
|
905 |
* Sort Array By Parity 🆕 |
77% |
Easy |
|
904 |
* Fruit Into Baskets 🆕 |
34% |
Medium |
|
903 |
* Valid Permutations for DI Sequence |
37% |
Hard |
|
902 |
* Numbers At Most N Given Digit Set |
24% |
Hard |
|
901 |
* Online Stock Span |
39% |
Medium |
|
900 |
* RLE Iterator |
39% |
Medium |
|
899 |
* Orderly Queue |
42% |
Hard |
|
898 |
* Bitwise ORs of Subarrays |
28% |
Medium |
|
897 |
* Increasing Order Search Tree |
56% |
Easy |
|
896 |
* Monotonic Array |
55% |
Easy |
|
895 |
* Maximum Frequency Stack |
48% |
Hard |
|
894 |
All Possible Full Binary Trees |
64% |
Medium |
|
893 |
Groups of Special-Equivalent Strings |
60% |
Easy |
|
892 |
Surface Area of 3D Shapes |
54% |
Easy |
|
891 |
Sum of Subsequence Widths |
24% |
Hard |
|
890 |
Find and Replace Pattern |
69% |
Medium |
|
889 |
Construct Binary Tree from Preorder and Postorder Traversal |
54% |
Medium |
|
888 |
Fair Candy Swap |
54% |
Easy |
|
887 |
Super Egg Drop |
22% |
Hard |
|
886 |
Possible Bipartition |
38% |
Medium |
|
885 |
Spiral Matrix III |
62% |
Medium |
|
884 |
Uncommon Words from Two Sentences |
59% |
Easy |
|
883 |
Projection Area of 3D Shapes |
65% |
Easy |
|
882 |
Reachable Nodes In Subdivided Graph |
33% |
Hard |
|
881 |
Boats to Save People |
39% |
Medium |
|
880 |
Decoded String at Index |
22% |
Medium |
|
879 |
Profitable Schemes |
31% |
Hard |
❤ |
878 |
Nth Magical Number |
22% |
Hard |
|
877 |
Stone Game |
56% |
Medium |
|
876 |
Middle of the Linked List |
63% |
Easy |
|
875 |
Koko Eating Bananas |
41% |
Medium |
|
874 |
Walking Robot Simulation |
28% |
Easy |
|
873 |
Length of Longest Fibonacci Subsequence |
41% |
Medium |
|
872 |
Leaf-Similar Trees |
61% |
Easy |
|
871 |
Minimum Number of Refueling Stops |
25% |
Hard |
|
870 |
Advantage Shuffle |
39% |
Medium |
|
869 |
Reordered Power of 2 |
47% |
Medium |
|
868 |
Binary Gap |
59% |
Easy |
|
867 |
Transpose Matrix |
64% |
Easy |
|
866 |
Prime Palindrome |
18% |
Medium |
❤ |
865 |
Smallest Subtree with all the Deepest Nodes |
51% |
Medium |
|
864 |
Shortest Path to Get All Keys |
32% |
Hard |
❤ |
863 |
All Nodes Distance K in Binary Tree |
41% |
Medium |
❤ |
862 |
Shortest Subarray with Sum at Least K |
18% |
Hard |
❤ |
861 |
Score After Flipping Matrix |
67% |
Medium |
|
860 |
Lemonade Change |
49% |
Easy |
|
859 |
Buddy Strings |
26% |
Easy |
|
858 |
Mirror Reflection |
49% |
Medium |
|
857 |
Minimum Cost to Hire K Workers |
40% |
Hard |
❤ |
856 |
Score of Parentheses |
53% |
Medium |
|
855 |
Exam Room |
30% |
Medium |
|
854 |
K-Similar Strings |
30% |
Hard |
❤ |
853 |
Car Fleet |
32% |
Medium |
|
852 |
Peak Index in a Mountain Array |
67% |
Easy |
❤ |
851 |
Loud and Rich |
44% |
Medium |
❤ |
850 |
Rectangle Area II |
42% |
Hard |
❤ |
849 |
Maximize Distance to Closest Person |
37% |
Easy |
❤ |
848 |
Shifting Letters |
36% |
Medium |
|
847 |
Shortest Path Visiting All Nodes |
42% |
Hard |
❤ |
846 |
Hand of Straights |
44% |
Medium |
❤ |
845 |
Longest Mountain in Array |
31% |
Medium |
|
844 |
Backspace String Compare |
43% |
Easy |
|
843 |
Guess the Word |
35% |
Hard |
❤ |
842 |
Split Array into Fibonacci Sequence |
33% |
Medium |
|
841 |
Keys and Rooms |
56% |
Medium |
|
840 |
Magic Squares In Grid |
34% |
Easy |
|
839 |
Similar String Groups |
33% |
Hard |
❤ |
838 |
Push Dominoes |
41% |
Medium |
❤ |
837 |
New 21 Game |
25% |
Medium |
❤ |
836 |
Rectangle Overlap |
43% |
Easy |
|
835 |
Image Overlap |
43% |
Medium |
|
834 |
Sum of Distances in Tree |
34% |
Hard |
❤ |
833 |
Find And Replace in String |
39% |
Medium |
|
832 |
Flipping an Image |
68% |
Easy |
|
831 |
Masking Personal Information |
42% |
Medium |
|
830 |
Positions of Large Groups |
46% |
Easy |
|
829 |
Consecutive Numbers Sum |
27% |
Medium |
❤ |
828 |
Unique Letter String |
34% |
Hard |
❤ |
827 |
Making A Large Island |
40% |
Hard |
❤ |
826 |
Most Profit Assigning Work |
33% |
Medium |
❤ |
825 |
Friends Of Appropriate Ages |
31% |
Medium |
|
824 |
Goat Latin |
54% |
Easy |
|
823 |
Binary Trees With Factors |
30% |
Medium |
|
822 |
Card Flipping Game |
37% |
Medium |
|
821 |
Shortest Distance to a Character |
60% |
Easy |
|
820 |
Short Encoding of Words |
43% |
Medium |
❤ |
819 |
Most Common Word |
46% |
Easy |
|
818 |
Race Car |
29% |
Hard |
❤ |
817 |
Linked List Components |
51% |
Medium |
|
816 |
Ambiguous Coordinates |
42% |
Medium |
|
815 |
Bus Routes |
34% |
Hard |
❤ |
814 |
Binary Tree Pruning |
68% |
Medium |
|
813 |
Largest Sum of Averages |
41% |
Medium |
❤ |
812 |
Largest Triangle Area |
53% |
Easy |
|
811 |
Subdomain Visit Count |
61% |
Easy |
|
810 |
Chalkboard XOR Game |
40% |
Hard |
❤ |
809 |
Expressive Words |
38% |
Medium |
|
808 |
Soup Servings |
34% |
Medium |
|
807 |
Max Increase to Keep City Skyline |
79% |
Medium |
|
806 |
Number of Lines To Write String |
61% |
Easy |
|
805 |
Split Array With Same Average |
21% |
Hard |
❤ |
804 |
Unique Morse Code Words |
71% |
Easy |
|
803 |
Bricks Falling When Hit |
23% |
Hard |
❤ |
802 |
Find Eventual Safe States |
40% |
Medium |
❤ |
801 |
Minimum Swaps To Make Sequences Increasing |
32% |
Medium |
❤ |
799 |
Champagne Tower |
30% |
Medium |
❤ |
798 |
Smallest Rotation with Highest Score |
35% |
Hard |
❤ |
797 |
All Paths From Source to Target |
67% |
Medium |
|
796 |
Rotate String |
49% |
Easy |
|
795 |
Number of Subarrays with Bounded Maximum |
41% |
Medium |
❤ |
794 |
Valid Tic-Tac-Toe State |
27% |
Medium |
|
793 |
Preimage Size of Factorial Zeroes Function |
39% |
Hard |
❤ |
792 |
Number of Matching Subsequences |
37% |
Medium |
❤ |
791 |
Custom Sort String |
59% |
Medium |
|
790 |
Domino and Tromino Tiling |
33% |
Medium |
❤ |
789 |
Escape The Ghosts |
52% |
Medium |
|
788 |
Rotated Digits |
50% |
Easy |
|
787 |
Cheapest Flights Within K Stops |
30% |
Medium |
❤ |
786 |
K-th Smallest Prime Fraction |
34% |
Hard |
❤ |
785 |
Is Graph Bipartite? |
39% |
Medium |
❤ |
784 |
Letter Case Permutation |
53% |
Easy |
❤ |
783 |
Minimum Distance Between BST Nodes |
48% |
Easy |
|
782 |
Transform to Chessboard |
37% |
Hard |
|
781 |
Rabbits in Forest |
49% |
Medium |
|
780 |
Reaching Points |
24% |
Hard |
|
779 |
K-th Symbol in Grammar |
37% |
Medium |
|
778 |
Swim in Rising Water |
44% |
Hard |
|
777 |
Swap Adjacent in LR String |
29% |
Medium |
|
775 |
Global and Local Inversions |
35% |
Medium |
|
773 |
Sliding Puzzle |
47% |
Hard |
|
771 |
Jewels and Stones |
81% |
Easy |
|
770 |
Basic Calculator IV |
44% |
Hard |
❤ |
769 |
Max Chunks To Make Sorted |
48% |
Medium |
|
768 |
Max Chunks To Make Sorted II |
43% |
Hard |
|
767 |
Reorganize String |
38% |
Medium |
|
766 |
Toeplitz Matrix |
59% |
Easy |
|
765 |
Couples Holding Hands |
48% |
Hard |
|
764 |
Largest Plus Sign |
41% |
Medium |
|
763 |
Partition Labels |
65% |
Medium |
|
762 |
Prime Number of Set Bits in Binary Representation |
56% |
Easy |
|
761 |
Special Binary String |
45% |
Hard |
|
757 |
Set Intersection Size At Least Two |
35% |
Hard |
|
756 |
Pyramid Transition Matrix |
47% |
Medium |
❤ |
754 |
Reach a Number |
29% |
Medium |
❤ |
753 |
Cracking the Safe |
41% |
Hard |
❤ |
752 |
Open the Lock |
41% |
Medium |
❤ |
749 |
Contain Virus |
40% |
Hard |
|
748 |
Shortest Completing Word |
52% |
Medium |
|
747 |
Largest Number At Least Twice of Others |
40% |
Easy |
|
746 |
Min Cost Climbing Stairs |
44% |
Easy |
|
745 |
Prefix and Suffix Search |
26% |
Hard |
|
744 |
Find Smallest Letter Greater Than Target |
42% |
Easy |
|
743 |
Network Delay Time |
37% |
Medium |
|
741 |
Cherry Pickup |
24% |
Hard |
|
740 |
Delete and Earn |
44% |
Medium |
❤ |
739 |
Daily Temperatures |
55% |
Medium |
❤ |
738 |
Monotone Increasing Digits |
41% |
Medium |
|
736 |
Parse Lisp Expression |
41% |
Hard |
❤ |
735 |
Asteroid Collision |
36% |
Medium |
|
733 |
Flood Fill |
47% |
Easy |
|
732 |
My Calendar III |
50% |
Hard |
|
731 |
My Calendar II |
39% |
Medium |
❤ |
730 |
Count Different Palindromic Subsequences |
36% |
Hard |
❤ |
729 |
My Calendar I |
43% |
Medium |
|
728 |
Self Dividing Numbers |
67% |
Easy |
|
726 |
Number of Atoms |
43% |
Hard |
❤ |
725 |
Split Linked List in Parts |
47% |
Medium |
|
724 |
Find Pivot Index |
39% |
Easy |
|
722 |
Remove Comments |
28% |
Medium |
❤ |
721 |
Accounts Merge |
35% |
Medium |
❤ |
720 |
Longest Word in Dictionary |
41% |
Easy |
|
719 |
Find K-th Smallest Pair Distance |
28% |
Hard |
❤ |
718 |
Maximum Length of Repeated Subarray |
42% |
Medium |
❤ |
717 |
1-bit and 2-bit Characters |
48% |
Easy |
|
715 |
Range Module |
31% |
Hard |
|
714 |
Best Time to Buy and Sell Stock with Transaction Fee |
47% |
Medium |
❤ |
713 |
Subarray Product Less Than K |
33% |
Medium |
❤ |
712 |
Minimum ASCII Delete Sum for Two Strings |
51% |
Medium |
❤ |
710 |
Random Pick with Blacklist |
29% |
Hard |
❤ |
709 |
To Lower Case |
74% |
Easy |
|
707 |
Design Linked List |
16% |
Easy |
❤ |
706 |
Design HashMap |
43% |
Easy |
|
705 |
Design HashSet |
36% |
Easy |
|
704 |
Binary Search |
34% |
Easy |
|
703 |
Kth Largest Element in a Stream |
34% |
Easy |
|
701 |
Insert into a Binary Search Tree |
61% |
Medium |
|
700 |
Search in a Binary Search Tree |
61% |
Easy |
|
699 |
Falling Squares |
37% |
Hard |
|
698 |
Partition to K Equal Sum Subsets |
38% |
Medium |
❤ |
697 |
Degree of an Array |
47% |
Easy |
|
696 |
Count Binary Substrings |
51% |
Easy |
|
695 |
Max Area of Island |
53% |
Easy |
❤ |
693 |
Binary Number with Alternating Bits |
56% |
Easy |
|
692 |
Top K Frequent Words |
42% |
Medium |
|
691 |
Stickers to Spell Word |
35% |
Hard |
❤ |
689 |
Maximum Sum of 3 Non-Overlapping Subarrays |
41% |
Hard |
|
688 |
Knight Probability in Chessboard |
40% |
Medium |
|
687 |
Longest Univalue Path |
32% |
Easy |
|
686 |
Repeated String Match |
31% |
Easy |
❤ |
685 |
Redundant Connection II |
28% |
Hard |
❤ |
684 |
Redundant Connection |
45% |
Medium |
|
682 |
Baseball Game |
58% |
Easy |
|
680 |
Valid Palindrome II |
32% |
Easy |
|
679 |
24 Game |
39% |
Hard |
❤ |
678 |
Valid Parenthesis String |
29% |
Medium |
❤ |
677 |
Map Sum Pairs |
50% |
Medium |
❤ |
676 |
Implement Magic Dictionary |
49% |
Medium |
|
675 |
Cut Off Trees for Golf Event |
27% |
Hard |
❤ |
674 |
Longest Continuous Increasing Subsequence |
42% |
Easy |
|
673 |
Number of Longest Increasing Subsequence |
32% |
Medium |
❤ |
672 |
Bulb Switcher II |
49% |
Medium |
|
671 |
Second Minimum Node In a Binary Tree |
42% |
Easy |
|
670 |
Maximum Swap |
38% |
Medium |
❤ |
669 |
Trim a Binary Search Tree |
58% |
Easy |
|
668 |
Kth Smallest Number in Multiplication Table |
39% |
Hard |
|
667 |
Beautiful Arrangement II |
50% |
Medium |
|
665 |
Non-decreasing Array |
19% |
Easy |
|
664 |
Strange Printer |
34% |
Hard |
❤ |
662 |
Maximum Width of Binary Tree |
38% |
Medium |
|
661 |
Image Smoother |
47% |
Easy |
|
659 |
Split Array into Consecutive Subsequences |
37% |
Medium |
❤ |
658 |
Find K Closest Elements |
34% |
Medium |
❤ |
657 |
Robot Return to Origin |
69% |
Easy |
|
655 |
Print Binary Tree |
49% |
Medium |
|
654 |
Maximum Binary Tree |
70% |
Medium |
❤ |
653 |
Two Sum IV - Input is a BST |
50% |
Easy |
|
652 |
Find Duplicate Subtrees |
39% |
Medium |
|
650 |
2 Keys Keyboard |
45% |
Medium |
|
649 |
Dota2 Senate |
36% |
Medium |
❤ |
648 |
Replace Words |
49% |
Medium |
|
647 |
Palindromic Substrings |
54% |
Medium |
❤ |
646 |
Maximum Length of Pair Chain |
47% |
Medium |
|
645 |
Set Mismatch |
39% |
Easy |
❤ |
643 |
Maximum Average Subarray I |
38% |
Easy |
|
641 |
Design Circular Deque |
49% |
Medium |
❤ |
640 |
Solve the Equation |
38% |
Medium |
|
639 |
Decode Ways II |
24% |
Hard |
|
638 |
Shopping Offers |
46% |
Medium |
❤ |
637 |
Average of Levels in Binary Tree |
56% |
Easy |
|
636 |
Exclusive Time of Functions |
45% |
Medium |
❤ |
633 |
Sum of Square Numbers |
32% |
Easy |
|
632 |
Smallest Range |
43% |
Hard |
|
630 |
Course Schedule III |
29% |
Hard |
❤ |
629 |
K Inverse Pairs Array |
27% |
Hard |
|
628 |
Maximum Product of Three Numbers |
44% |
Easy |
❤ |
623 |
Add One Row to Tree |
46% |
Medium |
|
622 |
Design Circular Queue |
36% |
Medium |
|
621 |
Task Scheduler |
42% |
Medium |
❤ |
617 |
Merge Two Binary Trees |
68% |
Easy |
|
611 |
Valid Triangle Number |
42% |
Medium |
❤ |
609 |
Find Duplicate File in System |
52% |
Medium |
|
606 |
Construct String from Binary Tree |
50% |
Easy |
|
605 |
Can Place Flowers |
30% |
Easy |
❤ |
600 |
Non-negative Integers without Consecutive Ones |
31% |
Hard |
❤ |
599 |
Minimum Index Sum of Two Lists |
46% |
Easy |
|
598 |
Range Addition II |
47% |
Easy |
|
594 |
Longest Harmonious Subsequence |
41% |
Easy |
|
593 |
Valid Square |
39% |
Medium |
|
592 |
Fraction Addition and Subtraction |
46% |
Medium |
|
591 |
Tag Validator |
31% |
Hard |
❤ |
587 |
Erect the Fence |
33% |
Hard |
❤ |
583 |
Delete Operation for Two Strings |
44% |
Medium |
❤ |
581 |
Shortest Unsorted Continuous Subarray |
29% |
Easy |
❤ |
576 |
Out of Boundary Paths |
30% |
Medium |
❤ |
575 |
Distribute Candies |
58% |
Easy |
|
572 |
Subtree of Another Tree |
40% |
Easy |
❤ |
567 |
Permutation in String |
36% |
Medium |
|
566 |
Reshape the Matrix |
57% |
Easy |
|
565 |
Array Nesting |
50% |
Medium |
|
564 |
Find the Closest Palindrome |
17% |
Hard |
|
563 |
Binary Tree Tilt |
46% |
Easy |
|
561 |
Array Partition I |
67% |
Easy |
|
560 |
Subarray Sum Equals K |
40% |
Medium |
❤ |
557 |
Reverse Words in a String III |
61% |
Easy |
|
556 |
Next Greater Element III |
29% |
Medium |
|
554 |
Brick Wall |
46% |
Medium |
|
553 |
Optimal Division |
55% |
Medium |
|
552 |
Student Attendance Record II |
31% |
Hard |
❤ |
551 |
Student Attendance Record I |
44% |
Easy |
|
547 |
Friend Circles |
49% |
Medium |
❤ |
546 |
Remove Boxes |
36% |
Hard |
❤ |
543 |
Diameter of Binary Tree |
45% |
Easy |
|
542 |
01 Matrix |
33% |
Medium |
❤ |
541 |
Reverse String II |
44% |
Easy |
|
540 |
Single Element in a Sorted Array |
56% |
Medium |
|
539 |
Minimum Time Difference |
46% |
Medium |
|
538 |
Convert BST to Greater Tree |
48% |
Easy |
|
537 |
Complex Number Multiplication |
64% |
Medium |
|
532 |
K-diff Pairs in an Array |
28% |
Easy |
|
530 |
Minimum Absolute Difference in BST |
48% |
Easy |
❤ |
529 |
Minesweeper |
50% |
Medium |
|
528 |
Random Pick with Weight |
41% |
Medium |
|
526 |
Beautiful Arrangement |
52% |
Medium |
❤ |
525 |
Contiguous Array |
41% |
Medium |
❤ |
524 |
Longest Word in Dictionary through Deleting |
43% |
Medium |
|
523 |
Continuous Subarray Sum |
23% |
Medium |
❤ |
522 |
Longest Uncommon Subsequence II |
32% |
Medium |
|
521 |
Longest Uncommon Subsequence I |
55% |
Easy |
|
520 |
Detect Capital |
51% |
Easy |
|
519 |
Random Flip Matrix |
32% |
Medium |
|
518 |
Coin Change 2 |
37% |
Medium |
❤ |
517 |
Super Washing Machines |
36% |
Hard |
❤ |
516 |
Longest Palindromic Subsequence |
43% |
Medium |
❤ |
515 |
Find Largest Value in Each Tree Row |
56% |
Medium |
|
514 |
Freedom Trail |
39% |
Hard |
|
513 |
Find Bottom Left Tree Value |
56% |
Medium |
|
508 |
Most Frequent Subtree Sum |
52% |
Medium |
|
507 |
Perfect Number |
32% |
Easy |
|
506 |
Relative Ranks |
47% |
Easy |
|
504 |
Base 7 |
43% |
Easy |
|
503 |
Next Greater Element II |
48% |
Medium |
❤ |
502 |
IPO |
36% |
Hard |
|
501 |
Find Mode in Binary Search Tree |
37% |
Easy |
❤ |
500 |
Keyboard Row |
60% |
Easy |
|
498 |
Diagonal Traverse |
44% |
Medium |
|
497 |
Random Point in Non-overlapping Rectangles |
33% |
Medium |
|
496 |
Next Greater Element I |
56% |
Easy |
|
495 |
Teemo Attacking |
51% |
Medium |
|
494 |
Target Sum |
43% |
Medium |
❤ |
493 |
Reverse Pairs |
21% |
Hard |
|
492 |
Construct the Rectangle |
47% |
Easy |
❤ |
491 |
Increasing Subsequences |
39% |
Medium |
❤ |
488 |
Zuma Game |
36% |
Hard |
❤ |
486 |
Predict the Winner |
45% |
Medium |
|
485 |
Max Consecutive Ones |
53% |
Easy |
|
483 |
Smallest Good Base |
33% |
Hard |
❤ |
482 |
License Key Formatting |
39% |
Easy |
|
481 |
Magical String |
45% |
Medium |
|
480 |
Sliding Window Median |
30% |
Hard |
❤ |
479 |
Largest Palindrome Product |
26% |
Easy |
|
478 |
Generate Random Point in a Circle |
32% |
Medium |
|
477 |
Total Hamming Distance |
47% |
Medium |
❤ |
476 |
Number Complement |
61% |
Easy |
|
475 |
Heaters |
29% |
Easy |
|
474 |
Ones and Zeroes |
38% |
Medium |
|
473 |
Matchsticks to Square |
35% |
Medium |
❤ |
472 |
Concatenated Words |
31% |
Hard |
|
470 |
Implement Rand10() Using Rand7() |
43% |
Medium |
❤ |
468 |
Validate IP Address |
20% |
Medium |
|
467 |
Unique Substrings in Wraparound String |
33% |
Medium |
❤ |
466 |
Count The Repetitions |
27% |
Hard |
❤ |
464 |
Can I Win |
25% |
Medium |
❤ |
463 |
Island Perimeter |
58% |
Easy |
|
462 |
Minimum Moves to Equal Array Elements II |
51% |
Medium |
|
461 |
Hamming Distance |
69% |
Easy |
|
460 |
LFU Cache |
26% |
Hard |
|
459 |
Repeated Substring Pattern |
38% |
Easy |
❤ |
458 |
Poor Pigs |
43% |
Easy |
|
457 |
Circular Array Loop |
24% |
Medium |
|
456 |
132 Pattern |
27% |
Medium |
❤ |
455 |
Assign Cookies |
47% |
Easy |
|
454 |
4Sum II |
48% |
Medium |
|
453 |
Minimum Moves to Equal Array Elements |
48% |
Easy |
|
452 |
Minimum Number of Arrows to Burst Balloons |
44% |
Medium |
|
451 |
Sort Characters By Frequency |
52% |
Medium |
|
450 |
Delete Node in a BST |
37% |
Medium |
❤ |
448 |
Find All Numbers Disappeared in an Array |
51% |
Easy |
|
447 |
Number of Boomerangs |
47% |
Easy |
|
446 |
Arithmetic Slices II - Subsequence |
28% |
Hard |
❤ |
445 |
Add Two Numbers II |
47% |
Medium |
❤ |
443 |
String Compression |
35% |
Easy |
❤ |
442 |
Find All Duplicates in an Array |
58% |
Medium |
|
441 |
Arranging Coins |
36% |
Easy |
|
440 |
K-th Smallest in Lexicographical Order |
25% |
Hard |
❤ |
438 |
Find All Anagrams in a String |
34% |
Easy |
|
437 |
Path Sum III |
40% |
Easy |
❤ |
436 |
Find Right Interval |
41% |
Medium |
|
435 |
Non-overlapping Intervals |
40% |
Medium |
❤ |
434 |
Number of Segments in a String |
36% |
Easy |
|
433 |
Minimum Genetic Mutation |
35% |
Medium |
|
432 |
All O`one Data Structure |
27% |
Hard |
❤ |
424 |
Longest Repeating Character Replacement |
42% |
Medium |
❤ |
423 |
Reconstruct Original Digits from English |
44% |
Medium |
|
421 |
Maximum XOR of Two Numbers in an Array |
49% |
Medium |
❤ |
420 |
Strong Password Checker |
18% |
Hard |
❤ |
419 |
Battleships in a Board |
63% |
Medium |
|
417 |
Pacific Atlantic Water Flow |
35% |
Medium |
|
416 |
Partition Equal Subset Sum |
38% |
Medium |
❤ |
415 |
Add Strings |
42% |
Easy |
|
414 |
Third Maximum Number |
28% |
Easy |
|
413 |
Arithmetic Slices |
54% |
Medium |
|
412 |
Fizz Buzz |
58% |
Easy |
|
410 |
Split Array Largest Sum |
40% |
Hard |
|
409 |
Longest Palindrome |
46% |
Easy |
|
407 |
Trapping Rain Water II |
37% |
Hard |
|
406 |
Queue Reconstruction by Height |
56% |
Medium |
❤ |
405 |
Convert a Number to Hexadecimal |
41% |
Easy |
|
404 |
Sum of Left Leaves |
48% |
Easy |
|
403 |
Frog Jump |
33% |
Hard |
❤ |
402 |
Remove K Digits |
25% |
Medium |
❤ |
401 |
Binary Watch |
44% |
Easy |
|
400 |
Nth Digit |
29% |
Easy |
❤ |
399 |
Evaluate Division |
43% |
Medium |
❤ |
398 |
Random Pick Index |
46% |
Medium |
|
397 |
Integer Replacement |
30% |
Medium |
❤ |
396 |
Rotate Function |
34% |
Medium |
❤ |
395 |
Longest Substring with At Least K Repeating Characters |
36% |
Medium |
|
394 |
Decode String |
42% |
Medium |
|
393 |
UTF-8 Validation |
34% |
Medium |
❤ |
392 |
Is Subsequence |
44% |
Medium |
❤ |
391 |
Perfect Rectangle |
27% |
Hard |
|
390 |
Elimination Game |
42% |
Medium |
❤ |
389 |
Find the Difference |
51% |
Easy |
|
388 |
Longest Absolute File Path |
37% |
Medium |
|
387 |
First Unique Character in a String |
47% |
Easy |
|
385 |
Mini Parser |
31% |
Medium |
❤ |
384 |
Shuffle an Array |
47% |
Medium |
❤ |
383 |
Ransom Note |
48% |
Easy |
|
382 |
Linked List Random Node |
47% |
Medium |
|
381 |
Insert Delete GetRandom O(1) - Duplicates allowed |
30% |
Hard |
❤ |
380 |
Insert Delete GetRandom O(1) |
40% |
Medium |
❤ |
378 |
Kth Smallest Element in a Sorted Matrix |
46% |
Medium |
❤ |
377 |
Combination Sum IV |
43% |
Medium |
|
376 |
Wiggle Subsequence |
36% |
Medium |
❤ |
375 |
Guess Number Higher or Lower II |
36% |
Medium |
|
373 |
Find K Pairs with Smallest Sums |
31% |
Medium |
❤ |
372 |
Super Pow |
34% |
Medium |
|
371 |
Sum of Two Integers |
50% |
Easy |
❤ |
368 |
Largest Divisible Subset |
33% |
Medium |
❤ |
367 |
Valid Perfect Square |
38% |
Easy |
|
365 |
Water and Jug Problem |
28% |
Medium |
❤ |
363 |
Max Sum of Rectangle No Larger Than K |
34% |
Hard |
❤ |
357 |
Count Numbers with Unique Digits |
46% |
Medium |
❤ |
355 |
Design Twitter |
26% |
Medium |
❤ |
354 |
Russian Doll Envelopes |
32% |
Hard |
❤ |
352 |
Data Stream as Disjoint Intervals |
41% |
Hard |
|
350 |
Intersection of Two Arrays II |
44% |
Easy |
❤ |
349 |
Intersection of Two Arrays |
49% |
Easy |
|
347 |
Top K Frequent Elements |
50% |
Medium |
|
345 |
Reverse Vowels of a String |
39% |
Easy |
|
344 |
Reverse String |
61% |
Easy |
|
343 |
Integer Break |
46% |
Medium |
|
342 |
Power of Four |
39% |
Easy |
|
338 |
Counting Bits |
62% |
Medium |
|
337 |
House Robber III |
45% |
Medium |
❤ |
336 |
Palindrome Pairs |
27% |
Hard |
❤ |
335 |
Self Crossing |
26% |
Hard |
|
334 |
Increasing Triplet Subsequence |
39% |
Medium |
❤ |
332 |
Reconstruct Itinerary |
30% |
Medium |
❤ |
331 |
Verify Preorder Serialization of a Binary Tree |
37% |
Medium |
❤ |
330 |
Patching Array |
32% |
Hard |
|
329 |
Longest Increasing Path in a Matrix |
37% |
Hard |
❤ |
328 |
Odd Even Linked List |
46% |
Medium |
❤ |
327 |
Count of Range Sum |
31% |
Hard |
❤ |
326 |
Power of Three |
40% |
Easy |
❤ |
324 |
Wiggle Sort II |
26% |
Medium |
|
322 |
Coin Change |
27% |
Medium |
❤ |
321 |
Create Maximum Number |
24% |
Hard |
❤ |
319 |
Bulb Switcher |
43% |
Medium |
❤ |
318 |
Maximum Product of Word Lengths |
46% |
Medium |
❤ |
316 |
Remove Duplicate Letters |
30% |
Hard |
❤ |
315 |
Count of Smaller Numbers After Self |
35% |
Hard |
❤ |
313 |
Super Ugly Number |
39% |
Medium |
❤ |
312 |
Burst Balloons |
44% |
Hard |
❤ |
310 |
Minimum Height Trees |
29% |
Medium |
|
309 |
Best Time to Buy and Sell Stock with Cooldown |
42% |
Medium |
❤ |
307 |
Range Sum Query - Mutable |
24% |
Medium |
|
306 |
Additive Number |
27% |
Medium |
|
304 |
Range Sum Query 2D - Immutable |
28% |
Medium |
|
303 |
Range Sum Query - Immutable |
34% |
Easy |
|
301 |
Remove Invalid Parentheses |
36% |
Hard |
❤ |
300 |
Longest Increasing Subsequence |
39% |
Medium |
❤ |
299 |
Bulls and Cows |
36% |
Medium |
|
295 |
Find Median from Data Stream |
31% |
Hard |
❤ |
292 |
Nim Game |
55% |
Easy |
❤ |
290 |
Word Pattern |
33% |
Easy |
|
289 |
Game of Life |
39% |
Medium |
❤ |
287 |
Find the Duplicate Number |
45% |
Medium |
❤ |
283 |
Move Zeroes |
52% |
Easy |
|
282 |
Expression Add Operators |
31% |
Hard |
❤ |
279 |
Perfect Squares |
38% |
Medium |
❤ |
275 |
H-Index II |
35% |
Medium |
❤ |
274 |
H-Index |
34% |
Medium |
|
273 |
Integer to English Words |
23% |
Hard |
❤ |
268 |
Missing Number |
46% |
Easy |
|
264 |
Ugly Number II |
34% |
Medium |
❤ |
263 |
Ugly Number |
39% |
Easy |
|
260 |
Single Number III |
54% |
Medium |
❤ |
258 |
Add Digits |
52% |
Easy |
|
257 |
Binary Tree Paths |
42% |
Easy |
|
242 |
Valid Anagram |
48% |
Easy |
|
241 |
Different Ways to Add Parentheses |
47% |
Medium |
|
240 |
Search a 2D Matrix II |
39% |
Medium |
❤ |
239 |
Sliding Window Maximum |
35% |
Hard |
❤ |
238 |
Product of Array Except Self |
51% |
Medium |
|
234 |
Palindrome Linked List |
34% |
Easy |
|
233 |
Number of Digit One |
29% |
Hard |
❤ |
232 |
Implement Queue using Stacks |
39% |
Easy |
|
231 |
Power of Two |
41% |
Easy |
|
230 |
Kth Smallest Element in a BST |
47% |
Medium |
|
229 |
Majority Element II |
30% |
Medium |
❤ |
228 |
Summary Ranges |
33% |
Medium |
|
227 |
Basic Calculator II |
31% |
Medium |
|
226 |
Invert Binary Tree |
54% |
Easy |
|
225 |
Implement Stack using Queues |
35% |
Easy |
|
224 |
Basic Calculator |
29% |
Hard |
|
223 |
Rectangle Area |
34% |
Medium |
|
221 |
Maximal Square |
31% |
Medium |
❤ |
220 |
Contains Duplicate III |
18% |
Medium |
❤ |
219 |
Contains Duplicate II |
33% |
Easy |
|
218 |
The Skyline Problem |
29% |
Hard |
❤ |
217 |
Contains Duplicate |
48% |
Easy |
|
216 |
Combination Sum III |
48% |
Medium |
|
215 |
Kth Largest Element in an Array |
42% |
Medium |
❤ |
214 |
Shortest Palindrome |
25% |
Hard |
❤ |
213 |
House Robber II |
34% |
Medium |
|
212 |
Word Search II |
25% |
Hard |
❤ |
211 |
Add and Search Word - Data structure design |
26% |
Medium |
❤ |
210 |
Course Schedule II |
31% |
Medium |
|
209 |
Minimum Size Subarray Sum |
33% |
Medium |
|
208 |
Implement Trie (Prefix Tree) |
33% |
Medium |
❤ |
207 |
Course Schedule |
34% |
Medium |
❤ |
206 |
Reverse Linked List |
49% |
Easy |
|
205 |
Isomorphic Strings |
35% |
Easy |
❤ |
204 |
Count Primes |
27% |
Easy |
❤ |
203 |
Remove Linked List Elements |
34% |
Easy |
|
202 |
Happy Number |
42% |
Easy |
|
201 |
Bitwise AND of Numbers Range |
34% |
Medium |
❤ |
200 |
Number of Islands |
37% |
Medium |
|
199 |
Binary Tree Right Side View |
44% |
Medium |
|
198 |
House Robber |
40% |
Easy |
❤ |
189 |
Rotate Array |
26% |
Easy |
|
188 |
Best Time to Buy and Sell Stock IV |
25% |
Hard |
❤ |
187 |
Repeated DNA Sequences |
33% |
Medium |
|
179 |
Largest Number |
24% |
Medium |
❤ |
174 |
Dungeon Game |
25% |
Hard |
❤ |
172 |
Factorial Trailing Zeroes |
37% |
Easy |
|
171 |
Excel Sheet Column Number |
49% |
Easy |
|
169 |
Majority Element |
49% |
Easy |
❤ |
168 |
Excel Sheet Column Title |
27% |
Easy |
❤ |
167 |
Two Sum II - Input array is sorted |
47% |
Easy |
|
166 |
Fraction to Recurring Decimal |
18% |
Medium |
❤ |
165 |
Compare Version Numbers |
21% |
Medium |
|
164 |
Maximum Gap |
30% |
Hard |
|
162 |
Find Peak Element |
39% |
Medium |
|
155 |
Min Stack |
33% |
Easy |
|
154 |
Find Minimum in Rotated Sorted Array II |
38% |
Hard |
|
153 |
Find Minimum in Rotated Sorted Array |
41% |
Medium |
|
152 |
Maximum Product Subarray |
27% |
Medium |
❤ |
150 |
Evaluate Reverse Polish Notation |
29% |
Medium |
|
149 |
Max Points on a Line |
15% |
Hard |
❤ |
148 |
Sort List |
31% |
Medium |
❤ |
147 |
Insertion Sort List |
34% |
Medium |
❤ |
146 |
LRU Cache |
21% |
Hard |
❤ |
145 |
Binary Tree Postorder Traversal |
44% |
Hard |
|
144 |
Binary Tree Preorder Traversal |
48% |
Medium |
❤ |
143 |
Reorder List |
27% |
Medium |
❤ |
140 |
Word Break II |
25% |
Hard |
❤ |
139 |
Word Break |
32% |
Medium |
❤ |
137 |
Single Number II |
43% |
Medium |
❤ |
136 |
Single Number |
56% |
Easy |
|
135 |
Candy |
26% |
Hard |
|
134 |
Gas Station |
31% |
Medium |
❤ |
132 |
Palindrome Partitioning II |
25% |
Hard |
❤ |
131 |
Palindrome Partitioning |
37% |
Medium |
❤ |
130 |
Surrounded Regions |
20% |
Medium |
❤ |
129 |
Sum Root to Leaf Numbers |
39% |
Medium |
|
128 |
Longest Consecutive Sequence |
39% |
Hard |
|
127 |
Word Ladder |
21% |
Medium |
❤ |
126 |
Word Ladder II |
15% |
Hard |
❤ |
125 |
Valid Palindrome |
28% |
Easy |
|
124 |
Binary Tree Maximum Path Sum |
27% |
Hard |
❤ |
123 |
Best Time to Buy and Sell Stock III |
31% |
Hard |
|
122 |
Best Time to Buy and Sell Stock II |
49% |
Easy |
|
121 |
Best Time to Buy and Sell Stock |
44% |
Easy |
|
120 |
Triangle |
36% |
Medium |
❤ |
119 |
Pascal's Triangle II |
39% |
Easy |
|
118 |
Pascal's Triangle |
41% |
Easy |
|
115 |
Distinct Subsequences |
33% |
Hard |
❤ |
114 |
Flatten Binary Tree to Linked List |
38% |
Medium |
❤ |
113 |
Path Sum II |
37% |
Medium |
|
112 |
Path Sum |
35% |
Easy |
|
111 |
Minimum Depth of Binary Tree |
34% |
Easy |
|
110 |
Balanced Binary Tree |
39% |
Easy |
|
109 |
Convert Sorted List to Binary Search Tree |
37% |
Medium |
|
108 |
Convert Sorted Array to Binary Search Tree |
46% |
Easy |
|
107 |
Binary Tree Level Order Traversal II |
43% |
Easy |
|
106 |
Construct Binary Tree from Inorder and Postorder Traversal |
35% |
Medium |
❤ |
105 |
Construct Binary Tree from Preorder and Inorder Traversal |
36% |
Medium |
❤ |
104 |
Maximum Depth of Binary Tree |
56% |
Easy |
|
103 |
Binary Tree Zigzag Level Order Traversal |
38% |
Medium |
|
102 |
Binary Tree Level Order Traversal |
44% |
Medium |
|
101 |
Symmetric Tree |
41% |
Easy |
❤ |
100 |
Same Tree |
48% |
Easy |
|
99 |
Recover Binary Search Tree |
32% |
Hard |
❤ |
98 |
Validate Binary Search Tree |
24% |
Medium |
❤ |
97 |
Interleaving String |
26% |
Hard |
❤ |
96 |
Unique Binary Search Trees |
43% |
Medium |
|
95 |
Unique Binary Search Trees II |
33% |
Medium |
❤ |
94 |
Binary Tree Inorder Traversal |
52% |
Medium |
|
93 |
Restore IP Addresses |
29% |
Medium |
❤ |
92 |
Reverse Linked List II |
32% |
Medium |
|
91 |
Decode Ways |
20% |
Medium |
❤ |
90 |
Subsets II |
39% |
Medium |
❤ |
89 |
Gray Code |
43% |
Medium |
|
88 |
Merge Sorted Array |
33% |
Easy |
|
87 |
Scramble String |
30% |
Hard |
❤ |
86 |
Partition List |
34% |
Medium |
|
85 |
Maximal Rectangle |
30% |
Hard |
❤ |
84 |
Largest Rectangle in Histogram |
28% |
Hard |
❤ |
83 |
Remove Duplicates from Sorted List |
40% |
Easy |
|
82 |
Remove Duplicates from Sorted List II |
30% |
Medium |
❤ |
81 |
Search in Rotated Sorted Array II |
32% |
Medium |
|
80 |
Remove Duplicates from Sorted Array II |
38% |
Medium |
❤ |
79 |
Word Search |
28% |
Medium |
|
78 |
Subsets |
47% |
Medium |
❤ |
77 |
Combinations |
43% |
Medium |
|
76 |
Minimum Window Substring |
28% |
Hard |
❤ |
75 |
Sort Colors |
39% |
Medium |
❤ |
74 |
Search a 2D Matrix |
34% |
Medium |
|
73 |
Set Matrix Zeroes |
37% |
Medium |
❤ |
72 |
Edit Distance |
34% |
Hard |
❤ |
71 |
Simplify Path |
26% |
Medium |
|
70 |
Climbing Stairs |
42% |
Easy |
|
69 |
Sqrt(x) |
29% |
Easy |
|
68 |
Text Justification |
20% |
Hard |
|
67 |
Add Binary |
35% |
Easy |
|
66 |
Plus One |
40% |
Easy |
|
65 |
Valid Number |
13% |
Hard |
|
64 |
Minimum Path Sum |
42% |
Medium |
|
63 |
Unique Paths II |
32% |
Medium |
|
62 |
Unique Paths |
44% |
Medium |
❤ |
61 |
Rotate List |
25% |
Medium |
❤ |
60 |
Permutation Sequence |
30% |
Medium |
|
59 |
Spiral Matrix II |
42% |
Medium |
❤ |
58 |
Length of Last Word |
32% |
Easy |
|
57 |
Insert Interval |
29% |
Hard |
|
56 |
Merge Intervals |
32% |
Medium |
❤ |
55 |
Jump Game |
30% |
Medium |
|
54 |
Spiral Matrix |
28% |
Medium |
❤ |
53 |
Maximum Subarray |
41% |
Easy |
❤ |
52 |
N-Queens II |
48% |
Hard |
|
51 |
N-Queens |
35% |
Hard |
|
50 |
Pow(x, n) |
26% |
Medium |
|
49 |
Group Anagrams |
41% |
Medium |
❤ |
48 |
Rotate Image |
43% |
Medium |
|
47 |
Permutations II |
36% |
Medium |
|
46 |
Permutations |
49% |
Medium |
|
45 |
Jump Game II |
26% |
Hard |
|
44 |
Wildcard Matching |
21% |
Hard |
❤ |
43 |
Multiply Strings |
28% |
Medium |
|
42 |
Trapping Rain Water |
39% |
Hard |
|
41 |
First Missing Positive |
26% |
Hard |
|
40 |
Combination Sum II |
37% |
Medium |
|
39 |
Combination Sum |
43% |
Medium |
|
38 |
Count and Say |
37% |
Easy |
|
37 |
Sudoku Solver |
33% |
Hard |
❤ |
36 |
Valid Sudoku |
39% |
Medium |
|
35 |
Search Insert Position |
40% |
Easy |
|
34 |
Find First and Last Position of Element in Sorted Array |
32% |
Medium |
|
33 |
Search in Rotated Sorted Array |
32% |
Medium |
❤ |
32 |
Longest Valid Parentheses |
23% |
Hard |
|
31 |
Next Permutation |
29% |
Medium |
|
30 |
Substring with Concatenation of All Words |
22% |
Hard |
|
29 |
Divide Two Integers |
15% |
Medium |
|
28 |
Implement strStr() |
29% |
Easy |
|
27 |
Remove Element |
41% |
Easy |
|
26 |
Remove Duplicates from Sorted Array |
37% |
Easy |
|
25 |
Reverse Nodes in k-Group |
33% |
Hard |
❤ |
24 |
Swap Nodes in Pairs |
40% |
Medium |
|
23 |
Merge k Sorted Lists |
30% |
Hard |
|
22 |
Generate Parentheses |
50% |
Medium |
|
21 |
Merge Two Sorted Lists |
43% |
Easy |
|
20 |
Valid Parentheses |
34% |
Easy |
|
19 |
Remove Nth Node From End of List |
33% |
Medium |
|
18 |
4Sum |
28% |
Medium |
|
17 |
Letter Combinations of a Phone Number |
38% |
Medium |
|
16 |
3Sum Closest |
32% |
Medium |
|
15 |
3Sum |
22% |
Medium |
|
14 |
Longest Common Prefix |
31% |
Easy |
|
13 |
Roman to Integer |
49% |
Easy |
|
12 |
Integer to Roman |
47% |
Medium |
|
11 |
Container With Most Water |
38% |
Medium |
|
10 |
Regular Expression Matching |
24% |
Hard |
|
9 |
Palindrome Number |
38% |
Easy |
|
8 |
String to Integer (atoi) |
14% |
Medium |
|
7 |
Reverse Integer |
24% |
Easy |
|
6 |
ZigZag Conversion |
28% |
Medium |
|
5 |
Longest Palindromic Substring |
25% |
Medium |
|
4 |
Median of Two Sorted Arrays |
23% |
Hard |
|
3 |
Longest Substring Without Repeating Characters |
25% |
Medium |
|
2 |
Add Two Numbers |
29% |
Medium |
|
1 |
Two Sum |
38% |
Easy |
|