LeetCode 刷题记录

#TitleDifficultySolution(66/1188)
1Two SumEasyPython
2Add Two NumbersMediumPython
3Longest Substring Without Repeating CharactersMediumPython
4Median of Two Sorted ArraysHard
5Longest Palindromic SubstringMedium
6ZigZag ConversionMedium
7Reverse IntegerEasyPython
8String to Integer (atoi)Medium
9Palindrome NumberEasy
10Regular Expression MatchingHard
11Container With Most WaterMedium
12Integer to RomanMedium
13Roman to IntegerEasy
14Longest Common PrefixEasy
153SumMedium
163Sum ClosestMedium
17Letter Combinations of a Phone NumberMedium
184SumMedium
19Remove Nth Node From End of ListMediumPython
20Valid ParenthesesEasy
21Merge Two Sorted ListsEasyC++, Python
22Generate ParenthesesMedium
23Merge k Sorted ListsHardC++, Python
24Swap Nodes in PairsMediumPython
25Reverse Nodes in k-GroupHardPython
26Remove Duplicates from Sorted ArrayEasyC++
27Remove ElementEasyC++
28Implement strStr()Easy
29Divide Two IntegersMedium
30Substring with Concatenation of All WordsHard
31Next PermutationMedium
32Longest Valid ParenthesesHard
33Search in Rotated Sorted ArrayMedium
34Find First and Last Position of Element in Sorted ArrayMedium
35Search Insert PositionEasy
36Valid SudokuMedium
37Sudoku SolverHard
38Count and SayEasy
39Combination SumMedium
40Combination Sum IIMediumPython
41First Missing PositiveHardPython
42Trapping Rain WaterHard
43Multiply StringsMedium
44Wildcard MatchingHard
45Jump Game IIHard
46PermutationsMedium
47Permutations IIMedium
48Rotate ImageMedium
49Group AnagramsMedium
50Pow(x, n)Medium
51N-QueensHardPython
52N-Queens IIHardPython
53Maximum SubarrayEasyPython
54Spiral MatrixMedium
55Jump GameMedium
56Merge IntervalsMedium
57Insert IntervalHard
58Length of Last WordEasy
59Spiral Matrix IIMedium
60Permutation SequenceMedium
61Rotate ListMediumPython
62Unique PathsMedium
63Unique Paths IIMedium
64Minimum Path SumMedium
65Valid NumberHard
66Plus OneEasy
67Add BinaryEasy
68Text JustificationHard
69Sqrt(x)Easy
70Climbing StairsEasyPython
71Simplify PathMedium
72Edit DistanceHard
73Set Matrix ZeroesMedium
74Search a 2D MatrixMediumPython
75Sort ColorsMedium
76Minimum Window SubstringHard
77CombinationsMedium
78SubsetsMedium
79Word SearchMediumPython
80Remove Duplicates from Sorted Array IIMediumC++
81Search in Rotated Sorted Array IIMedium
82Remove Duplicates from Sorted List IIMediumPython
83Remove Duplicates from Sorted ListEasyPython
84Largest Rectangle in HistogramHard
85Maximal RectangleHard
86Partition ListMediumPython
87Scramble StringHard
88Merge Sorted ArrayEasyC++
89Gray CodeMedium
90Subsets IIMedium
91Decode WaysMedium
92Reverse Linked List IIMedium
93Restore IP AddressesMedium
94Binary Tree Inorder TraversalMedium
95Unique Binary Search Trees IIMedium
96Unique Binary Search TreesMedium
97Interleaving StringHard
98Validate Binary Search TreeMedium
99Recover Binary Search TreeHard
100Same TreeEasy
101Symmetric TreeEasy
102Binary Tree Level Order TraversalMedium
103Binary Tree Zigzag Level Order TraversalMedium
104Maximum Depth of Binary TreeEasy
105Construct Binary Tree from Preorder and Inorder TraversalMedium
106Construct Binary Tree from Inorder and Postorder TraversalMedium
107Binary Tree Level Order Traversal IIEasy
108Convert Sorted Array to Binary Search TreeEasyPython
109Convert Sorted List to Binary Search TreeMediumPython
110Balanced Binary TreeEasy
111Minimum Depth of Binary TreeEasy
112Path SumEasy
113Path Sum IIMedium
114Flatten Binary Tree to Linked ListMedium
115Distinct SubsequencesHard
116Populating Next Right Pointers in Each NodeMedium
117Populating Next Right Pointers in Each Node IIMedium
118Pascal’s TriangleEasy
119Pascal’s Triangle IIEasy
120TriangleMedium
121Best Time to Buy and Sell StockEasy
122Best Time to Buy and Sell Stock IIEasy
123Best Time to Buy and Sell Stock IIIHard
124Binary Tree Maximum Path SumHard
125Valid PalindromeEasy
126Word Ladder IIHard
127Word LadderMedium
128Longest Consecutive SequenceHard
129Sum Root to Leaf NumbersMedium
130Surrounded RegionsMedium
131Palindrome PartitioningMedium
132Palindrome Partitioning IIHard
133Clone GraphMedium
134Gas StationMedium
135CandyHard
136Single NumberEasy
137Single Number IIMedium
138Copy List with Random PointerMediumPython
139Word BreakMediumPython
140Word Break IIHardPython
141Linked List CycleEasyPython
142Linked List Cycle IIMediumPython
143Reorder ListMediumPython
144Binary Tree Preorder TraversalMedium
145Binary Tree Postorder TraversalHard
146LRU CacheMedium
147Insertion Sort ListMediumPython
148Sort ListMediumPython
149Max Points on a LineHard
150Evaluate Reverse Polish NotationMedium
151Reverse Words in a StringMedium
152Maximum Product SubarrayMedium
153Find Minimum in Rotated Sorted ArrayMedium
154Find Minimum in Rotated Sorted Array IIHard
155Min StackEasy
156Binary Tree Upside Down🔒Medium
157Read N Characters Given Read4🔒Easy
158Read N Characters Given Read4 II - Call multiple times🔒Hard
159Longest Substring with At Most Two Distinct Characters🔒Hard
160Intersection of Two Linked ListsEasyPython
161One Edit Distance🔒Medium
162Find Peak ElementMedium
163Missing Ranges🔒Medium
164Maximum GapHard
165Compare Version NumbersMedium
166Fraction to Recurring DecimalMedium
167Two Sum II - Input array is sortedEasy
168Excel Sheet Column TitleEasy
169Majority ElementEasy
170Two Sum III - Data structure design🔒Easy
171Excel Sheet Column NumberEasy
172Factorial Trailing ZeroesEasy
173Binary Search Tree IteratorMedium
174Dungeon GameHard
175Combine Two TablesEasy
176Second Highest SalaryEasy
177Nth Highest SalaryMedium
178Rank ScoresMedium
179Largest NumberMedium
180Consecutive NumbersMedium
181Employees Earning More Than Their ManagersEasy
182Duplicate EmailsEasy
183Customers Who Never OrderEasy
184Department Highest SalaryMedium
185Department Top Three SalariesHard
186Reverse Words in a String II🔒Medium
187Repeated DNA SequencesMedium
188Best Time to Buy and Sell Stock IVHard
189Rotate ArrayEasy
190Reverse BitsEasy
191Number of 1 BitsEasy
192Word FrequencyMedium
193Valid Phone NumbersEasy
194Transpose FileMedium
195Tenth LineEasy
196Delete Duplicate EmailsEasy
197Rising TemperatureEasy
198House RobberEasyPython
199Binary Tree Right Side ViewMedium
200Number of IslandsMedium
201Bitwise AND of Numbers RangeMedium
202Happy NumberEasy
203Remove Linked List ElementsEasyPython
204Count PrimesEasy
205Isomorphic StringsEasy
206Reverse Linked ListEasyPython
207Course ScheduleMedium
208Implement Trie (Prefix Tree)Medium
209Minimum Size Subarray SumMedium
210Course Schedule IIMedium
211Add and Search Word - Data structure designMedium
212Word Search IIHard
213House Robber IIMedium
214Shortest PalindromeHard
215Kth Largest Element in an ArrayMedium
216Combination Sum IIIMedium
217Contains DuplicateEasy
218The Skyline ProblemHard
219Contains Duplicate IIEasy
220Contains Duplicate IIIMedium
221Maximal SquareMedium
222Count Complete Tree NodesMedium
223Rectangle AreaMedium
224Basic CalculatorHard
225Implement Stack using QueuesEasy
226Invert Binary TreeEasy
227Basic Calculator IIMedium
228Summary RangesMedium
229Majority Element IIMedium
230Kth Smallest Element in a BSTMedium
231Power of TwoEasy
232Implement Queue using StacksEasy
233Number of Digit OneHard
234Palindrome Linked ListEasyPython
235Lowest Common Ancestor of a Binary Search TreeEasy
236Lowest Common Ancestor of a Binary TreeMedium
237Delete Node in a Linked ListEasyPython
238Product of Array Except SelfMedium
239Sliding Window MaximumHard
240Search a 2D Matrix IIMedium
241Different Ways to Add ParenthesesMedium
242Valid AnagramEasy
243Shortest Word Distance🔒Easy
244Shortest Word Distance II🔒Medium
245Shortest Word Distance III🔒Medium
246Strobogrammatic Number🔒Easy
247Strobogrammatic Number II🔒Medium
248Strobogrammatic Number III🔒Hard
249Group Shifted Strings🔒Medium
250Count Univalue Subtrees🔒Medium
251Flatten 2D Vector🔒Medium
252Meeting Rooms🔒Easy
253Meeting Rooms II🔒Medium
254Factor Combinations🔒Medium
255Verify Preorder Sequence in Binary Search Tree🔒Medium
256Paint House🔒Easy
257Binary Tree PathsEasy
258Add DigitsEasy
2593Sum Smaller🔒Medium
260Single Number IIIMedium
261Graph Valid Tree🔒Medium
262Trips and UsersHard
263Ugly NumberEasy
264Ugly Number IIMedium
265Paint House II🔒Hard
266Palindrome Permutation🔒Easy
267Palindrome Permutation II🔒Medium
268Missing NumberEasy
269Alien Dictionary🔒Hard
270Closest Binary Search Tree Value🔒Easy
271Encode and Decode Strings🔒Medium
272Closest Binary Search Tree Value II🔒Hard
273Integer to English WordsHard
274H-IndexMedium
275H-Index IIMedium
276Paint Fence🔒Easy
277Find the Celebrity🔒Medium
278First Bad VersionEasy
279Perfect SquaresMedium
280Wiggle Sort🔒Medium
281Zigzag Iterator🔒Medium
282Expression Add OperatorsHard
283Move ZeroesEasyC++, Python
284Peeking IteratorMedium
285Inorder Successor in BST🔒Medium
286Walls and Gates🔒Medium
287Find the Duplicate NumberMedium
288Unique Word Abbreviation🔒Medium
289Game of LifeMediumPython
290Word PatternEasy
291Word Pattern II🔒Hard
292Nim GameEasy
293Flip Game🔒Easy
294Flip Game II🔒Medium
295Find Median from Data StreamHard
296Best Meeting Point🔒Hard
297Serialize and Deserialize Binary TreeHard
298Binary Tree Longest Consecutive Sequence🔒Medium
299Bulls and CowsEasy
300Longest Increasing SubsequenceMedium
301Remove Invalid ParenthesesHard
302Smallest Rectangle Enclosing Black Pixels🔒Hard
303Range Sum Query - ImmutableEasy
304Range Sum Query 2D - ImmutableMedium
305Number of Islands II🔒Hard
306Additive NumberMedium
307Range Sum Query - MutableMedium
308Range Sum Query 2D - Mutable🔒Hard
309Best Time to Buy and Sell Stock with CooldownMedium
310Minimum Height TreesMedium
311Sparse Matrix Multiplication🔒Medium
312Burst BalloonsHard
313Super Ugly NumberMedium
314Binary Tree Vertical Order Traversal🔒Medium
315Count of Smaller Numbers After SelfHard
316Remove Duplicate LettersHard
317Shortest Distance from All Buildings🔒Hard
318Maximum Product of Word LengthsMedium
319Bulb SwitcherMedium
320Generalized Abbreviation🔒Medium
321Create Maximum NumberHard
322Coin ChangeMediumPython
323Number of Connected Components in an Undirected Graph🔒Medium
324Wiggle Sort IIMedium
325Maximum Size Subarray Sum Equals k🔒Medium
326Power of ThreeEasy
327Count of Range SumHard
328Odd Even Linked ListMediumPython
329Longest Increasing Path in a MatrixHard
330Patching ArrayHard
331Verify Preorder Serialization of a Binary TreeMedium
332Reconstruct ItineraryMedium
333Largest BST Subtree🔒Medium
334Increasing Triplet SubsequenceMedium
335Self CrossingHard
336Palindrome PairsHard
337House Robber IIIMedium
338Counting BitsMedium
339Nested List Weight Sum🔒Easy
340Longest Substring with At Most K Distinct Characters🔒Hard
341Flatten Nested List IteratorMedium
342Power of FourEasy
343Integer BreakMedium
344Reverse StringEasy
345Reverse Vowels of a StringEasy
346Moving Average from Data Stream🔒Easy
347Top K Frequent ElementsMedium
348Design Tic-Tac-Toe🔒Medium
349Intersection of Two ArraysEasy
350Intersection of Two Arrays IIEasy
351Android Unlock Patterns🔒Medium
352Data Stream as Disjoint IntervalsHard
353Design Snake Game🔒Medium
354Russian Doll EnvelopesHard
355Design TwitterMedium
356Line Reflection🔒Medium
357Count Numbers with Unique DigitsMedium
358Rearrange String k Distance Apart🔒Hard
359Logger Rate Limiter🔒Easy
360Sort Transformed Array🔒Medium
361Bomb Enemy🔒Medium
362Design Hit Counter🔒Medium
363Max Sum of Rectangle No Larger Than KHard
364Nested List Weight Sum II🔒Medium
365Water and Jug ProblemMedium
366Find Leaves of Binary Tree🔒Medium
367Valid Perfect SquareEasy
368Largest Divisible SubsetMedium
369Plus One Linked List🔒Medium
370Range Addition🔒Medium
371Sum of Two IntegersEasy
372Super PowMedium
373Find K Pairs with Smallest SumsMedium
374Guess Number Higher or LowerEasy
375Guess Number Higher or Lower IIMedium
376Wiggle SubsequenceMedium
377Combination Sum IVMedium
378Kth Smallest Element in a Sorted MatrixMedium
379Design Phone Directory🔒Medium
380Insert Delete GetRandom O(1)Medium
381Insert Delete GetRandom O(1) - Duplicates allowedHard
382Linked List Random NodeMedium
383Ransom NoteEasy
384Shuffle an ArrayMedium
385Mini ParserMedium
386Lexicographical NumbersMedium
387First Unique Character in a StringEasy
388Longest Absolute File PathMedium
389Find the DifferenceEasy
390Elimination GameMedium
391Perfect RectangleHard
392Is SubsequenceMedium
393UTF-8 ValidationMedium
394Decode StringMedium
395Longest Substring with At Least K Repeating CharactersMedium
396Rotate FunctionMedium
397Integer ReplacementMedium
398Random Pick IndexMedium
399Evaluate DivisionMedium
400Nth DigitEasy
401Binary WatchEasy
402Remove K DigitsMedium
403Frog JumpHard
404Sum of Left LeavesEasy
405Convert a Number to HexadecimalEasy
406Queue Reconstruction by HeightMedium
407Trapping Rain Water IIHard
408Valid Word Abbreviation🔒Easy
409Longest PalindromeEasy
410Split Array Largest SumHard
411Minimum Unique Word Abbreviation🔒Hard
412Fizz BuzzEasy
413Arithmetic SlicesMedium
414Third Maximum NumberEasyPython
415Add StringsEasy
416Partition Equal Subset SumMedium
417Pacific Atlantic Water FlowMedium
418Sentence Screen Fitting🔒Medium
419Battleships in a BoardMedium
420Strong Password CheckerHard
421Maximum XOR of Two Numbers in an ArrayMedium
422Valid Word Square🔒Easy
423Reconstruct Original Digits from EnglishMedium
424Longest Repeating Character ReplacementMedium
425Word Squares🔒Hard
426Convert Binary Search Tree to Sorted Doubly Linked List🔒Medium
427Construct Quad TreeMedium
428Serialize and Deserialize N-ary Tree🔒Hard
429N-ary Tree Level Order TraversalEasy
430Flatten a Multilevel Doubly Linked ListMediumPython
431Encode N-ary Tree to Binary Tree🔒Hard
432All O`one Data StructureHard
433Minimum Genetic MutationMedium
434Number of Segments in a StringEasy
435Non-overlapping IntervalsMedium
436Find Right IntervalMedium
437Path Sum IIIEasy
438Find All Anagrams in a StringMedium
439Ternary Expression Parser🔒Medium
440K-th Smallest in Lexicographical OrderHard
441Arranging CoinsEasy
442Find All Duplicates in an ArrayMedium
443String CompressionEasy
444Sequence Reconstruction🔒Medium
445Add Two Numbers IIMediumPython
446Arithmetic Slices II - SubsequenceHard
447Number of BoomerangsEasy
448Find All Numbers Disappeared in an ArrayEasyPython
449Serialize and Deserialize BSTMedium
450Delete Node in a BSTMedium
451Sort Characters By FrequencyMedium
452Minimum Number of Arrows to Burst BalloonsMedium
453Minimum Moves to Equal Array ElementsEasy
4544Sum IIMedium
455Assign CookiesEasy
456132 PatternMedium
457Circular Array LoopMedium
458Poor PigsHard
459Repeated Substring PatternEasy
460LFU CacheHard
461Hamming DistanceEasy
462Minimum Moves to Equal Array Elements IIMedium
463Island PerimeterEasy
464Can I WinMedium
465Optimal Account Balancing🔒Hard
466Count The RepetitionsHard
467Unique Substrings in Wraparound StringMedium
468Validate IP AddressMedium
469Convex Polygon🔒Medium
470Implement Rand10() Using Rand7()Medium
471Encode String with Shortest Length🔒Hard
472Concatenated WordsHard
473Matchsticks to SquareMedium
474Ones and ZeroesMedium
475HeatersEasy
476Number ComplementEasy
477Total Hamming DistanceMedium
478Generate Random Point in a CircleMedium
479Largest Palindrome ProductHard
480Sliding Window MedianHard
481Magical StringMedium
482License Key FormattingEasy
483Smallest Good BaseHard
484Find Permutation🔒Medium
485Max Consecutive OnesEasy
486Predict the WinnerMedium
487Max Consecutive Ones II🔒Medium
488Zuma GameHard
489Robot Room Cleaner🔒Hard
490The Maze🔒Medium
491Increasing SubsequencesMedium
492Construct the RectangleEasy
493Reverse PairsHard
494Target SumMedium
495Teemo AttackingMediumPython
496Next Greater Element IEasy
497Random Point in Non-overlapping RectanglesMedium
498Diagonal TraverseMedium
499The Maze III🔒Hard
500Keyboard RowEasy
501Find Mode in Binary Search TreeEasy
502IPOHard
503Next Greater Element IIMedium
504Base 7Easy
505The Maze II🔒Medium
506Relative RanksEasy
507Perfect NumberEasy
508Most Frequent Subtree SumMedium
509Fibonacci NumberEasyPython
510Inorder Successor in BST II🔒Medium
511Game Play Analysis I🔒Easy
512Game Play Analysis II🔒Easy
513Find Bottom Left Tree ValueMedium
514Freedom TrailHard
515Find Largest Value in Each Tree RowMedium
516Longest Palindromic SubsequenceMedium
517Super Washing MachinesHard
518Coin Change 2MediumPython
519Random Flip MatrixMedium
520Detect CapitalEasy
521Longest Uncommon Subsequence IEasy
522Longest Uncommon Subsequence IIMedium
523Continuous Subarray SumMedium
524Longest Word in Dictionary through DeletingMedium
525Contiguous ArrayMedium
526Beautiful ArrangementMedium
527Word Abbreviation🔒Hard
528Random Pick with WeightMedium
529MinesweeperMedium
530Minimum Absolute Difference in BSTEasy
531Lonely Pixel I🔒Medium
532K-diff Pairs in an ArrayEasy
533Lonely Pixel II🔒Medium
534Game Play Analysis III🔒Medium
535Encode and Decode TinyURLMedium
536Construct Binary Tree from String🔒Medium
537Complex Number MultiplicationMedium
538Convert BST to Greater TreeEasy
539Minimum Time DifferenceMedium
540Single Element in a Sorted ArrayMedium
541Reverse String IIEasy
54201 MatrixMedium
543Diameter of Binary TreeEasy
544Output Contest Matches🔒Medium
545Boundary of Binary Tree🔒Medium
546Remove BoxesHard
547Friend CirclesMedium
548Split Array with Equal Sum🔒Medium
549Binary Tree Longest Consecutive Sequence II🔒Medium
550Game Play Analysis IV🔒Medium
551Student Attendance Record IEasy
552Student Attendance Record IIHard
553Optimal DivisionMedium
554Brick WallMedium
555Split Concatenated Strings🔒Medium
556Next Greater Element IIIMedium
557Reverse Words in a String IIIEasy
558Quad Tree IntersectionEasy
559Maximum Depth of N-ary TreeEasy
560Subarray Sum Equals KMedium
561Array Partition IEasy
562Longest Line of Consecutive One in Matrix🔒Medium
563Binary Tree TiltEasy
564Find the Closest PalindromeHard
565Array NestingMedium
566Reshape the MatrixEasy
567Permutation in StringMedium
568Maximum Vacation Days🔒Hard
569Median Employee Salary🔒Hard
570Managers with at Least 5 Direct Reports🔒Medium
571Find Median Given Frequency of Numbers🔒Hard
572Subtree of Another TreeEasy
573Squirrel Simulation🔒Medium
574Winning Candidate🔒Medium
575Distribute CandiesEasy
576Out of Boundary PathsMedium
577Employee Bonus🔒Easy
578Get Highest Answer Rate Question🔒Medium
579Find Cumulative Salary of an Employee🔒Hard
580Count Student Number in Departments🔒Medium
581Shortest Unsorted Continuous SubarrayEasy
582Kill Process🔒Medium
583Delete Operation for Two StringsMedium
584Find Customer Referee🔒Easy
585Investments in 2016🔒Medium
586Customer Placing the Largest Number of Orders🔒Easy
587Erect the FenceHard
588Design In-Memory File System🔒Hard
589N-ary Tree Preorder TraversalEasy
590N-ary Tree Postorder TraversalEasy
591Tag ValidatorHard
592Fraction Addition and SubtractionMedium
593Valid SquareMedium
594Longest Harmonious SubsequenceEasy
595Big CountriesEasy
596Classes More Than 5 StudentsEasy
597Friend Requests I: Overall Acceptance Rate🔒Easy
598Range Addition IIEasy
599Minimum Index Sum of Two ListsEasy
600Non-negative Integers without Consecutive OnesHard
601Human Traffic of StadiumHard
602Friend Requests II: Who Has the Most Friends🔒Medium
603Consecutive Available Seats🔒Easy
604Design Compressed String Iterator🔒Easy
605Can Place FlowersEasy
606Construct String from Binary TreeEasy
607Sales Person🔒Easy
608Tree Node🔒Medium
609Find Duplicate File in SystemMedium
610Triangle Judgement🔒Easy
611Valid Triangle NumberMedium
612Shortest Distance in a Plane🔒Medium
613Shortest Distance in a Line🔒Easy
614Second Degree Follower🔒Medium
615Average Salary: Departments VS Company🔒Hard
616Add Bold Tag in String🔒Medium
617Merge Two Binary TreesEasy
618Students Report By Geography🔒Hard
619Biggest Single Number🔒Easy
620Not Boring MoviesEasy
621Task SchedulerMedium
622Design Circular QueueMedium
623Add One Row to TreeMedium
624Maximum Distance in Arrays🔒Easy
625Minimum Factorization🔒Medium
626Exchange SeatsMedium
627Swap SalaryEasy
628Maximum Product of Three NumbersEasy
629K Inverse Pairs ArrayHard
630Course Schedule IIIHard
631Design Excel Sum Formula🔒Hard
632Smallest Range Covering Elements from K ListsHard
633Sum of Square NumbersEasy
634Find the Derangement of An Array🔒Medium
635Design Log Storage System🔒Medium
636Exclusive Time of FunctionsMedium
637Average of Levels in Binary TreeEasy
638Shopping OffersMedium
639Decode Ways IIHard
640Solve the EquationMedium
641Design Circular DequeMedium
642Design Search Autocomplete System🔒Hard
643Maximum Average Subarray IEasy
644Maximum Average Subarray II🔒Hard
645Set MismatchEasy
646Maximum Length of Pair ChainMedium
647Palindromic SubstringsMedium
648Replace WordsMedium
649Dota2 SenateMedium
6502 Keys KeyboardMedium
6514 Keys Keyboard🔒Medium
652Find Duplicate SubtreesMedium
653Two Sum IV - Input is a BSTEasy
654Maximum Binary TreeMedium
655Print Binary TreeMedium
656Coin Path🔒Hard
657Robot Return to OriginEasy
658Find K Closest ElementsMedium
659Split Array into Consecutive SubsequencesMedium
660Remove 9🔒Hard
661Image SmootherEasy
662Maximum Width of Binary TreeMedium
663Equal Tree Partition🔒Medium
664Strange PrinterHard
665Non-decreasing ArrayEasy
666Path Sum IV🔒Medium
667Beautiful Arrangement IIMedium
668Kth Smallest Number in Multiplication TableHard
669Trim a Binary Search TreeEasy
670Maximum SwapMediumPython
671Second Minimum Node In a Binary TreeEasy
672Bulb Switcher IIMedium
673Number of Longest Increasing SubsequenceMedium
674Longest Continuous Increasing SubsequenceEasy
675Cut Off Trees for Golf EventHard
676Implement Magic DictionaryMedium
677Map Sum PairsMedium
678Valid Parenthesis StringMedium
67924 GameHard
680Valid Palindrome IIEasy
681Next Closest Time🔒Medium
682Baseball GameEasy
683K Empty Slots🔒Hard
684Redundant ConnectionMedium
685Redundant Connection IIHard
686Repeated String MatchEasy
687Longest Univalue PathEasy
688Knight Probability in ChessboardMedium
689Maximum Sum of 3 Non-Overlapping SubarraysHard
690Employee ImportanceEasy
691Stickers to Spell WordHard
692Top K Frequent WordsMedium
693Binary Number with Alternating BitsEasy
694Number of Distinct Islands🔒Medium
695Max Area of IslandMedium
696Count Binary SubstringsEasy
697Degree of an ArrayEasy
698Partition to K Equal Sum SubsetsMedium
699Falling SquaresHard
700Search in a Binary Search TreeEasy
701Insert into a Binary Search TreeMedium
702Search in a Sorted Array of Unknown Size🔒Medium
703Kth Largest Element in a StreamEasy
704Binary SearchEasy
705Design HashSetEasy
706Design HashMapEasy
707Design Linked ListEasyPython
708Insert into a Cyclic Sorted List🔒Medium
709To Lower CaseEasy
710Random Pick with BlacklistHard
711Number of Distinct Islands II🔒Hard
712Minimum ASCII Delete Sum for Two StringsMedium
713Subarray Product Less Than KMedium
714Best Time to Buy and Sell Stock with Transaction FeeMedium
715Range ModuleHard
716Max Stack🔒Easy
7171-bit and 2-bit CharactersEasy
718Maximum Length of Repeated SubarrayMedium
719Find K-th Smallest Pair DistanceHard
720Longest Word in DictionaryEasy
721Accounts MergeMedium
722Remove CommentsMedium
723Candy Crush🔒Medium
724Find Pivot IndexEasy
725Split Linked List in PartsMediumPython
726Number of AtomsHard
727Minimum Window Subsequence🔒Hard
728Self Dividing NumbersEasy
729My Calendar IMedium
730Count Different Palindromic SubsequencesHard
731My Calendar IIMedium
732My Calendar IIIHard
733Flood FillEasy
734Sentence Similarity🔒Easy
735Asteroid CollisionMedium
736Parse Lisp ExpressionHard
737Sentence Similarity II🔒Medium
738Monotone Increasing DigitsMedium
739Daily TemperaturesMedium
740Delete and EarnMedium
741Cherry PickupHard
742Closest Leaf in a Binary Tree🔒Medium
743Network Delay TimeMedium
744Find Smallest Letter Greater Than TargetEasy
745Prefix and Suffix SearchHard
746Min Cost Climbing StairsEasyPython
747Largest Number At Least Twice of OthersEasy
748Shortest Completing WordEasy
749Contain VirusHard
750Number Of Corner Rectangles🔒Medium
751IP to CIDR🔒Easy
752Open the LockMedium
753Cracking the SafeHard
754Reach a NumberEasy
755Pour Water🔒Medium
756Pyramid Transition MatrixMedium
757Set Intersection Size At Least TwoHard
758Bold Words in String🔒Easy
759Employee Free Time🔒Hard
760Find Anagram Mappings🔒Easy
761Special Binary StringHard
762Prime Number of Set Bits in Binary RepresentationEasy
763Partition LabelsMedium
764Largest Plus SignMedium
765Couples Holding HandsHard
766Toeplitz MatrixEasy
767Reorganize StringMedium
768Max Chunks To Make Sorted IIHard
769Max Chunks To Make SortedMedium
770Basic Calculator IVHard
771Jewels and StonesEasy
772Basic Calculator III🔒Hard
773Sliding PuzzleHard
774Minimize Max Distance to Gas Station🔒Hard
775Global and Local InversionsMedium
776Split BST🔒Medium
777Swap Adjacent in LR StringMedium
778Swim in Rising WaterHard
779K-th Symbol in GrammarMedium
780Reaching PointsHard
781Rabbits in ForestMedium
782Transform to ChessboardHard
783Minimum Distance Between BST NodesEasy
784Letter Case PermutationEasy
785Is Graph Bipartite?Medium
786K-th Smallest Prime FractionHard
787Cheapest Flights Within K StopsMedium
788Rotated DigitsEasy
789Escape The GhostsMedium
790Domino and Tromino TilingMediumPython
791Custom Sort StringMedium
792Number of Matching SubsequencesMedium
793Preimage Size of Factorial Zeroes FunctionHard
794Valid Tic-Tac-Toe StateMedium
795Number of Subarrays with Bounded MaximumMedium
796Rotate StringEasy
797All Paths From Source to TargetMedium
798Smallest Rotation with Highest ScoreHard
799Champagne TowerMedium
800Similar RGB Color🔒Easy
801Minimum Swaps To Make Sequences IncreasingMediumPython
802Find Eventual Safe StatesMedium
803Bricks Falling When HitHard
804Unique Morse Code WordsEasy
805Split Array With Same AverageHard
806Number of Lines To Write StringEasy
807Max Increase to Keep City SkylineMedium
808Soup ServingsMedium
809Expressive WordsMedium
810Chalkboard XOR GameHard
811Subdomain Visit CountEasy
812Largest Triangle AreaEasy
813Largest Sum of AveragesMedium
814Binary Tree PruningMedium
815Bus RoutesHard
816Ambiguous CoordinatesMedium
817Linked List ComponentsMediumPython
818Race CarHard
819Most Common WordEasy
820Short Encoding of WordsMedium
821Shortest Distance to a CharacterEasy
822Card Flipping GameMedium
823Binary Trees With FactorsMedium
824Goat LatinEasy
825Friends Of Appropriate AgesMediumPython
826Most Profit Assigning WorkMedium
827Making A Large IslandHard
828Unique Letter StringHard
829Consecutive Numbers SumHard
830Positions of Large GroupsEasy
831Masking Personal InformationMedium
832Flipping an ImageEasy
833Find And Replace in StringMedium
834Sum of Distances in TreeHard
835Image OverlapMedium
836Rectangle OverlapEasy
837New 21 GameMedium
838Push DominoesMedium
839Similar String GroupsHard
840Magic Squares In GridEasy
841Keys and RoomsMedium
842Split Array into Fibonacci SequenceMedium
843Guess the WordHard
844Backspace String CompareEasy
845Longest Mountain in ArrayMedium
846Hand of StraightsMedium
847Shortest Path Visiting All NodesHard
848Shifting LettersMedium
849Maximize Distance to Closest PersonEasy
850Rectangle Area IIHard
851Loud and RichMedium
852Peak Index in a Mountain ArrayEasy
853Car FleetMedium
854K-Similar StringsHard
855Exam RoomMedium
856Score of ParenthesesMedium
857Minimum Cost to Hire K WorkersHard
858Mirror ReflectionMedium
859Buddy StringsEasy
860Lemonade ChangeEasy
861Score After Flipping MatrixMedium
862Shortest Subarray with Sum at Least KHard
863All Nodes Distance K in Binary TreeMedium
864Shortest Path to Get All KeysHard
865Smallest Subtree with all the Deepest NodesMedium
866Prime PalindromeMedium
867Transpose MatrixEasy
868Binary GapEasy
869Reordered Power of 2Medium
870Advantage ShuffleMedium
871Minimum Number of Refueling StopsHard
872Leaf-Similar TreesEasy
873Length of Longest Fibonacci SubsequenceMediumPython
874Walking Robot SimulationEasy
875Koko Eating BananasMedium
876Middle of the Linked ListEasyPython
877Stone GameMedium
878Nth Magical NumberHard
879Profitable SchemesHard
880Decoded String at IndexMedium
881Boats to Save PeopleMedium
882Reachable Nodes In Subdivided GraphHard
883Projection Area of 3D ShapesEasy
884Uncommon Words from Two SentencesEasy
885Spiral Matrix IIIMedium
886Possible BipartitionMedium
887Super Egg DropHard
888Fair Candy SwapEasy
889Construct Binary Tree from Preorder and Postorder TraversalMedium
890Find and Replace PatternMedium
891Sum of Subsequence WidthsHard
892Surface Area of 3D ShapesEasy
893Groups of Special-Equivalent StringsEasy
894All Possible Full Binary TreesMedium
895Maximum Frequency StackHard
896Monotonic ArrayEasy
897Increasing Order Search TreeEasy
898Bitwise ORs of SubarraysMedium
899Orderly QueueHard
900RLE IteratorMedium
901Online Stock SpanMedium
902Numbers At Most N Given Digit SetHard
903Valid Permutations for DI SequenceHard
904Fruit Into BasketsMedium
905Sort Array By ParityEasy
906Super PalindromesHard
907Sum of Subarray MinimumsMedium
908Smallest Range IEasy
909Snakes and LaddersMedium
910Smallest Range IIMedium
911Online ElectionMedium
912Sort an ArrayMedium
913Cat and MouseHard
914X of a Kind in a Deck of CardsEasy
915Partition Array into Disjoint IntervalsMedium
916Word SubsetsMedium
917Reverse Only LettersEasy
918Maximum Sum Circular SubarrayMedium
919Complete Binary Tree InserterMedium
920Number of Music PlaylistsHard
921Minimum Add to Make Parentheses ValidMedium
922Sort Array By Parity IIEasy
9233Sum With MultiplicityMedium
924Minimize Malware SpreadHard
925Long Pressed NameEasy
926Flip String to Monotone IncreasingMedium
927Three Equal PartsHard
928Minimize Malware Spread IIHard
929Unique Email AddressesEasy
930Binary Subarrays With SumMedium
931Minimum Falling Path SumMedium
932Beautiful ArrayMedium
933Number of Recent CallsEasy
934Shortest BridgeMedium
935Knight DialerMedium
936Stamping The SequenceHard
937Reorder Log FilesEasy
938Range Sum of BSTEasy
939Minimum Area RectangleMedium
940Distinct Subsequences IIHard
941Valid Mountain ArrayEasy
942DI String MatchEasy
943Find the Shortest SuperstringHard
944Delete Columns to Make SortedEasy
945Minimum Increment to Make Array UniqueMedium
946Validate Stack SequencesMedium
947Most Stones Removed with Same Row or ColumnMedium
948Bag of TokensMedium
949Largest Time for Given DigitsEasy
950Reveal Cards In Increasing OrderMediumPython
951Flip Equivalent Binary TreesMedium
952Largest Component Size by Common FactorHard
953Verifying an Alien DictionaryEasy
954Array of Doubled PairsMedium
955Delete Columns to Make Sorted IIMedium
956Tallest BillboardHard
957Prison Cells After N DaysMedium
958Check Completeness of a Binary TreeMedium
959Regions Cut By SlashesMedium
960Delete Columns to Make Sorted IIIHard
961N-Repeated Element in Size 2N ArrayEasy
962Maximum Width RampMedium
963Minimum Area Rectangle IIMedium
964Least Operators to Express NumberHard
965Univalued Binary TreeEasy
966Vowel SpellcheckerMedium
967Numbers With Same Consecutive DifferencesMedium
968Binary Tree CamerasHard
969Pancake SortingMedium
970Powerful IntegersEasy
971Flip Binary Tree To Match Preorder TraversalMedium
972Equal Rational NumbersHard
973K Closest Points to OriginMedium
974Subarray Sums Divisible by KMedium
975Odd Even JumpHard
976Largest Perimeter TriangleEasy
977Squares of a Sorted ArrayEasy
978Longest Turbulent SubarrayMedium
979Distribute Coins in Binary TreeMedium
980Unique Paths IIIHard
981Time Based Key-Value StoreMedium
982Triples with Bitwise AND Equal To ZeroHard
983Minimum Cost For TicketsMedium
984String Without AAA or BBBMedium
985Sum of Even Numbers After QueriesEasy
986Interval List IntersectionsMedium
987Vertical Order Traversal of a Binary TreeMedium
988Smallest String Starting From LeafMedium
989Add to Array-Form of IntegerEasy
990Satisfiability of Equality EquationsMedium
991Broken CalculatorMedium
992Subarrays with K Different IntegersHard
993Cousins in Binary TreeEasy
994Rotting OrangesEasy
995Minimum Number of K Consecutive Bit FlipsHard
996Number of Squareful ArraysHard
997Find the Town JudgeEasy
998Maximum Binary Tree IIMedium
999Available Captures for RookEasy
1000Minimum Cost to Merge StonesHard
1001Grid IlluminationHard
1002Find Common CharactersEasy
1003Check If Word Is Valid After SubstitutionsMedium
1004Max Consecutive Ones IIIMedium
1005Maximize Sum Of Array After K NegationsEasy
1006Clumsy FactorialMedium
1007Minimum Domino Rotations For Equal RowMedium
1008Construct Binary Search Tree from Preorder TraversalMedium
1009Complement of Base 10 IntegerEasy
1010Pairs of Songs With Total Durations Divisible by 60EasyPython
1011Capacity To Ship Packages Within D DaysMedium
1012Numbers With Repeated DigitsHard
1013Partition Array Into Three Parts With Equal SumEasyPython
1014Best Sightseeing PairMedium
1015Smallest Integer Divisible by KMedium
1016Binary String With Substrings Representing 1 To NMedium
1017Convert to Base -2Medium
1018Binary Prefix Divisible By 5Easy
1019Next Greater Node In Linked ListMediumPython
1020Number of EnclavesMedium
1021Remove Outermost ParenthesesEasy
1022Sum of Root To Leaf Binary NumbersEasy
1023Camelcase MatchingMedium
1024Video StitchingMedium
1025Divisor GameEasy
1026Maximum Difference Between Node and AncestorMedium
1027Longest Arithmetic SequenceMedium
1028Recover a Tree From Preorder TraversalHard
1029Two City SchedulingEasy
1030Matrix Cells in Distance OrderEasy
1031Maximum Sum of Two Non-Overlapping SubarraysMedium
1032Stream of CharactersHard
1033Moving Stones Until ConsecutiveEasy
1034Coloring A BorderMedium
1035Uncrossed LinesMedium
1036Escape a Large MazeHard
1037Valid BoomerangEasy
1038Binary Search Tree to Greater Sum TreeMedium
1039Minimum Score Triangulation of PolygonMedium
1040Moving Stones Until Consecutive IIMedium
1041Robot Bounded In CircleMedium
1042Flower Planting With No AdjacentEasy
1043Partition Array for Maximum SumMedium
1044Longest Duplicate SubstringHard
1045Customers Who Bought All Products🔒Medium
1046Last Stone WeightEasy
1047Remove All Adjacent Duplicates In StringEasy
1048Longest String ChainMedium
1049Last Stone Weight IIMedium
1050Actors and Directors Who Cooperated At Least Three Times🔒Easy
1051Height CheckerEasy
1052Grumpy Bookstore OwnerMedium
1053Previous Permutation With One SwapMedium
1054Distant BarcodesMedium
1055Shortest Way to Form String🔒Medium
1056Confusing Number🔒Easy
1057Campus Bikes🔒Medium
1058Minimize Rounding Error to Meet Target🔒Medium
1059All Paths from Source Lead to Destination🔒Medium
1060Missing Element in Sorted Array🔒Medium
1061Lexicographically Smallest Equivalent String🔒Medium
1062Longest Repeating Substring🔒Medium
1063Number of Valid Subarrays🔒Hard
1064Fixed Point🔒Easy
1065Index Pairs of a String🔒Easy
1066Campus Bikes II🔒Medium
1067Digit Count in Range🔒Hard
1068Product Sales Analysis I🔒Easy
1069Product Sales Analysis II🔒Easy
1070Product Sales Analysis III🔒Medium
1071Greatest Common Divisor of StringsEasy
1072Flip Columns For Maximum Number of Equal RowsMedium
1073Adding Two Negabinary NumbersMedium
1074Number of Submatrices That Sum to TargetHard
1075Project Employees I🔒Easy
1076Project Employees II🔒Easy
1077Project Employees III🔒Medium
1078Occurrences After BigramEasy
1079Letter Tile PossibilitiesMedium
1080Insufficient Nodes in Root to Leaf PathsMedium
1081Smallest Subsequence of Distinct CharactersMedium
1082Sales Analysis I🔒Easy
1083Sales Analysis II🔒Easy
1084Sales Analysis III🔒Easy
1085Sum of Digits in the Minimum Number🔒Easy
1086High Five🔒Easy
1087Brace Expansion🔒Medium
1088Confusing Number II🔒Hard
1089Duplicate ZerosEasy
1090Largest Values From LabelsMedium
1091Shortest Path in Binary MatrixMedium
1092Shortest Common SupersequenceHard
1093Statistics from a Large SampleMedium
1094Car PoolingMedium
1095Find in Mountain ArrayHard
1096Brace Expansion IIHard
1097Game Play Analysis V🔒Hard
1098Unpopular Books🔒Medium
1099Two Sum Less Than K🔒Easy
1100Find K-Length Substrings With No Repeated Characters🔒Medium
1101The Earliest Moment When Everyone Become Friends🔒Medium
1102Path With Maximum Minimum Value🔒Medium
1103Distribute Candies to PeopleEasy
1104Path In Zigzag Labelled Binary TreeMedium
1105Filling Bookcase ShelvesMedium
1106Parsing A Boolean ExpressionHard
1107New Users Daily Count🔒Medium
1108Defanging an IP AddressEasy
1109Corporate Flight BookingsMedium
1110Delete Nodes And Return ForestMedium
1111Maximum Nesting Depth of Two Valid Parentheses StringsMedium
1112Highest Grade For Each Student🔒Medium
1113Reported Posts🔒Easy
1114Print in OrderEasy
1115Print FooBar AlternatelyMedium
1116Print Zero Even OddMedium
1117Building H2OMedium
1118Number of Days in a Month🔒Easy
1119Remove Vowels from a String🔒Easy
1120Maximum Average Subtree🔒Medium
1121Divide Array Into Increasing Sequences🔒Hard
1122Relative Sort ArrayEasy
1123Lowest Common Ancestor of Deepest LeavesMedium
1124Longest Well-Performing IntervalMedium
1125Smallest Sufficient TeamHard
1126Active Businesses🔒Medium
1127User Purchase Platform🔒Hard
1128Number of Equivalent Domino PairsEasy
1129Shortest Path with Alternating ColorsMedium
1130Minimum Cost Tree From Leaf ValuesMedium
1131Maximum of Absolute Value ExpressionMedium
1132Reported Posts II🔒Medium
1133Largest Unique Number🔒Easy
1134Armstrong Number🔒Easy
1135Connecting Cities With Minimum Cost🔒Medium
1136Parallel Courses🔒Hard
1137N-th Tribonacci NumberEasy
1138Alphabet Board PathMedium
1139Largest 1-Bordered SquareMedium
1140Stone Game IIMedium
1141User Activity for the Past 30 Days I🔒Easy
1142User Activity for the Past 30 Days II🔒Easy
1143Longest Common SubsequenceMedium
1144Decrease Elements To Make Array ZigzagMedium
1145Binary Tree Coloring GameMedium
1146Snapshot ArrayMedium
1147Longest Chunked Palindrome DecompositionHard
1148Article Views I🔒Easy
1149Article Views II🔒Medium
1150Check If a Number Is Majority Element in a Sorted Array🔒Easy
1151Minimum Swaps to Group All 1’s Together🔒Medium
1152Analyze User Website Visit Pattern🔒Medium
1153String Transforms Into Another String🔒Hard
1154Day of the YearEasy
1155Number of Dice Rolls With Target SumMedium
1156Swap For Longest Repeated Character SubstringMedium
1157Online Majority Element In SubarrayHard
1158Market Analysis I🔒Medium
1159Market Analysis II🔒Hard
1160Find Words That Can Be Formed by CharactersEasy
1161Maximum Level Sum of a Binary TreeMedium
1162As Far from Land as PossibleMedium
1163Last Substring in Lexicographical OrderHard
1164Product Price at a Given Date🔒Medium
1165Single-Row Keyboard🔒Easy
1166Design File System🔒Medium
1167Minimum Cost to Connect Sticks🔒Medium
1168Optimize Water Distribution in a Village🔒Hard
1169Invalid TransactionsEasy
1170Compare Strings by Frequency of the Smallest CharacterEasy
1171Remove Zero Sum Consecutive Nodes from Linked ListMedium
1172Dinner Plate StacksHard
1173Immediate Food Delivery I🔒Easy
1174Immediate Food Delivery II🔒Medium
1175Prime ArrangementsEasy
1176Diet Plan PerformanceEasy
1177Can Make Palindrome from SubstringMedium
1178Number of Valid Words for Each PuzzleHard
1179Reformat Department TableEasy
1180Count Substrings with Only One Distinct Letter🔒Easy
1181Before and After Puzzle🔒Medium
1182Shortest Distance to Target Color🔒Medium
1183Maximum Number of Ones🔒Hard
1184Distance Between Bus StopsEasy
1185Day of the WeekEasy
1186Maximum Subarray Sum with One DeletionMedium
1187Make Array Strictly IncreasingHard
1188Design Bounded Blocking QueueMedium