Skip to content

qinhanmin2014/LeetCode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

LeetCode Solutions in Python, Java and C++

# Title Python Java C++ Difficulty
001 Two Sum Python Java C++ Easy
002 Add Two Numbers Python Java C++ Medium
003 Longest Substring Without Repeating Characters Python Java C++ Medium
004 Median of Two Sorted Arrays Python Java C++ Hard
005 Longest Palindromic Substring Python Java C++ Medium
006 ZigZag Conversion Python Java C++ Medium
007 Reverse Integer Python Java C++ Easy
008 String to Integer Python Java C++ Medium
009 Palindrome Number Python Java C++ Easy
010 Regular Expression Matching Python Java C++ Hard
011 Container With Most Water Python Java C++ Medium
012 Integer to Roman Python Java C++ Medium
013 Roman to Integer Python Java C++ Easy
014 Longest Common Prefix Python Java C++ Easy
015 3Sum Python Java C++ Medium
016 3Sum Closest Python Java C++ Medium
017 Letter Combinations of a Phone Number Python Java C++ Medium
018 4Sum Python Java C++ Medium
019 Remove Nth Node From End of List Python Java C++ Medium
020 Valid Parentheses Python Java C++ Easy
021 Merge Two Sorted Lists Python Java C++ Easy
022 Generate Parentheses Python Java C++ Medium
023 Merge k Sorted Lists Python Java C++ Hard
024 Swap Nodes in Pairs Python Java C++ Medium
025 Reverse Nodes in k-Group Python Java C++ Hard
026 Remove Duplicates from Sorted Array Python Java C++ Easy
027 Remove Element Python Java C++ Easy
028 Implement strStr() Python Java C++ Easy
029 Divide Two Integers Python Java C++ Medium
030 Substring with Concatenation of All Words Python Java C++ Hard
031 Next Permutation Python Java C++ Medium
032 Longest Valid Parentheses Python Java C++ Hard
033 Search in Rotated Sorted Array Python Java C++ Medium
034 Find First and Last Position of Element in Sorted Array Python Java C++ Medium
035 Search Insert Position Python Java C++ Easy
036 Valid Sudoku Python Java C++ Medium
037 Sudoku Solver Python Java C++ Hard
038 Count and Say Python Java C++ Easy
039 Combination Sum Python Java C++ Medium
040 Combination Sum II Python Java C++ Medium
041 First Missing Positive Python Java C++ Hard
042 Trapping Rain Water Python Java C++ Hard
043 Multiply Strings Python Java C++ Medium
044 Wildcard Matching Python Java C++ Hard
045 Jump Game II Python Java C++ Hard
046 Permutations Python Java C++ Medium
047 Permutaions II Python Java C++ Medium
048 Rotate Image Python Java C++ Medium
049 Group Anagrams Python Java C++ Medium
050 Pow(x, n) Python Java C++ Medium
051 N-Queens Python Java C++ Hard
052 N-Queens II Python Java C++ Hard
053 Maximum Subarray Python Java C++ Easy
054 Spiral Matrix Python Java C++ Medium
055 Jump Game Python Java C++ Medium
056 Merge Intervals Python Java C++ Medium
057 Insert Interval Python Hard
058 Length of Last Word Python Easy
059 Spiral Matrix II Python Medium
060 Permutation Sequence Python Medium
061 Rotate List Python Medium
062 Unique Paths Python Medium
063 Unique Paths II Python Medium
064 Minimum Path Sum Python Medium
065 Valid Number Python Hard
066 Plus One Python Easy
067 Add Binary Python Easy
068 Text Justification Python Hard
069 Sqrt(x) Python Easy
070 Climbing Stairs Python Easy
071 Simplify Path Python Medium
072 Edit Distance Python Hard
073 Set Matrix Zeroes Python Medium
074 Search a 2D Matrix Python Medium
075 Sort Colors Python Java C++ Medium
076 Minimum Window Substring Python Hard
077 Combinations Python Medium
078 Subsets Python Java C++ Medium
079 Word Search Python Java C++ Medium
080 Remove Duplicates from Sorted Array II Python Medium
081 Search in Rotated Sorted Array II Python Medium
082 Remove Duplicates from Sorted List II Python Medium
083 Remove Duplicates from Sorted List Python Easy
084 Largest Rectangle in Histogram Python Hard
085 Maximal Rectangle Python Hard
086 Partition List Python Medium
087 Scramble String Python Hard
088 Merge Sorted Array Python Easy
089 Gray Code Python Medium
090 Subsets II Python Medium
091 Decode Ways Python Medium
092 Reverse Linked List II Python Medium
093 Restore IP Addresses Python Medium
094 Binary Tree Inorder Traversal Python Java C++ Medium
095 Unique Binary Search Trees II Python Medium
096 Unique Binary Search Trees Python Medium
097 Interleaving String Python Hard
098 Validate Binary Search Tree Python Medium
099 Recover Binary Search Tree Python Hard
100 Same Tree Python Easy
101 Symmetric Tree Python Easy
102 Binary Tree Level Order Traversal Python Medium
103 Binary Tree Zigzag Level Order Traversal Python Medium
104 Maximum Depth of Binary Tree Python Easy
105 Construct Binary Tree from Preorder and Inorder Traversal Python Medium
106 Construct Binary Tree from Inorder and Postorder Traversal Python Java C++ Medium
107 Binary Tree Level Order Traversal II Python Easy
108 Convert Sorted Array to Binary Search Tree Python Easy
109 Convert Sorted List to Binary Search Tree Python Medium
110 Balanced Binary Tree Python Easy
111 Minimum Depth of Binary Tree Python Easy
112 Path Sum Python Java C++ Easy
113 Path Sum II Python Java C++ Medium
114 Flatten Binary Tree to Linked List Python Medium
115 Distinct Subsequences Python Hard
116 Populating Next Right Pointers in Each Node Python Medium
117 Populating Next Right Pointers in Each Node II Python Medium
118 Pascal's Triangle Python Easy
119 Pascal's Triangle II Python Easy
120 Triangle Python Medium
121 Best Time to Buy and Sell Stock Python Easy
122 Best Time to Buy and Sell Stock II Python Easy
123 Best Time to Buy and Sell Stock III Python Hard
124 Binary Tree Maximum Path Sum Python Hard
125 Valid Palindrome Python Easy
126 Word Ladder II Python Hard
127 Word Ladder Python Medium
128 Longest Consecutive Sequence Python Hard
129 Sum Root to Leaf Numbers Python Medium
130 Surrounded Regions Python Medium
131 Palindrome Partitioning Python Medium
132 Palindrome Partitioning II Python Hard
133 Clone Graph Python Medium
134 Gas Station Python Medium
135 Candy Python Hard
136 Single Number Python Easy
137 Single Number II Python Medium
138 Copy List with Random Pointer Python Medium
139 Word Break Python Medium
140 Word Break II Python Hard
141 Linked List Cycle Python Easy
142 Linked List Cycle II Python Medium
143 Reorder List Python Medium
144 Binary Tree Preorder Traversal Python Medium
145 Binary Tree Postorder Traversal Python Medium
146 LRU Cache Python Medium
147 Insertion Sort List Python Medium
148 Sort List Python Medium
149 Max Points on a Line Python Hard
150 Evaluate Reverse Polish Notation Python Medium
151 Reverse Words in a String Python Medium
152 Maximum Product Subarray Python Medium
153 Find Minimum in Rotated Sorted Array Python Medium
154 Find Minimum in Rotated Sorted Array II Python Medium
155 Min Stack Python Easy
160 Intersection of Two Linked Lists Python Easy
162 Find Peak Element Python Medium
164 Maximum Gap Python Hard
165 Compare Version Numbers Python Medium
166 Fraction to Recurring Decimal Python Medium
167 Two Sum II - Input array is sorted Python Easy
168 Excel Sheet Column Title Python Java C++ Easy
169 Majority Element Python Easy
171 Excel Sheet Column Number Python Easy
172 Factorial Trailing Zeroes Python Easy
173 Binary Search Tree Iterator Python Medium
174 Dungeon Game Python Hard
179 Largest Number Python Medium
187 Repeated DNA Sequences Python Medium
188 Best Time to Buy and Sell Stock IV Python Hard
189 Rotate Array Python Easy
190 Reverse Bits Python Easy
191 Number of 1 Bits Python Easy
198 House Robber Python Easy
199 Binary Tree Right Side View Python Medium
200 Number of Islands Python Medium
203 Remove Linked List Elements Python Java C++ Easy
202 Happy Number Python Easy
204 Count Primes Python Easy
205 Isomorphic Strings Python Easy
206 Reverse Linked List Python Easy
207 Course Schedule Python Medium
208 Implement Trie (Prefix Tree) Python Medium
210 Course Schedule II Python Medium
211 Design Add and Search Words Data Structure Python Medium
212 Word Search II Python Hard
213 House Robber II Python Medium
215 Kth Largest Element in an Array Python Medium
216 Combination Sum III Python Medium
217 Contains Duplicate Python Easy
219 Contains Duplicate II Python Easy
220 Contains Duplicate III Python Medium
221 Maximal Square Python Medium
222 Count Complete Tree Nodes Python Medium
223 Rectangle Area Python Medium
224 Basic Calculator Python Hard
226 Invert Binary Tree Python Java C++ Easy
228 Summary Ranges Python Easy
229 Majority Element II Python Medium
230 Kth Smallest Element in a BST Python Easy
231 Power of Two Python Easy
232 Implement Queue using Stacks Python Easy
233 Number of Digit One Python Hard
234 Palindrome Linked List Python Easy
235 Lowest Common Ancestor of a Binary Search Tree Python Easy
236 Lowest Common Ancestor of a Binary Tree Python Medium
237 Delete Node in a Linked List Python Easy
238 Product of Array Except Self Python Medium
239 Sliding Window Maximum Python Hard
240 Search a 2D Matrix II Python Medium
241 Different Ways to Add Parentheses Python Hard
242 Valid Anagram Python Easy
253 Meeting Rooms II Python Medium
256 Paint House Python Medium
257 Binary Tree Paths Python Easy
258 Add Digits Python Easy
260 Single Number III Python Medium
264 Ugly Number II Python Medium
265 Paint House II Python Hard
268 Missing Number Python Easy
273 Integer to English Words Python Hard
274 H-Index Python Java C++ Medium
275 H-Index II Python Java C++ Medium
278 First Bad Version Python Easy
279 Perfect Squares Python Medium
282 Expression Add Operators Python Hard
283 Move Zeroes Python Easy
284 Peeking Iterator Python Medium
287 Find the Duplicate Number Python Medium
290 Word Pattern Python Easy
292 Nim Game Python Easy
295 Find Median from Data Stream Python Hard
297 Serialize and Deserialize Binary Tree Python Java C++ Hard
299 Bulls and Cows Python Medium
300 Longest Increasing Subsequence Python Medium
301 Remove Invalid Parentheses Python Hard
303 Range Sum Query - Immutable Python Easy
304 Range Sum Query 2D - Immutable Python Medium
306 Additive Number Python Medium
307 Range Sum Query - Mutable Python Medium
309 Best Time to Buy and Sell Stock with Cooldown Python Medium
310 Minimum Height Trees Python Medium
312 Burst Balloons Python Hard
313 Super Ugly Number Python Medium
315 Count of Smaller Numbers After Self Python Hard
316 Remove Duplicate Letters Python Medium
318 Maximum Product of Word Lengths Python Medium
319 Bulb Switcher Python Easy
321 Create Maximum Number Python Hard
322 Coin Change Python Medium
324 Wiggle Sort II Python Medium
326 Power of Three Python Medium
327 Count of Range Sum Python Hard
328 Odd Even Linked List Python Medium
330 Patching Array Python Hard
334 Increasing Triplet Subsequence Python Easy
335 Self Crossing Python Hard
337 House Robber III Python Medium
338 Counting Bits Python Medium
341 Flatten Nested List Iterator Python Easy
343 Integer Break Python Medium
344 Reverse String Python Java C++ Easy
345 Reverse Vowels of a String Python Easy
347 Top K Frequent Elements Python Medium
349 Intersection of Two Arrays Python Easy
350 Intersection of Two Arrays II Python Easy
352 Data Stream as Disjoint Intervals Python Hard
354 Russian Doll Envelopes Python Hard
357 Count Numbers with Unique Digits Python Medium
363 Max Sum of Rectangle No Larger Than K Python Hard
367 Valid Perfect Square Python Easy
371 Sum of Two Integers Python Easy
372 Super Pow Python Medium
373 Find K Pairs with Smallest Sums Python Medium
375 Guess Number Higher or Lower II Python Medium
376 Wiggle Subsequence Python Medium
377 Combination Sum IV Python Medium
380 Insert Delete GetRandom O(1) Python Medium
381 Insert Delete GetRandom O(1) - Duplicates allowed Python Hard
382 Linked List Random Node Python Medium
383 Ransom Note Python Easy
384 Shuffle an Array Python Medium
385 Mini Parser Python Medium
386 Lexicographical Numbers Python Medium
387 First Unique Character in a String Python Easy
388 Longest Absolute File Path Python Medium
389 Find the Difference Python Easy
390 Elimination Game Python Medium
391 Perfect Rectangle Python Hard
392 Is Subsequence Python Easy
393 UTF-8 Validation Python Medium
394 Decode String Python Medium
395 Longest Substring with At Least K Repeating Characters Python Medium
396 Rotate Function Python Medium
397 Integer Replacement Python Medium
398 Random Pick Index Python Medium
399 Evaluate Division Python Medium
400 Nth Digit Python Medium
401 Binary Watch Python Java C++ Easy
402 Remove K Digits Python Medium
404 Sum of Left Leaves Python Easy
405 Convert a Number to Hexadecimal Python Easy
406 Queue Reconstruction by Height Python Medium
407 Trapping Rain Water II Python Hard
412 Fizz Buzz Python Easy
413 Arithmetic Slices Python Medium
414 Third Maximum Number Python Easy
415 Add Strings Python Easy
416 Partition Equal Subset Sum Python Medium
417 Pacific Atlantic Water Flow Python Medium
419 Battleships in a Board Python Medium
420 Strong Password Checker Python Hard
421 Maximum XOR of Two Numbers in an Array Python Medium
423 Reconstruct Original Digits from English Python Medium
424 Longest Repeating Character Replacement Python Medium
426 Convert Binary Search Tree to Sorted Doubly Linked List Python Medium
427 Construct Quad Tree Python Medium
429 N-ary Tree Level Order Traversal Python Medium
430 Flatten a Multilevel Doubly Linked List Python Medium
432 All O`one Data Structure Python Hard
433 Minimum Genetic Mutation Python Medium
434 Number of Segments in a String Python Easy
435 Non-overlapping Intervals Python Medium
436 Find Right Interval Python Medium
437 Path Sum III Python Medium
438 Find All Anagrams in a String Python Medium
440 K-th Smallest in Lexicographical Order Python Hard
441 Arranging Coins Python Easy
442 Find All Duplicates in an Array Python Medium
443 String Compression Python Medium
445 Add Two Numbers II Python Medium
446 Arithmetic Slices II - Subsequence Python Hard
447 Number of Boomerangs Python Medium
448 Find All Numbers Disappeared in an Array Python Easy
449 Serialize and Deserialize BST Python Medium
450 Delete Node in a BST Python Medium
451 Sort Characters By Frequency Python Java C++ Easy
452 Minimum Number of Arrows to Burst Balloons Python Medium
453 Minimum Moves to Equal Array Elements Python Easy
454 4Sum II Python Medium
455 Assign Cookies Python Easy
457 Circular Array Loop Python Medium
458 Poor Pigs Python Hard
459 Repeated Substring Pattern Python Easy
460 LFU Cache Python Hard
461 Hamming Distance Python Easy
462 Minimum Moves to Equal Array Elements II Python Medium
463 Island Perimeter Python Easy
464 Can I Win Python Medium
467 Unique Substrings in Wraparound String Python Medium
468 Validate IP Address Python Medium
470 Implement Rand10() Using Rand7() Python Medium
472 Concatenated Words Python Hard
473 Matchsticks to Square Python Medium
474 Ones and Zeroes Python Java C++ Medium
475 Heaters Python Medium
476 Number Complement Python Easy
478 Generate Random Point in a Circle Python Medium
479 Largest Palindrome Product Python Hard
480 Sliding Window Median Python Hard
481 Magical String Python Medium
482 License Key Formatting Python Easy
485 Max Consecutive Ones Python Easy
488 Zuma Game Python Hard
492 Construct the Rectangle Python Easy
493 Reverse Pairs Python Hard
494 Target Sum Python Medium
495 Teemo Attacking Python Easy
496 Next Greater Element I Python Easy
497 Random Point in Non-overlapping Rectangles Python Medium
498 Diagonal Traverse Python Easy
500 Keyboard Row Python Easy
501 Find Mode in Binary Search Tree Python Java C++ Easy
502 IPO Python Hard
503 Next Greater Element II Python Medium
504 Base 7 Python Easy
506 Relative Ranks Python Easy
507 Perfect Number Python Easy
508 Most Frequent Subtree Sum Python Medium
509 Fibonacci Number Python Easy
513 Find Bottom Left Tree Value Python Medium
514 Freedom Trail Python Hard
515 Find Largest Value in Each Tree Row Python Medium
516 Longest Palindromic Subsequence Python Medium
517 Super Washing Machines Python Medium
518 Coin Change 2 Python Medium
519 Random Flip Matrix Python Medium
520 Detect Capital Python Easy
521 Longest Uncommon Subsequence I Python Easy
522 Longest Uncommon Subsequence II Python Medium
524 Longest Word in Dictionary through Deleting Python Medium
526 Beautiful Arrangement Python Medium
528 Random Pick with Weight Python Medium
530 Minimum Absolute Difference in BST Python Easy
532 K-diff Pairs in an Array Python Medium
535 Encode and Decode TinyURL Python Medium
537 Complex Number Multiplication Python Medium
538 Convert BST to Greater Tree Python Java C++ Easy
539 Minimum Time Difference Python Medium
540 Single Element in a Sorted Array Python Medium
541 Reverse String II Python Easy
542 01 Matrix Python Medium
543 Diameter of Binary Tree Python Easy
547 Number of Provinces Python Medium
551 Student Attendance Record I Python Easy
552 Student Attendance Record II Python Hard
553 Optimal Division Python Medium
556 Next Greater Element III Python Medium
557 Reverse Words in a String III Python Easy
558 Logical OR of Two Binary Grids Represented as Quad-Trees Python Medium
559 Maximum Depth of N-ary Tree Python Easy
560 Subarray Sum Equals K Python Medium
561 Array Partition I Python Easy
563 Binary Tree Tilt Python Easy
564 Find the Closest Palindrome Python Hard
565 Array Nesting Python Medium
566 Reshape the Matrix Python Easy
567 Permutation in String Python Medium
575 Distribute Candies Python Easy
576 Out of Boundary Paths Python Medium
581 Shortest Unsorted Continuous Subarray Python Medium
583 Delete Operation for Two Strings Python Medium
587 Erect the Fence Python Hard
590 N-ary Tree Postorder Traversal Python Easy
591 Tag Validator Python Hard
592 Fraction Addition and Subtraction Python Medium
593 Valid Square Python Medium
594 Longest Harmonious Subsequence Python Easy
598 Range Addition II Python Easy
599 Minimum Index Sum of Two Lists Python Easy
600 Non-negative Integers without Consecutive Ones Python Hard
605 Can Place Flowers Python Easy
606 Construct String from Binary Tree Python Easy
611 Valid Triangle Number Python Medium
617 Merge Two Binary Trees Python Java C++ Easy
621 Task Scheduler Python Medium
622 Design Circular Queue Python Medium
623 Add One Row to Tree Python Medium
628 Maximum Product of Three Numbers Python Easy
629 K Inverse Pairs Array Python Hard
630 Course Schedule III Python Hard
636 Exclusive Time of Functions Python Medium
637 Average of Levels in Binary Tree Python Easy
638 Shopping Offers Python Medium
639 Decode Ways II Python Hard
640 Solve the Equation Python Medium
641 Design Circular Deque Python Medium
643 Maximum Average Subarray I Python Easy
645 Set Mismatch Python Java C++ Easy
646 Maximum Length of Pair Chain Python Medium
647 Palindromic Substrings Python Medium
648 Replace Words Python Medium
649 Dota2 Senate Python Medium
650 2 Keys Keyboard Python Medium
652 Find Duplicate Subtrees Python Medium
653 Two Sum IV - Input is a BST Python Easy
654 Maximum Binary Tree Python Medium
655 Print Binary Tree Python Medium
658 Find K Closest Elements Python Medium
659 Split Array into Consecutive Subsequences Python Medium
661 Image Smoother Python Easy
662 Maximum Width of Binary Tree Python Medium
664 Strange Printer Python Hard
665 Non-decreasing Array Python Easy
667 Beautiful Arrangement II Python Medium
668 Kth Smallest Number in Multiplication Table Python Hard
669 Trim a Binary Search Tree Python Medium
670 Maximum Swap Python Medium
672 Bulb Switcher II Python Medium
673 Number of Longest Increasing Subsequence Python Medium
674 Longest Continuous Increasing Subsequence Python Easy
675 Cut Off Trees for Golf Event Python Hard
676 Implement Magic Dictionary Python Medium
677 Map Sum Pairs Python Medium
678 Valid Parenthesis String Python Medium
682 Redundant Connection Python Medium
684 Baseball Game Python Easy
685 Redundant Connection II Python Hard
686 Repeated String Match Python Medium
687 Longest Univalue Path Python Medium
688 Knight Probability in Chessboard Python Medium
689 Maximum Sum of 3 Non-Overlapping Subarrays Python Hard
691 Stickers to Spell Word Python Hard
693 Binary Number with Alternating Bits Python Easy
695 Max Area of Island Python Medium
697 Degree of an Array Python Easy
698 Partition to K Equal Sum Subsets Python Medium
699 Falling Squares Python Hard
700 Search in a Binary Search Tree Python Java C++ Easy
701 Insert into a Binary Search Tree Python Java C++ Medium
703 Kth Largest Element in a Stream Python Easy
704 Binary Search Python Easy
707 Design Linked List Python Medium
709 To Lower Case Python Easy
710 Random Pick with Blacklist Python Hard
713 Subarray Product Less Than K Python Medium
714 Best Time to Buy and Sell Stock with Transaction Fee Python Medium
715 Range Module Python Hard
717 1-bit and 2-bit Characters Python Easy
719 Find K-th Smallest Pair Distance Python Hard
720 Longest Word in Dictionary Python Easy
721 Accounts Merge Python Medium
722 Remove Comments Python Medium
724 Find Pivot Index Python Easy
725 Split Linked List in Parts Python Medium
726 Number of Atoms Python Java C++ Hard
728 Self Dividing Numbers Python Medium
729 My Calendar I Python Medium
730 Count Different Palindromic Subsequences Python Hard
731 My Calendar II Python Medium
732 My Calendar III Python Hard
733 Flood Fill Python Easy
735 Asteroid Collision Python Medium
736 Parse Lisp Expression Python Hard
738 Monotone Increasing Digits Python Medium
739 Daily Temperatures Python Medium
740 Delete and Earn Python Medium
741 Cherry Pickup Python Hard
743 Network Delay Time Python Medium
744 Find Smallest Letter Greater Than Target Python Easy
745 Prefix and Suffix Search Python Hard
746 Min Cost Climbing Stairs Python Easy
747 Largest Number At Least Twice of Others Python Easy
748 Shortest Completing Word Python Easy
749 Contain Virus Python Hard
752 Open the Lock Python Java C++ Medium
753 Cracking the Safe Python Hard
754 Reach a Number Python Medium
757 Set Intersection Size At Least Two Python Hard
761 Special Binary String Python Hard
762 Prime Number of Set Bits in Binary Representation Python Easy
763 Partition Labels Python Medium
764 Largest Plus Sign Python Medium
765 Couples Holding Hands Python Hard
766 Toeplitz Matrix Python Easy
767 Reorganize String Python Medium
768 Max Chunks To Make Sorted II Python Medium
769 Max Chunks To Make Sorted Python Medium
771 Jewels and Stones Python Java C++ Easy
773 Sliding Puzzle Python Java C++ Hard
775 Global and Local Inversions Python Medium
777 Swap Adjacent in LR String Python Medium
778 Swim in Rising Water Python Hard
779 K-th Symbol in Grammar Python Medium
780 Reaching Points Python Hard
782 Transform to Chessboard Python Hard
783 Minimum Distance Between BST Nodes Python Easy
784 Letter Case Permutation Python Medium
785 Is Graph Bipartite? Python Medium
786 K-th Smallest Prime Fraction Python Hard
787 Cheapest Flights Within K Stops Python Medium
788 Rotated Digits Python Medium
789 Escape The Ghosts Python Medium
790 Domino and Tromino Tiling Python Medium
791 Custom Sort String Python Medium
792 Number of Matching Subsequences Python Medium
793 Preimage Size of Factorial Zeroes Function Python Hard
794 Valid Tic-Tac-Toe State Python Medium
795 Number of Subarrays with Bounded Maximum Python Medium
796 Rotate String Python Easy
797 All Paths From Source to Target Python Medium
798 Smallest Rotation with Highest Score Python Medium
799 Champagne Tower Python Medium
801 Minimum Swaps To Make Sequences Increasing Python Hard
802 Find Eventual Safe States Python Medium
803 Bricks Falling When Hit Python Hard
804 Unique Morse Code Words Python Easy
805 Split Array With Same Average Python Medium
806 Number of Lines To Write String Python Easy
807 Max Increase to Keep City Skyline Python Medium
808 Soup Servings Python Medium
809 Expressive Words Python Medium
811 Subdomain Visit Count Python Medium
812 Largest Triangle Area Python Easy
813 Largest Sum of Averages Python Medium
814 Binary Tree Pruning Python Medium
815 Bus Routes Python Java C++ Hard
816 Ambiguous Coordinates Python Medium
817 Linked List Components Python Medium
819 Most Common Word Python Easy
821 Shortest Distance to a Character Python Easy
822 Card Flipping Game Python Medium
823 Binary Trees With Factors Python Medium
824 Goat Latin Python Easy
825 Friends Of Appropriate Ages Python Medium
827 Making A Large Island Python Hard
828 Count Unique Characters of All Substrings of a Given String Python Hard
829 Consecutive Numbers Sum Python Hard
830 Positions of Large Groups Python Easy
831 Masking Personal Information Python Medium
832 Flipping an Image Python Easy
833 Find And Replace in String Python Medium
834 Sum of Distances in Tree Python Hard
838 Push Dominoes Python Medium
839 Similar String Groups Python Hard
842 Split Array into Fibonacci Sequence Python Medium
844 Backspace String Compare Python Easy
845 Longest Mountain in Array Python Medium
846 Hand of Straights Python Medium
847 Shortest Path Visiting All Nodes Python Hard
849 Maximize Distance to Closest Person Python Medium
850 Rectangle Area II Python Hard
851 Loud and Rich Python Medium
854 K-Similar Strings Python Hard
855 Exam Room Python Medium
856 Score of Parentheses Python Medium
857 Minimum Cost to Hire K Workers Python Hard
859 Buddy Strings Python Easy
860 Lemonade Change Python Easy
861 Score After Flipping Matrix Python Medium
862 Shortest Subarray with Sum at Least K Python Hard
864 Shortest Path to Get All Keys Python Hard
865 Smallest Subtree with all the Deepest Nodes Python Medium
867 Transpose Matrix Python Easy
868 Binary Gap Python Easy
869 Reordered Power of 2 Python Medium
870 Advantage Shuffle Python Medium
871 Minimum Number of Refueling Stops Python Hard
873 Length of Longest Fibonacci Subsequence Python Medium
874 Walking Robot Simulation Python Medium
875 Koko Eating Bananas Python Medium
876 Middle of the Linked List Python Easy
878 Nth Magical Number Python Hard
881 Boats to Save People Python Medium
882 Reachable Nodes In Subdivided Graph Python Hard
883 Projection Area of 3D Shapes Python Easy
884 Uncommon Words from Two Sentences Python Easy
885 Spiral Matrix III Python Medium
886 Possible Bipartition Python Medium
888 Fair Candy Swap Python Easy
890 Find and Replace Pattern Python Medium
891 Sum of Subsequence Widths Python Hard
895 Maximum Frequency Stack Python Hard
896 Monotonic Array Python Easy
899 Orderly Queue Python Hard
901 Online Stock Span Python Medium
902 Numbers At Most N Given Digit Set Python Hard
904 Fruit Into Baskets Python Medium
905 Sort Array By Parity Python Easy
907 Sum of Subarray Minimums Python Medium
908 Smallest Range I Python Easy
909 Snakes and Ladders Python Java C++ Medium
910 Smallest Range II Python Medium
911 Online Election Python Medium
913 Cat and Mouse Python Hard
915 Partition Array into Disjoint Intervals Python Medium
917 Reverse Only Letters Python Easy
918 Maximum Sum Circular Subarray Python Medium
919 Complete Binary Tree Inserter Python Medium
921 Minimum Add to Make Parentheses Valid Python Medium
922 Sort Array By Parity II Python Easy
925 Long Pressed Name Python Easy
926 Flip String to Monotone Increasing Python Medium
927 Three Equal Parts Python Hard
929 Unique Email Addresses Python Easy
930 Binary Subarrays With Sum Python Java C++ Medium
931 Minimum Falling Path Sum Python Medium
933 Number of Recent Calls Python Easy
934 Shortest Bridge Python Hard
937 Reorder Data in Log Files Python Easy
940 Distinct Subsequences II Python Hard
941 Valid Mountain Array Python Easy
942 DI String Match Python Easy
944 Delete Columns to Make Sorted Python Easy
946 Validate Stack Sequences Python Easy
947 Most Stones Removed with Same Row or Column Python Medium
952 Largest Component Size by Common Factor Python Hard
953 Verifying an Alien Dictionary Python Easy
954 Array of Doubled Pairs Python Medium
959 Regions Cut By Slashes Python Medium
961 N-Repeated Element in Size 2N Array Python Easy
962 Maximum Width Ramp Python Medium
963 Minimum Area Rectangle II Python Medium
964 Least Operators to Express Number Python Hard
965 Univalued Binary Tree Python Easy
966 Vowel Spellchecker Python Medium
967 Numbers With Same Consecutive Differences Python Medium
968 Binary Tree Cameras Python Hard
969 Pancake Sorting Python Medium
970 Powerful Integers Python Easy
971 Flip Binary Tree To Match Preorder Traversal Python Medium
972 Equal Rational Numbers Python Hard
973 K Closest Points to Origin Python Easy
974 Subarray Sums Divisible by K Python Medium
975 Odd Even Jump Python Hard
976 Largest Perimeter Triangle Python Easy
977 Squares of a Sorted Array Python Easy
978 Longest Turbulent Subarray Python Medium
979 Distribute Coins in Binary Tree Python Medium
980 Unique Paths III Python Hard
981 Time Based Key-Value Store Python Java C++ Medium
982 Triples with Bitwise AND Equal To Zero Python Hard
983 Minimum Cost For Tickets Python Medium
984 String Without AAA or BBB Python Easy
985 Sum of Even Numbers After Queries Python Easy
986 Interval List Intersections Python Medium
987 Vertical Order Traversal of a Binary Tree Python Medium
988 Smallest String Starting From Leaf Python Medium
989 Add to Array-Form of Integer Python Easy
994 Rotting Oranges Python Medium
995 Minimum Number of K Consecutive Bit Flips Python Hard
992 Subarrays with K Different Integers Python Hard
997 Find the Town Judge Python Easy
998 Maximum Binary Tree II Python Medium
999 Available Captures for Rook Python Easy
1000 Minimum Cost to Merge Stones Python Hard
1001 Grid Illumination Python Hard
1002 Find Common Characters Python Easy
1003 Check If Word Is Valid After Substitutions Python Medium
1004 Max Consecutive Ones III Python Medium
1005 Maximize Sum Of Array After K Negations Python Easy
1008 Construct Binary Search Tree from Preorder Traversal Python Medium
1009 Complement of Base 10 Integer Python Easy
1010 Pairs of Songs With Total Durations Divisible by 60 Python Medium
1012 Numbers With Repeated Digits Python Hard
1014 Best Sightseeing Pair Python Medium
1015 Smallest Integer Divisible by K Python Medium
1016 Binary String With Substrings Representing 1 To N Python Medium
1017 Convert to Base -2 Python Medium
1018 Binary Prefix Divisible By 5 Python Easy
1019 Next Greater Node In Linked List Python Medium
1020 Number of Enclaves Python Medium
1021 Remove Outermost Parentheses Python Easy
1022 Sum of Root To Leaf Binary Numbers Python Easy
1023 Camelcase Matching Python Medium
1024 Video Stitching Python Medium
1026 Maximum Difference Between Node and Ancestor Python Medium
1027 Longest Arithmetic Subsequence Python Medium
1030 Matrix Cells in Distance Order Python Easy
1031 Maximum Sum of Two Non-Overlapping Subarrays Python Medium
1032 Stream of Characters Python Hard
1033 Moving Stones Until Consecutive Python Medium
1034 Coloring A Border Python Medium
1035 Uncrossed Lines Python Medium
1036 Escape a Large Maze Python Hard
1037 Valid Boomerang Python Easy
1039 Minimum Score Triangulation of Polygon Python Medium
1040 Moving Stones Until Consecutive II Python Medium
1041 Robot Bounded In Circle Python Medium
1042 Flower Planting With No Adjacent Python Medium
1043 Partition Array for Maximum Sum Python Medium
1044 Longest Duplicate Substring Python Hard
1046 Last Stone Weight Python Easy
1048 Longest String Chain Python Medium
1051 Height Checker Python Easy
1052 Grumpy Bookstore Owner Python Medium
1053 Previous Permutation With One Swap Python Medium
1054 Distant Barcodes Python Medium
1072 Flip Columns For Maximum Number of Equal Rows Python Medium
1073 Adding Two Negabinary Numbers Python Medium
1078 Occurrences After Bigram Python Easy
1079 Letter Tile Possibilities Python Medium
1080 Insufficient Nodes in Root to Leaf Paths Python Medium
1089 Duplicate Zeros Python Easy
1090 Largest Values From Labels Python Medium
1091 Shortest Path in Binary Matrix Python Medium
1093 Statistics from a Large Sample Python Medium
1096 Brace Expansion II Python Hard
1105 Filling Bookcase Shelves Python Medium
1106 Parsing A Boolean Expression Python Hard
1108 Defanging an IP Address Python Easy
1109 Corporate Flight Bookings Python Medium
1110 Delete Nodes And Return Forest Python Medium
1122 Relative Sort Array Python Easy
1123 Lowest Common Ancestor of Deepest Leaves Python Medium
1124 Longest Well-Performing Interval Python Medium
1125 Smallest Sufficient Team Python Hard
1128 Number of Equivalent Domino Pairs Python Easy
1129 Shortest Path with Alternating Colors Python Medium
1130 Minimum Cost Tree From Leaf Values Python Medium
1137 N-th Tribonacci Number Python Easy
1138 Alphabet Board Path Python Medium
1139 Largest 1-Bordered Square Python Medium
1140 Stone Game II Python Medium
1143 Longest Common Subsequence Python Medium
1144 Decrease Elements To Make Array Zigzag Python Medium
1145 Binary Tree Coloring Game Python Medium
1147 Longest Chunked Palindrome Decomposition Python Medium
1154 Day of the Year Python Easy
1155 Number of Dice Rolls With Target Sum Python Medium
1156 Swap For Longest Repeated Character Substring Python Medium
1157 Online Majority Element In Subarray Python Hard
1161 Maximum Level Sum of a Binary Tree Python Medium
1163 Last Substring in Lexicographical Order Python Hard
1170 Compare Strings by Frequency of the Smallest Character Python Medium
1171 Remove Zero Sum Consecutive Nodes from Linked List Python Medium
1172 Dinner Plate Stacks Python Hard
1175 Prime Arrangements Python Easy
1177 Can Make Palindrome from Substring Python Medium
1178 Number of Valid Words for Each Puzzle Python Hard
1184 Distance Between Bus Stops Python Easy
1185 Day of the Week Python Easy
1186 Maximum Subarray Sum with One Deletion Python Medium
1187 Make Array Strictly Increasing Python Hard
1189 Maximum Number of Balloons Python Easy
1190 Reverse Substrings Between Each Pair of Parentheses Python Medium
1191 K-Concatenation Maximum Sum Python Medium
1192 Shortest Common Supersequence Python Hard
1200 Minimum Absolute Difference Python Easy
1202 Smallest String With Swaps Python Medium
1203 Sort Items by Groups Respecting Dependencies Python Hard
1206 Design Skiplist Python Hard
1207 Unique Number of Occurrences Python Easy
1208 Get Equal Substrings Within Budget Python Medium
1210 Minimum Moves to Reach Target with Rotations Python Hard
1217 Minimum Cost to Move Chips to The Same Position Python Easy
1218 Longest Arithmetic Subsequence of Given Difference Python Medium
1219 Path with Maximum Gold Python Medium
1220 Count Vowels Permutation Python Hard
1221 Split a String in Balanced Strings Python Easy
1222 Queens That Can Attack the King Python Medium
1223 Dice Roll Simulation Python Hard
1224 Maximum Equal Frequency Python Hard
1232 Check If It Is a Straight Line Python Easy
1233 Remove Sub-Folders from the Filesystem Python Medium
1234 Replace the Substring for Balanced String Python Medium
1235 Maximum Profit in Job Scheduling Python Hard
1237 Find Positive Integer Solution for a Given Equation Python Medium
1238 Circular Permutation in Binary Representation Python Medium
1239 Maximum Length of a Concatenated String with Unique Characters Python Java C++ Medium
1240 Tiling a Rectangle with the Fewest Squares Python Hard
1247 Minimum Swaps to Make Strings Equal Python Medium
1250 Check If It Is a Good Array Python Hard
1252 Cells with Odd Values in a Matrix Python Easy
1253 Reconstruct a 2-Row Binary Matrix Python Medium
1254 Number of Closed Islands Python Medium
1255 Maximum Score Words Formed by Letters Python Hard
1260 Shift 2D Grid Python Easy
1262 Greatest Sum Divisible by Three Python Medium
1263 Minimum Moves to Move a Box to Their Target Location Python Hard
1267 Count Servers that Communicate Python Medium
1277 Count Square Submatrices with All Ones Python Medium
1281 Subtract the Product and Sum of Digits of an Integer Python Easy
1282 Group the People Given the Group Size They Belong To Python Medium
1289 Minimum Falling Path Sum II Python Hard
1290 Convert Binary Number in a Linked List to Integer Python Easy
1302 Deepest Leaves Sum Python Medium
1305 All Elements in Two Binary Search Trees Python Medium
1309 Decrypt String from Alphabet to Integer Mapping Python Easy
1314 Matrix Block Sum Python Medium
1319 Number of Operations to Make Network Connected Python Medium
1326 Minimum Number of Taps to Open to Water a Garden Python Easy
1330 Reverse Subarray To Maximize Array Value Python Medium
1331 Rank Transform of an Array Python Easy
1332 Remove Palindromic Subsequences Python Easy
1333 Filter Restaurants by Vegan-Friendly, Price and Distance Python Medium
1334 Find the City With the Smallest Number of Neighbors at a Threshold Distance Python Medium
1335 Minimum Difficulty of a Job Schedule Python Hard
1337 The K Weakest Rows in a Matrix Python Easy
1342 Number of Steps to Reduce a Number to Zero Python Easy
1343 Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold Python Medium
1344 Angle Between Hands of a Clock Python Medium
1345 Jump Game IV Python Hard
1356 Sort Integers by The Number of 1 Bits Python Easy
1365 How Many Numbers Are Smaller Than the Current Number Python Easy
1367 Linked List in Binary Tree Python Medium
1370 Increasing Decreasing String Python Easy
1373 Maximum Sum BST in Binary Tree Python Hard
1374 Generate a String With Characters That Have Odd Counts Python Easy
1375 Number of Times Binary String Is Prefix-Aligned Python Medium
1376 Time Needed to Inform All Employees Python Medium
1377 Frog Position After T Seconds Python Hard
1380 Lucky Numbers in a Matrix Python Easy
1388 Pizza With 3n Slices Python Hard
1401 Circle and Rectangle Overlapping Python Medium
1402 Reducing Dishes Python Hard
1403 Minimum Subsequence in Non-Increasing Order Python Easy
1404 Number of Steps to Reduce a Number in Binary Representation to One Python Medium
1405 Longest Happy String Python Medium
1408 String Matching in an Array Python Easy
1410 HTML Entity Parser Python Medium
1413 Minimum Value to Get Positive Step by Step Sum Python Easy
1414 Find the Minimum Number of Fibonacci Numbers Whose Sum Is K Python Medium
1415 The k-th Lexicographical String of All Happy Strings of Length n Python Medium
1417 Reformat The String Python Easy
1418 Display Table of Food Orders in a Restaurant Python Java C++ Medium
1419 Minimum Number of Frogs Croaking Python Medium
1422 Maximum Score After Splitting a String Python Easy
1423 Maximum Points You Can Obtain from Cards Python Medium
1436 Destination City Python Easy
1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Python Medium
1439 Find the Kth Smallest Sum of a Matrix With Sorted Rows Python Hard
1441 Build an Array With Stack Operations Python Easy
1444 Number of Ways of Cutting a Pizza Python Hard
1446 Consecutive Characters Python Easy
1447 Simplified Fractions Python Medium
1448 Count Good Nodes in Binary Tree Python Medium
1450 Number of Students Doing Homework at a Given Time Python Easy
1455 Check If a Word Occurs As a Prefix of Any Word in a Sentence Python Easy
1457 Pseudo-Palindromic Paths in a Binary Tree Python Medium
1460 Make Two Arrays Equal by Reversing Sub-arrays Python Easy
1462 Course Schedule IV Python Medium
1464 Maximum Product of Two Elements in an Array Python Easy
1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts Python Medium
1470 Shuffle the Array Python Easy
1475 Final Prices With a Special Discount in a Shop Python Easy
1480 Running Sum of 1d Array Python Easy
1483 Kth Ancestor of a Tree Node Python Hard
1487 Making File Names Unique Python Medium
1488 Avoid Flood in The City Python Medium
1489 Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree Python Hard
1491 Average Salary Excluding the Minimum and Maximum Salary Python Easy
1494 Parallel Courses II Python Hard
1499 Max Value of Equation Python Hard
1502 Can Make Arithmetic Progression From Sequence Python Easy
1518 Water Bottles Python Easy
1523 Count Odd Numbers in an Interval Range Python Easy
1534 Count Good Triplets Python Easy
1535 Find the Winner of an Array Game Python Medium
1536 Minimum Swaps to Arrange a Binary Grid Python Medium
1537 Get the Maximum Score Python Hard
1567 Maximum Length of Subarray With Positive Product Python Medium
1572 Matrix Diagonal Sum Python Easy
1574 Shortest Subarray to be Removed to Make Array Sorted Python Medium
1576 Replace All ?'s to Avoid Consecutive Repeating Characters Python Easy
1579 Remove Max Number of Edges to Keep Graph Fully Traversable Python Hard
1582 Special Positions in a Binary Matrix Python Easy
1583 Count Unhappy Friends Python Medium
1584 Min Cost to Connect All Points Python Medium
1585 Check If String Is Transformable With Substring Sort Operations Python Hard
1588 Sum of All Odd Length Subarrays Python Easy
1590 Make Sum Divisible by P Python Medium
1592 Rearrange Spaces Between Words Python Easy
1593 Split a String Into the Max Number of Unique Substrings Python Medium
1594 Maximum Non Negative Product in a Matrix Python Medium
1595 Minimum Cost to Connect Two Groups of Points Python Hard
1598 Crawler Log Folder Python Easy
1599 Maximum Profit of Operating a Centennial Wheel Python Medium
1600 Throne Inheritance Python Java C++ Medium
1601 Maximum Number of Achievable Transfer Requests Python Hard
1603 Design Parking System Python Easy
1604 Alert Using Same Key-Card Three or More Times in a One Hour Period Python Medium
1605 Find Valid Matrix Given Row and Column Sums Python Medium
1606 Find Servers That Handled Most Number of Requests Python Hard
1608 Special Array With X Elements Greater Than or Equal X Python Easy
1609 Even Odd Tree Python Medium
1610 Maximum Number of Visible Points Python Hard
1614 Maximum Nesting Depth of the Parentheses Python Easy
1615 Maximal Network Rank Python Medium
1616 Split Two Strings to Make Palindrome Python Medium
1617 Count Subtrees With Max Distance Between Cities Python Hard
1619 Mean of Array After Removing Some Elements Python Easy
1620 Coordinate With Maximum Network Quality Python Medium
1624 Largest Substring Between Two Equal Characters Python Easy
1625 Lexicographically Smallest String After Applying Operations Python Medium
1626 Best Team With No Conflicts Python Medium
1629 Slowest Key Python Easy
1630 Arithmetic Subarrays Python Medium
1631 Path With Minimum Effort Python Medium
1632 Rank Transform of a Matrix Python Hard
1636 Sort Array by Increasing Frequency Python Easy
1637 Widest Vertical Area Between Two Points Containing No Points Python Medium
1638 Count Substrings That Differ by One Character Python Medium
1640 Check Array Formation Through Concatenation Python Easy
1641 Count Sorted Vowel Strings Python Medium
1646 Get Maximum in Generated Array Python Easy
1652 Defuse the Bomb Python Easy
1653 Minimum Deletions to Make String Balanced Python Medium
1654 Minimum Jumps to Reach Home Python Medium
1656 Design an Ordered Stream Python Easy
1657 Determine if Two Strings Are Close Python Medium
1658 Minimum Operations to Reduce X to Zero Python Medium
1659 Maximize Grid Happiness Python Hard
1662 Check If Two String Arrays are Equivalent Python Easy
1663 Smallest String With A Given Numeric Value Python Medium
1664 Ways to Make a Fair Array Python Medium
1668 Maximum Repeating Substring Python Easy
1669 Merge In Between Linked Lists Python Medium
1670 Design Front Middle Back Queue Python Medium
1672 Richest Customer Wealth Python Easy
1678 Goal Parser Interpretation Python Easy
1681 Minimum Incompatibility Python Hard
1684 Count the Number of Consistent Strings Python Easy
1687 Delivering Boxes from Storage to Ports Python Hard
1688 Count of Matches in Tournament Python Easy
1689 Partitioning Into Minimum Number Of Deci-Binary Numbers Python Medium
1690 Stone Game VII Python Medium
1691 Maximum Height by Stacking Cuboids Python Hard
1694 Reformat Phone Number Python Easy
1697 Checking Existence of Edge Length Limited Paths Python Hard
1700 Number of Students Unable to Eat Lunch Python Easy
1703 Minimum Adjacent Swaps for K Consecutive Ones Python Hard
1704 Determine if String Halves Are Alike Python Easy
1705 Maximum Number of Eaten Apples Python Medium
1706 Where Will the Ball Fall Python Medium
1710 Maximum Units on a Truck Python Easy
1711 Count Good Meals Python Java C++ Medium
1716 Calculate Money in Leetcode Bank Python Easy
1717 Maximum Score From Removing Substrings Python Medium
1718 Construct the Lexicographically Largest Valid Sequence Python Medium
1719 Number Of Ways To Reconstruct A Tree Python Hard
1725 Number Of Rectangles That Can Form The Largest Square Python Easy
1726 Tuple with Same Product Python Medium
1727 Largest Submatrix With Rearrangements Python Medium
1728 Cat and Mouse II Python Hard
1732 Find the Highest Altitude Python Easy
1739 Building Boxes Python Hard
1742 Maximum Number of Balls in a Box Python Easy
1748 Sum of Unique Elements Python Easy
1749 Maximum Absolute Sum of Any Subarray Python Medium
1750 Minimum Length of String After Deleting Similar Ends Python Medium
1752 Check if Array Is Sorted and Rotated Python Easy
1753 Maximum Score From Removing Stones Python Medium
1754 Largest Merge Of Two Strings Python Medium
1758 Minimum Changes To Make Alternating Binary String Python Easy
1759 Count Number of Homogenous Substrings Python Medium
1760 Minimum Limit of Balls in a Bag Python Medium
1761 Minimum Degree of a Connected Trio in a Graph Python Hard
1763 Longest Nice Substring Python Easy
1764 Form Array by Concatenating Subarrays of Another Array Python Medium
1765 Map of Highest Peak Python Medium
1768 Merge Strings Alternately Python Easy
1769 Minimum Number of Operations to Move All Balls to Each Box Python Medium
1773 Count Items Matching a Rule Python Easy
1774 Closest Dessert Cost Python Medium
1775 Equal Sum Arrays With Minimum Number of Operations Python Medium
1779 Find Nearest Point That Has the Same X or Y Coordinate Python Easy
1780 Check if Number is a Sum of Powers of Three Python Medium
1781 Sum of Beauty of All Substrings Python Medium
1782 Count Pairs Of Nodes Python Hard
1784 Check if Binary String Has at Most One Segment of Ones Python Easy
1785 Minimum Elements to Add to Form a Given Sum Python Medium
1790 Check if One String Swap Can Make Strings Equal Python Easy
1791 Find Center of Star Graph Python Easy
1792 Maximum Average Pass Ratio Python Medium
1796 Second Largest Digit in a String Python Easy
1797 Design Authentication Manager Python Medium
1798 Maximum Number of Consecutive Values You Can Make Python Medium
1799 Maximize Score After N Operations Python Hard
1800 Maximum Ascending Subarray Sum Python Easy
1801 Number of Orders in the Backlog Python Medium
1802 Maximum Value at a Given Index in a Bounded Array Python Medium
1803 Count Pairs With XOR in a Range Python Hard
1805 Number of Different Integers in a String Python Easy
1806 Minimum Number of Operations to Reinitialize a Permutation Python Medium
1807 Evaluate the Bracket Pairs of a String Python Medium
1812 Determine Color of a Chessboard Square Python Easy
1813 Sentence Similarity III Python Medium
1814 Count Nice Pairs in an Array Python Medium
1815 Maximum Number of Groups Getting Fresh Donuts Python Hard
1816 Truncate Sentence Python Easy
1817 Finding the Users Active Minutes Python Medium
1818 Minimum Absolute Sum Difference Python Medium
1819 Number of Different Subsequences GCDs Python Hard
1822 Sign of the Product of an Array Python Easy
1823 Find the Winner of the Circular Game Python Medium
1824 Minimum Sideway Jumps Python Medium
1825 Finding MK Average Python Hard
1827 Minimum Operations to Make the Array Increasing Python Easy
1828 Queries on Number of Points Inside a Circle Python Medium
1832 Check if the Sentence Is Pangram Python Easy
1833 Maximum Ice Cream Bars Python Java C++ Medium
1845 Seat Reservation Manager Python Medium
1846 Maximum Element After Decreasing and Rearranging Python Medium
1851 Minimum Interval to Include Each Query Python Hard
1886 Determine Whether Matrix Can Be Obtained By Rotation Python Easy
1894 Find the Student that Will Replace the Chalk Python Medium
1911 Maximum Alternating Subsequence Sum Python Medium
1921 Eliminate Maximum Number of Monsters Python Medium
1945 Sum of Digits of String After Convert Python Easy
1971 Find if Path Exists in Graph Python Easy
1984 Minimum Difference Between Highest and Lowest of K Scores Python Easy
1985 Find the Kth Largest Integer in the Array Python Medium
1986 Minimum Number of Work Sessions to Finish the Tasks Python Medium
1993 Operations on Tree Python Medium
1994 The Number of Good Subsets Python Hard
1995 Count Special Quadruplets Python Easy
1996 The Number of Weak Characters in the Game Python Medium
1997 First Day Where You Have Been in All the Rooms Python Medium
2000 Reverse Prefix of Word Python Easy
2001 Number of Pairs of Interchangeable Rectangles Python Medium
2002 Maximum Product of the Length of Two Palindromic Subsequences Python Medium
2003 Smallest Missing Genetic Value in Each Subtree Python Hard
2006 Count Number of Pairs With Absolute Difference K Python Easy
2007 Find Original Array From Doubled Array Python Medium
2008 Maximum Earnings From Taxi Python Medium
2011 Final Value of Variable After Performing Operations Python Easy
2012 Sum of Beauty in the Array Python Medium
2013 Detect Squares Python Medium
2016 Maximum Difference Between Increasing Elements Python Easy
2022 Convert 1D Array Into 2D Array Python Easy
2024 Maximize the Confusion of an Exam Python Medium
2027 Minimum Moves to Convert String Python Easy
2028 Find Missing Observations Python Medium
2029 Stone Game IX Python Medium
2032 Two Out of Three Python Easy
2033 Minimum Operations to Make a Uni-Value Grid Python Medium
2034 Stock Price Fluctuation Python Medium
2037 Minimum Number of Moves to Seat Everyone Python Easy
2038 Remove Colored Pieces if Both Neighbors are the Same Color Python Medium
2039 The Time When the Network Becomes Idle Python Medium
2042 Check if Numbers Are Ascending in a Sentence Python Easy
2043 Simple Bank System Python Medium
2044 Count Number of Maximum Bitwise-OR Subsets Python Medium
2045 Second Minimum Time to Reach Destination Python Hard
2047 Number of Valid Words in a Sentence Python Easy
2048 Next Greater Numerically Balanced Number Python Medium
2049 Count Nodes With the Highest Score Python Medium
2050 Parallel Courses III Python Hard
2055 Plates Between Candles Python Medium
2094 Finding 3-Digit Even Numbers Python Easy
2095 Delete the Middle Node of a Linked List Python Medium
2096 Step-By-Step Directions From a Binary Tree Node to Another Python Medium
2099 Find Subsequence of Length K With the Largest Sum Python Easy
2100 Find Good Days to Rob the Bank Python Medium
2101 Detonate the Maximum Bombs Python Medium
2102 Sequentially Ordinal Rank Tracker Python Hard
2103 Rings and Rods Python Easy
2104 Sum of Subarray Ranges Python Medium
2105 Watering Plants II Python Medium
2106 Maximum Fruits Harvested After at Most K Steps Python Hard
2108 Find First Palindromic String in the Array Python Easy
2109 Adding Spaces to a String Python Medium
2110 Number of Smooth Descent Periods of a Stock Python Medium
2111 Minimum Operations to Make the Array K-Increasing Python Hard
2127 Maximum Employees to Be Invited to a Meeting Python Hard
2136 Earliest Possible Day of Full Bloom Python Hard
2178 Maximum Split of Positive Even Integers Python Medium
2180 Count Integers With Even Digit Sum Python Easy
2185 Counting Words With a Given Prefix Python Easy
2208 Minimum Operations to Halve Array Sum Python Medium
2216 Minimum Deletions to Make Array Beautiful Python Easy
2235 Add Two Integers Python Easy
2236 Root Equals Sum of Children Python Easy
2240 Number of Ways to Buy Pens and Pencils Python Medium
2251 Number of Flowers in Full Bloom Python Hard
2258 Escape the Spreading Fire Python Hard
2283 Check if Number Has Equal Digit Count and Digit Value Python Easy
2287 Rearrange Characters to Make Target String Python Easy
2293 Min Max Game Python Easy
2299 Strong Password Checker II Python Easy
2300 Successful Pairs of Spells and Potions Python Medium
2303 Calculate Amount Paid in Taxes Python Easy
2304 Minimum Path Cost in a Grid Python Medium
2309 Greatest English Letter in Upper and Lower Case Python Easy
2315 Count Asterisks Python Easy
2316 Count Unreachable Pairs of Nodes in an Undirected Graph Python Medium
2319 Check if Matrix Is X-Matrix Python Easy
2325 Decode the Message Python Easy
2331 Evaluate Boolean Binary Tree Python Easy
2335 Minimum Amount of Time to Fill Cups Python Easy
2336 Smallest Number in Infinite Set Python Medium
2337 Move Pieces to Obtain a String Python Medium
2341 Maximum Number of Pairs in Array Python Easy
2342 Max Sum of a Pair With Equal Sum of Digits Python Medium
2347 Best Poker Hand Python Easy
2351 First Letter to Appear Twice Python Easy
2352 Equal Row and Column Pairs Python Medium
2357 Make Array Zero by Subtracting Equal Amounts Python Easy
2363 Merge Similar Items Python Easy
2367 Number of Arithmetic Triplets Python Easy
2373 Largest Local Values in a Matrix Python Easy
2379 Minimum Recolors to Get K Consecutive Black Blocks Python Easy
2383 Minimum Hours of Training to Win a Competition Python Easy
2389 Longest Subsequence With Limited Sum Python Easy
2395 Find Subarrays With Equal Sum Python Easy
2399 Check Distances Between Same Letters Python Easy
2404 Most Frequent Even Element Python Easy
2409 Count Days Spent Together Python Easy
2413 Smallest Even Multiple Python Easy
2418 Sort the People Python Easy
2423 Remove Letter To Equalize Frequency Python Easy
2427 Number of Common Factors Python Easy
2432 The Employee That Worked on the Longest Task Python Easy
2437 Convert the Temperature Python Easy
2441 Largest Positive Integer That Exists With Its Negative Python Easy
2446 Determine if Two Events Have Conflict Python Easy
2451 Odd String Difference Python Easy
2455 Average Value of Even Numbers That Are Divisible by Three Python Easy
2460 Apply Operations to an Array Python Easy
2465 Number of Distinct Averages Python Easy
2469 Number of Valid Clock Times Python Easy
2475 Number of Unequal Triplets in Array Python Easy
2481 Minimum Cuts to Divide a Circle Python Easy
2485 Find the Pivot Integer Python Easy
2488 Count Subarrays With Median K Python Hard
2490 Circular Sentence Python Medium
2496 Maximum Value of a String in an Array Python Easy
2500 Delete Greatest Value in Each Row Python Easy
2511 Maximum Enemy Forts That Can Be Captured Python Easy
2512 Reward Top K Students Python Medium
2517 Maximum Tastiness of Candy Basket Python Medium
2520 Count the Digits That Divide a Number Python Easy
2525 Categorize Box According to Criteria Python Easy
2530 Maximal Score After Applying K Operations Python Medium
2532 Time to Cross a Bridge Python Hard
2544 Alternating Digit Sum Python Easy
2558 Take Gifts From the Richest Pile Python Easy
2559 Handling Sum Queries After Update Python Medium
2560 House Robber IV Python Medium
2562 Find the Array Concatenation Value Python Medium
2569 Count Vowel Strings in Ranges Python Hard
2578 Split With Minimum Sum Python Easy
2582 Pass the Pillow Python Easy
2586 Count the Number of Vowel Strings in Range Python Easy
2591 Distribute Money to Maximum Children Python Easy
2594 Minimum Time to Repair Cars Python Medium
2596 Check Knight Tour Configuration Python Medium
2600 K Items With the Maximum Sum Python Easy
2603 Collect Coins in a Tree Python Hard
2605 Form Smallest Number From Two Digit Arrays Python Easy
2609 Find the Longest Balanced Substring of a Binary String Python Easy
2611 Mice and Cheese Python Medium
2651 Calculate Delayed Arrival Time Python Easy
2652 Sum Multiples Python Easy
2656 Maximum Sum With Exactly K Elements Python Easy
2678 Number of Senior Citizens Python Easy
2679 Sum in a Matrix Python Medium
2681 Power of Heroes Python Hard
2682 Find the Losers of the Circular Game Python Easy
2698 Find the Punishment Number of an Integer Python Medium
2699 Modify Graph Edge Weights Python Hard
2731 Movement of Robots Python Medium
2736 Maximum Sum Queries Python Hard
2760 Longest Even Odd Subarray With Threshold Python Easy
2824 Count Pairs Whose Sum is Less than Target Python Easy
3099 Harshad Number Python Easy
3100 Water Bottles II Python Medium
3101 Count Alternating Subarrays Python Medium
3102 Minimize Manhattan Distances Python Hard

About

LeetCode Solutions in Python, Java and C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published