readme.md

November 9, 2023 · View on GitHub

My solutions to Leetcode

I will put my solutions to Leetcode Problems in this repo. Every problem will be solved in C++; part of the problems will be solved in Java also. I will try my best to support more language in the future :)

Please feel free to contact me if you have any questions with this repo:)

email: liuyubobobo@gmail.com


大家好,欢迎大家来到我的 Leetcode 算法题解代码仓。在这个代码仓中,近乎每一个问题都会使用多种方式进行解决,同时标注了简明的算法思想,时间复杂度和空间复杂度。所有问题都会使用C++进行解决,各别问题支持Java语言和Python语言。

如果对代码仓有任何问题,欢迎联系我:)

电子邮件liuyubobobo@gmail.com

知乎: 刘宇波 http://www.zhihu.com/people/liuyubobobo

知乎专栏:是不是很酷 https://zhuanlan.zhihu.com/liuyubobobo

个人公众号:是不是很酷:)

QRCode

知识星球(免费)

zsxq


其他相关代码仓

Problems

IDProblemOfficial
Solution
C++JavaPython
001Two SumsolutionC++Java
002Add Two NumberssolutionC++
003Longest Substring Without Repeating CharacterssolutionC++Java
004Median of Two Sorted ArrayssolutionC++Java
005Longest Palindromic SubstringsolutionC++
006Zigzag ConversionsolutionC++
007Reverse IntegersolutionC++
008String to Integer (atoi)solutionC++
010Regular Expression MatchingsolutionC++
011Container With Most WatersolutionC++
012Integer to Roman[无]C++
013Roman to Integer[无]C++
014Longest Common Prefix[无]C++
0153Sum[无]C++
0163Sum Closest[无]C++
017Letter Combinations of a Phone NumbersolutionC++Java
0184Sum[无]C++
019Remove Nth Node From End of ListsolutionC++Java
020Valid ParenthesessolutionC++Java
021Merge Two Sorted ListssolutionC++
022Generate ParenthesessolutionC++JavaPython
023Merge k Sorted ListssolutionC++
024Swap Nodes in Pairs[无]C++Java
025Reverse Nodes in k-Group[无]C++
026Remove Duplicates from Sorted ArraysolutionC++
027Remove ElementsolutionC++
028Implement strStr()[无]
[缺:完整BM算法, 其他模式匹配算法]
C++
029Divide Two Integerssolution
[缺:不使用乘法加法除法]
C++
030Substring with Concatenation of All WordssolutionC++
031Next PermutationsolutionC++
033Search in Rotated Sorted ArraysolutionC++
034Search for a RangesolutionC++
035Search Insert PositionsolutionC++
036Valid SudokusolutionC++
037Sudoku Solversolution
[缺:Dancing Links]
C++C++
038Count and Say[无]C++
039Combination Sum[无]C++
040Combination Sum II[无]C++
041First Missing PositivesolutionC++
042Trapping Rain WatersolutionC++
043Multiply StringssolutionC++
045Jump Game IIsolutionC++
046Permutationssolution
[缺:排列算法整理]
C++Java
047Permutations II[无]C++
048Rotate ImagesolutionC++
049Group AnagramssolutionC++
050Pow(x, n)[无]C++
051N-Queens[缺:N皇后问题整理]C++Java
052N-Queens IIsolution
[缺:N皇后问题整理]
C++
053Maximum SubarraysolutionC++
054Spiral MatrixsolutionC++
055Jump GamesolutionC++
056Merge IntervalssolutionC++
057Insert IntervalsolutionC++
058Length of Last WordsolutionC++
059Spiral Matrix II[无]C++
061Rotate ListsolutionC++
062Unique Paths[无]
[缺:数学解]
C++
063Unique Paths IIsolutionC++
064Minimum Path SumsolutionC++JavaPython
065Valid NumbersolutionC++
066Plus One[无]C++
067Add Binary[无]C++
068Text Justification[无]C++
069Sqrt(x)[无]C++
070Climbing StairssolutionC++Java
071Simplify Path[无]C++
072Edit DistancesolutionC++
073Set Matrix ZeroessolutionC++
074Search a 2D Matrix[无]C++
075Sort ColorssolutionC++JavaPython
076Minimum Window SubstringsolutionC++
077CombinationssolutionC++Java
078SubsetssolutionC++
079Word Search[无]C++Java
080Remove Duplicates from Sorted Array II[无]C++
081Search in Rotated Sorted Array IIsolutionC++
082Remove Duplicates from Sorted List II[无]C++
083Remove Duplicates from Sorted List[无]C++
084Largest Rectangle in Histogramsolution 题解C++
085Maximal RectanglesolutionC++
086Partition ListsolutionC++
087Scramble String[无]C++
088Merge Sorted ArraysolutionC++Java
089Gray Code[无]C++
090Subsets II[无]C++
091Decode Ways[无]C++
092Reverse Linked List IIsolutionC++
093Restore IP AddressessolutionC++
094Binary Tree Inorder TraversalsolutionC++Java
095Unique Binary Search Trees IIsolutionC++
096Unique Binary Search TreessolutionC++
097Interleaving Stringsolution
[缺:DP]
C++
098Validate Binary Search TreesolutionC++Java
099Recover Binary Search Tree[无]Java
100Same TreesolutionC++
101Symmetric TreesolutionC++Python
102Binary Tree Level Order TraversalsolutionC++Java
103Binary Tree Zigzag Level Order Traversal[无]C++
104Maximum Depth of Binary TreesolutionC++Java
105Construct Binary Tree from Preorder and Inorder TraversalsolutionC++
106Construct Binary Tree from Inorder and Postorder Traversal[无]C++
107Binary Tree Level Order Traversal II[无]C++
108Convert Sorted Array to Binary Search Tree[无]C++
109Convert Sorted List to Binary Search TreesolutionC++
110Balanced Binary TreesolutionC++
111Minimum Depth of Binary TreesolutionC++
112Path SumsolutionC++Java
113Path Sum II[无]C++
114Flatten Binary Tree to Linked ListsolutionC++
115Distinct Subsequences[无]C++Java
116Populating Next Right Pointers in Each Node[无]C++
117Populating Next Right Pointers in Each Node II[无]C++
118Pascal's TrianglesolutionC++
119Pascal's Triangle II[无]C++
120Triangle[无]C++
121Best Time to Buy and Sell StockC++
122Best Time to Buy and Sell Stock IIsolutionC++
123Best Time to Buy and Sell Stock IIIC++
124Binary Tree Maximum Path SumsolutionC++
125Valid Palindrome[无]C++
126Word Ladder II[无]
[缺:双端搜索]
C++
127Word LaddersolutionC++Java
128Longest Consecutive SequenceC++
129Sum Root to Leaf Numbers[无]C++
130Surrounded Regions[无]C++
131Palindrome Partitioningsolution
[缺:DP]
C++
132Palindrome Partitioning II[无]C++
133Clone Graph[无]C++
134Gas StationsolutionC++
135Candysolution
[缺:O(1)空间算法]
C++
136Single NumbersolutionC++
137Single Number IIsolutionC++
138Copy List with Random PointersolutionC++
139Word BreaksolutionC++
141Linked List CyclesolutionC++
142Linked List Cycle IIsolutionC++
143Reorder List[无]C++
144Binary Tree Preorder TraversalsolutionC++Java
145Binary Tree Postorder TraversalsolutionC++Java
146LRU Cachesolution
[缺:封装一个Double Linked List]
C++
147Insertion Sort List[无]C++
148Sort List[无]C++
149Max Points on a LinesolutionC++
150Evaluate Reverse Polish Notation[无]C++
151Reverse Words in a String[无]C++
152Maximum Product Subarraysolution
[缺:Linear]
C++Python
153Find Minimum in Rotated Sorted ArraysolutionC++
155Min Stack[无]C++
159Longest Substring with At Most Two Distinct CharacterssolutionC++
160Intersection of Two Linked ListssolutionC++
161One Edit DistancesolutionC++
162Find Peak ElementsolutionC++
163Missing RangessolutionC++
164Maximum Gapsolution
[缺:桶排序]
C++
165Compare Version NumberssolutionC++
166Fraction to Recurring DecimalsolutionC++
167Two Sum II - Input array is sortedsolutionC++Java
168Excel Sheet Column Title[无]C++
169Majority ElementsolutionC++Python
170Two Sum III - Data structure design[无]C++
171Excel Sheet Column Number[无]C++
172Factorial Trailing ZeroessolutionC++
173Binary Search Tree Iterator[无]
[缺:Morris遍历]
C++
174Dungeon GamesolutionC++
175Database Problem: Link----
176Database Problem: Link----
179Largest Number[无]C++
181Database Problem: Link----
184Database Problem: Link----
186Reverse Words in a String II[无]C++
188Best-Time-to-Buy-and-Sell-Stock-IVC++
189Rotate ArraysolutionC++
190Reverse BitssolutionC++
191Number of 1 BitssolutionC++
196Database Problem: Link----
197Database Problem: Link----
198House RobbersolutionC++Java
199Binary Tree Right Side ViewsolutionC++
200Number of IslandssolutionC++Java
201Bitwise AND of Numbers RangesolutionC++
202Happy NumbersolutionC++
203Remove Linked List Elements[无]C++Java
204Count Primes[无]C++
205Isomorphic Strings[无]C++
206Reverse Linked ListsolutionC++Java
207Course Schedule[无]C++
208Implement Trie (Prefix Tree)solutionC++
209Minimum Size Subarray SumsolutionC++Java
210Course Schedule IIsolutionC++
211Add and Search Word - Data structure design[无]C++Java
212Word Search II[无]C++
213House Robber II[无]C++
215Kth Largest Element in an ArraysolutionC++
216Combination Sum III[无]C++
217Contains Duplicate[无]C++
218The Skyline ProblemC++
219Contains Duplicate IIsolutionC++Java
220Contains Duplicate IIIsolutionC++Java
221Maximal SquaresolutionC++Python
222Count Complete Tree Nodes[无]C++
223Rectangle Area[无]C++
224Basic Calculator[无]C++
225Implement Stack using QueuessolutionC++
226Invert Binary TreesolutionC++JavaPython
227Basic Calculator II[无]C++
228Summary RangessolutionC++
229Majority Element IIsolution
[缺:BM Voting]
C++
230Kth Smallest Element in a BSTsolution
[缺:非递归]
C++
231Power of TwosolutionC++
232Implement Queue using StackssolutionC++
233Number of Digit Onesolution
[缺:数学方法]
C++
234Palindrome Linked List[无]C++
235Lowest Common Ancestor of a Binary Search TreesolutionC++Java
236Lowest Common Ancestor of a Binary Treesolution
[缺:非递归解法;LCA问题总结]
C++
237Delete Node in a Linked ListsolutionC++Java
238Product of Array Except SelfsolutionC++Python
239Sliding Window MaximumsolutionC++
240Search a 2D Matrix IIsolution
[缺:分治]
C++
241Different Ways to Add Parentheses[无]C++
242Valid AnagramsolutionC++
243Shortest Word DistancesolutionC++
244Shortest Word Distance IIsolutionC++
245Shortest Word Distance III[无]C++
246Strobogrammatic NumbersolutionC++
247Strobogrammatic Number II[无]C++
248Strobogrammatic Number III[无]C++
249Group Shifted Strings[无]C++
250Count Univalue SubtreessolutionC++
251Flatten 2D VectorsolutionC++
252Meeting RoomssolutionC++
253Meeting Rooms IIsolutionC++
254Factor Combinations[无]C++
256Paint House[无]C++
257Binary Tree PathssolutionC++Java
258Add DigitssolutionC++
2593Sum SmallersolutionC++
260Single Number IIIsolutionC++
261Graph Valid TreeC++
263Ugly Number[无]C++
264Ugly Number IIsolutionC++
265Paint House IIC++
266Palindrome PermutationsolutionC++
267Palindrome Permutation IIsolutionC++
268Missing NumbersolutionC++
269Alien DictionarysolutionC++
273Integer to English WordssolutionC++
274H-Indexsolution
[缺:非二分]
C++
275H-Index IIsolutionC++
276Paint FencesolutionC++
277Find the Celebritysolution
[缺:O(n) 解法]
C++
278First Bad VersionsolutionC++
279Perfect Squares[无]
四平方和数学解
C++Java
280Wiggle SortsolutionC++
282Expression Add OperatorssolutionC++
283Move ZeroessolutionC++Java
284Peeking IteratorsolutionC++
285Inorder Successor in BST[无]
[缺:空间O(h)]
C++
286Walls and GatessolutionC++
287Find the Duplicate NumberC++
288Unique Word AbbreviationsolutionC++
289Game of LifesolutionC++
290Word Pattern[无]C++
292Nim GamesolutionC++
295Find Median from Data Stream[无]C++
296Best Meeting PointsolutionC++
297Serialize and Deserialize Binary TreesolutionC++
298Binary Tree Longest Consecutive SequencesolutionC++
299Bulls and CowssolutionC++
300Longest Increasing SubsequencesolutionC++Java
3010301-Remove-Invalid-Parenthesessolution
[缺:DP+构建]
C++
303Range Sum Query - ImmutableC++
304Range Sum Query 2D - ImmutablesolutionC++
305Number of Islands IIsolutionC++
306Additive Number[无]C++
307Range Sum Query - Mutable[缺:BIT]C++
308Range Sum Query 2D - MutableC++
309Best Time to Buy and Sell Stock with CooldownsolutionC++
310Minimum Height TreessolutionC++
311Sparse Matrix Multiplication[无]C++
312Burst Balloonssolution 题解C++
313Super Ugly Number[无]C++
314Binary Tree Vertical Order Traversal[无]C++
315Count of Smaller Numbers After Self[无]C++
316Remove Duplicate LetterssolutionC++
317Shortest Distance from All BuildingssolutionC++
318Maximum Product of Word LengthssolutionC++
319Bulb Switcher[无]C++
321Create Maximum Number[无]C++
322Coin ChangesolutionC++
323Number of Connected Components in an Undirected GraphsolutionC++
324Wiggle Sort II[无]C++
325Maximum Size Subarray Sum Equals ksolutionC++
326Power of ThreesolutionC++
328Odd Even Linked ListsolutionC++
329Longest Increasing Path in a MatrixsolutionC++
330Patching Array[无]C++
331Verify Preorder Serialization of a Binary TreesolutionC++
332Reconstruct ItinerarysolutionC++
334Increasing Triplet SubsequencesolutionC++
335Self Crossing[无]C++
336Palindrome PairssolutionC++
337House Robber III[无]C++
338Counting BitssolutionC++
339Nested List Weight Sum[无]C++
340Longest Substring with At Most K Distinct CharacterssolutionC++
341Flatten Nested List Iterator[无]C++
342Power of FoursolutionC++
343Integer Break[无]C++Java
344Reverse String[无]C++
345Reverse Vowels of a String[无]C++
346Moving Average from Data Stream[无]C++
347Top K Frequent ElementssolutionC++Java
348Find Winner on a Tic Tac Toe Game[无]C++
349Intersection of Two ArrayssolutionC++Java
350Intersection of Two Arrays II[无]C++Java
352Data Stream as Disjoint Intervals[无]C++
354Russian Doll EnvelopessolutionC++
357Count Numbers with Unique Digits[无]C++
359Logger Rate Limiter[无]C++
360Sort Transformed Array[无]C++
362Design Hit Counter[无]C++
363Max Sum of Rectangle No Larger Than K[无]C++
364Nested List Weight Sum II[无]C++
365Water and Jug Problem题解
[缺:数学解法]
C++
366Find Leaves of Binary TreesolutionC++
367Valid Perfect SquaresolutionC++
368Largest Divisible SubsetsolutionC++
369Plus One Linked ListsolutionC++
370Range AdditionC++
372Super Pow[无]C++
373Find K Pairs with Smallest Sums[无]C++
374Guess Number Higher or LowersolutionC++
375Guess Number Higher or Lower II[无]C++
376Wiggle SubsequencesolutionC++
[缺:DP;O(1) 空间贪心]
377Combination Sum IV[无]C++
378Kth Smallest Element in a Sorted Matrix[无]C++
380Insert Delete GetRandom O(1)[无]C++
381Insert Delete GetRandom O(1) - Duplicates allowed[无]C++
382Linked List Random Node[无]C++
383Ransom NotesolutionC++
384Shuffle an ArraysolutionC++
385Mini Parser[无]C++
386Lexicographical NumbersC++
387First Unique Character in a StringsolutionC++Java
388Longest Absolute File PathC++
389Find the DifferenceC++
390Elimination GameC++
391Perfect Rectangle[缺:矩形求交]C++
392Is Subsequence[无]C++
393UTF-8 ValidationsolutionC++
394Decode String[无]C++
395Longest Substring with At Least K Repeating Characterssolution
[缺:滑动窗口]
C++
396Rotate Function[无]C++
397Integer Replacement[无]C++
398Random Pick Index[无]C++
399Evaluate Divisionsolution
[缺:UF]
C++
400Nth Digit[无]C++
401Binary Watch[无]C++
402Remove K Digitssolution 题解C++
403Frog Jumpsolution
[缺:dp]
C++
404Sum of Left Leaves[无]C++
405Convert a Number to Hexadecimal[无]C++
406Queue Reconstruction by Height[无]C++
407Trapping Rain Water II[无]C++
410Split Array Largest Sumsolution 题解C++
412Fizz BuzzsolutionC++
413Arithmetic SlicessolutionC++
414Third Maximum Number[无]C++
415Add StringssolutionC++
416Partition Equal Subset Sum[无]C++Java
417Pacific Atlantic Water FlowC++Java
419Battleships in a Board[无]C++
420Strong Password Checker[无]C++
421Maximum XOR of Two Numbers in an ArraysolutionC++
422Valid Word Square[无]C++
423Reconstruct Original Digits from EnglishsolutionC++
424Longest Repeating Character Replacement[无]C++
426Convert Binary Search Tree to Sorted Doubly Linked ListsolutionC++
427Construct Quad Tree[无]C++
429N-ary Tree Level Order Traversal[无]C++
430Flatten a Multilevel Doubly Linked List[无]C++
431Encode N-ary Tree to Binary TreesolutionC++
432All O one Data Structure[无] [缺:O(1)]C++
433Minimum Genetic Mutation[无]C++
434Number of Segments in a String[无]C++
435Non-overlapping IntervalssolutionC++Java
436Find Right Interval[无]C++
437Path Sum III[无]C++Java
438Find All Anagrams in a String[无]C++
439Ternary Expression Parser[无]C++
440K-th Smallest in Lexicographical Order[无] [缺:更简单的实现]C++
441Arranging CoinssolutionC++
442Find All Duplicates in an ArraysolutionC++
443String CompressionC++
444Sequence Reconstruction[无]C++
445Add Two Numbers II[无]C++
446Arithmetic Slices II - SubsequencesolutionC++
447Number of Boomerangs[无]C++Java
448Find All Numbers Disappeared in an ArraysolutionC++
449Serialize and Deserialize BSTsolutionC++
450Delete Node in a BSTsolutionC++
451Sort Characters By Frequency[无]C++Java
452Minimum Number of Arrows to Burst BalloonssolutionC++
453Minimum Moves to Equal Array ElementssolutionC++
4544Sum II[无]C++Java
455Assign Cookies[无]C++Java
456132 Patternsolution
[缺:O(n) 单调栈算法]
C++
457Circular Array Loop[无]C++
458Poor PigssolutionC++
459Repeated Substring Pattern[无]C++
460LFU CachesolutionC++
461Hamming DistancesolutionC++
462Minimum Moves to Equal Array Elements IIsolutionC++
463Island PerimetersolutionC++
464Can I Win[无]C++
467Unique Substrings in Wraparound String[无]C++
468Validate IP Address[无]C++
470Implement Rand10() Using Rand7()solutionC++
472Concatenated Words[无]C++
473Matchsticks to SquaresolutionC++
474Ones and ZeroessolutionC++
475Heaters[无]C++
476Number ComplementsolutionC++
477Total Hamming Distancesolution 题解C++
478Generate Random Point in a CirclesolutionC++
479Largest Palindrome Product[无]C++
480Sliding Window Median[无]
[缺:双数据结构]
C++
481Magical String[无]C++
482License Key Formatting[无]C++
483Smallest Good Base[无]C++
484Find PermutationsolutionC++
485Max Consecutive Ones[无]C++
486Predict the Winner[无]C++
487Max Consecutive Ones II[无]C++
488Zuma Game[无]C++
489Robot Room CleanersolutionC++
490The MazesolutionC++
491Non-decreasing Subsequences[无]C++
492Construct the Rectangle[无]C++
494Target SumsolutionC++
495Teemo AttackingsolutionC++
496Next Greater Element IsolutionC++
497Random Point in Non-overlapping RectanglessolutionC++
498Diagonal Traverse[无]C++
500Keyboard Row[无]C++
501Find Mode in Binary Search Tree[无]C++
502IPOsolutionC++
503Next Greater Element IIsolutionC++
504Base 7[无]C++
505The Maze IIsolutionC++
506Relative Ranks[无]C++
507Perfect NumbersolutionC++
508Most Frequent Subtree Sum[无]C++
509Fibonacci Number[无]C++
510Inorder Successor in BST II[无]C++
511Database Problem: Link----
513Find Bottom Left Tree Value[无]C++
515Find Largest Value in Each Tree Row[无]C++
516Longest Palindromic Subsequence[无]C++
517Super Washing MachinessolutionC++
518Coin Change 2[无]C++
519Random Flip MatrixsolutionC++
520Detect CapitalsolutionC++
521Longest Uncommon Subsequence IsolutionC++
522Longest Uncommon Subsequence IIsolutionC++
523Continuous Subarray Sum[无]C++
524Longest Word in Dictionary through DeletingsolutionC++
525Contiguous Arraysolution 题解C++
526Beautiful ArrangementsolutionC++
527Word AbbreviationsolutionC++
528Random Pick with WeightsolutionC++
529Minesweeper[无]C++
530Minimum Absolute Difference in BST[无]Java
531Lonely Pixel I[无]C++
532K-diff Pairs in an ArraysolutionC++
533Lonely Pixel II[无]C++
536Construct Binary Tree from Stringsolution
[缺:stack]
C++
537Complex Number MultiplicationsolutionC++
538Convert BST to Greater TreesolutionC++
539Minimum Time Difference[无]C++
540Single Element in a Sorted ArraysolutionC++
541Reverse String IIsolutionC++
54201 MatrixsolutionC++
543Diameter of Binary TreesolutionC++
546Remove BoxessolutionC++
547Number of ProvincessolutionC++
549Binary Tree Longest Consecutive Sequence IIsolutionC++
551Student Attendance Record IsolutionC++
552Student Attendance Record IIsolutionC++
553Optimal Divisionsolution
[缺:O(n) 解法]
C++
554Brick WallsolutionC++
556Next Greater Element IIIsolution
[缺:底层实现]
C++
557Reverse Words in a String IIIsolutionC++
558Logical OR of Two Binary Grids Represented as Quad-Trees[无]C++
559Maximum Depth of N-ary TreesolutionC++
560Subarray Sum Equals KsolutionC++
561Array Partition IsolutionC++
563Binary Tree TiltsolutionC++
564Find the Closest Palindrome[无]C++
565Array NestingsolutionC++
566Reshape the MatrixsolutionC++
567Permutation in Stringsolution 题解C++
570Database Problem: Link----
572Subtree of Another TreesolutionC++
573Squirrel SimulationsolutionC++
575Distribute CandiessolutionC++
576Out of Boundary PathssolutionC++
580Database Problem: Link----
581Shortest Unsorted Continuous Subarraysolution
[缺:Stack]
C++
582Kill ProcesssolutionC++
583Delete Operation for Two StringssolutionC++
584Database Problem: Link----
586Database Problem: Link----
587Erect the Fencesolution 题解
[缺:凸包解法整理]
C++
589N-ary Tree Preorder TraversalsolutionC++
590N-ary Tree Postorder TransversalsolutionC++
591Tag ValidatorsolutionC++
592Fraction Addition and Subtraction[无]C++
593Valid SquaresolutionC++
594Longest Harmonious SubsequencesolutionC++
595Database Problem: Link----
598Range Addition IIC++
599Minimum Index Sum of Two ListssolutionC++
600Non-negative Integers without Consecutive Onessolution
[缺:Bit Manipulation]
C++
605Can Place FlowerssolutionC++
606Construct String from Binary TreesolutionC++
607Database Problem: Link----
608Database Problem: Link----
609Find Duplicate File in SystemsolutionC++
611Valid Triangle NumbersolutionC++
617Merge Two Binary TreesC++
619Database Problem: Link----
621Task SchedulersolutionC++
622Design Circular Queue[无]C++
623Add One Row to TreesolutionC++
627Database Problem: Link----
628Maximum Product of Three NumberssolutionC++
629K-Inverse-Pairs-Arraysolution
[缺:其他 dp 优化思路]
C++
630Course Schedule IIIsolutionC++
632Smallest Range Covering Elements from K ListssolutionC++
633Sum of Square NumbersC++
636Exclusive Time of Functions[无]C++
637Average of Levels in Binary TreesolutionC++
638Shopping OfferssolutionC++
639Decode Ways IIsolution
[缺:DP]
C++
640Solve the Equation[无]C++
642Design Search Autocomplete System[无]C++
643Maximum Average Subarray IsolutionC++
644Maximum Average Subarray IIsolutionC++
645Set Mismatchsolution
[缺:空间 O(1) 解法]
C++
646Maximum Length of Pair ChainsolutionC++
647Palindromic SubstringssolutionC++
648Replace Words[无]C++
649Dota2 Senatesolution
[缺:队列]
C++
6502 Keys KeyboardsolutionC++
652Find Duplicate SubtreessolutionC++
653Two Sum IV - Input is a BST[无]C++
654Maximum Binary TreesolutionC++
655Print Binary Tree[无]C++
658Find K Closest Elementssolution
[缺:二分]
C++
659Split Array into Consecutive SubsequencessolutionC++
661Image Smoother[无]C++
662Maximum Width of Binary TreesolutionC++
664Strange PrintersolutionC++
665Non-decreasing ArraysolutionC++
666Path Sum IVsolutionC++
667Beautiful Arrangement IIsolutionC++
668Kth Smallest Number in Multiplication TablesolutionC++
669Trim a Binary Search TreesolutionC++
670Maximum Swap[无]C++
671Second Minimum Node In a Binary TreesolutionC++
672Bulb Switcher IIsolutionC++
673Number of Longest Increasing Subsequence[缺:BIT;线段树]C++
674Longest Continuous Increasing SubsequenceC++
675Cut Off Trees for Golf Event[缺:A*;Hadlock's Algo]C++
676Implement Magic DictionarysolutionC++
677Map Sum PairssolutionC++
678Valid Parenthesis StringsolutionC++
67924 GamesolutionC++
680Valid Palindrome II[无]C++
682Baseball GamesolutionC++
684Redundant ConnectionsolutionC++
685Redundant Connection IIsolutionC++
686Repeated String Match[无]C++
687Longest Univalue PathsolutionC++
688Knight Probability in ChessboardsolutionC++
689Maximum Sum of 3 Non-Overlapping SubarrayssolutionC++
690Employee ImportancesolutionC++
691Stickers to Spell Word[无]C++
692Top K Frequent WordssolutionC++
693Binary Number with Alternating Bits[无]C++
694Number of Distinct Islands[review: hash的方式]C++
695Max-Area-of-IslandC++
696Count Binary SubstringsC++
697Degree of an ArrayC++
698Partition to K Equal Sum SubsetsC++Java
699Falling Squares[缺:线段树;块状链表]C++
700Search in a Binary Search TreesolutionC++
701Insert into a Binary Search TreesolutionC++
703Kth Largest Element in a Stream[无]C++
704Binary SearchsolutionC++
705Design HashSet[无]C++
706Design HashMap[无]C++
707Design Linked List[无]C++
708Insert into a Cyclic Sorted List[无]C++
709To Lower CasesolutionC++
710Random Pick with BlacklistsolutionC++
711Number of Distinct Islands II[review: hash的方式]C++
712Minimum ASCII Delete Sum for Two StringsC++
713Subarray Product Less Than KC++
714Best Time to Buy and Sell Stock with Transaction FeeC++
715Range Module[缺:set查找]C++
716Max StacksolutionC++
7171-bit and 2-bit CharactersC++
718Maximum Length of Repeated Subarray[缺:Rolling Hash]C++
719Find K-th Smallest Pair DistancesolutionC++
720Longest Word in DictionarysolutionC++
721Accounts MergesolutionC++
722Remove CommentssolutionC++
723Candy CrushsolutionC++
724Find Pivot IndexsolutionC++
725Split Linked List in PartssolutionC++
726Number of AtomssolutionC++
727Minimum Window SubsequencesolutionC++
728Self Dividing NumberssolutionC++
729My Calendar IsolutionC++
730Count Different Palindromic Subsequences[无]C++
731My Calendar IIsolutionC++
732My Calendar IIIsolutionC++
733Flood FillsolutionC++
734Sentence SimilaritysolutionC++
735Asteroid CollisionsolutionC++
736Parse Lisp ExpressionsolutionC++
737Sentence Similarity IIsolutionC++
739Daily TemperaturessolutionC++
740Delete and EarnsolutionC++
741Cherry Pickupsolution
[缺:自底向上的动态规划]
C++
745Prefix and Suffix SearchsolutionC++
746Min Cost Climbing StairssolutionC++
747Largest Number At Least Twice of OtherssolutionC++
749Contain Virus[无]C++
752Open the LocksolutionC++
753Cracking the Safe[无]C++
754Reach a NumberSolutionC++
757Set Intersection Size At Least Two[无]C++
761Special Binary StringsolutionC++
762Prime Number of Set Bits in Binary Representation[无]C++
763Partition Labels[无]C++
764Largest Plus SignC++
765Couples Holding HandssolutionC++
766Toeplitz MatrixsolutionC++
771Jewels and StonessolutionC++
772Basic Calculator III[无]C++
774Minimize Max Distance to Gas StationsolutionC++
775Global and Local InversionsC++
779K-th Symbol in Grammar[无]C++
780Reaching PointssolutionC++
781Rabbits in ForestsolutionC++
782Transform to ChessboardsolutionC++
783Minimum Distance Between BST NodessolutionC++
784Letter Case PermutationsolutionC++
785Is Graph Bipartite?solutionC++
786K-th Smallest Prime Fractionsolution
[缺:分治算法]
C++
787Cheapest Flights Within K Stopssolution
[缺:使用Heap]
C++
788Rotated DigitssolutionC++
789Escape The GhostssolutionC++
790Domino and Tromino Tilingsolution
[缺:转移矩阵求幂解法]
C++
791Custom Sort StringsolutionC++
792Number of Matching SubsequencessolutionC++
793Preimage Size of Factorial Zeroes FunctionsolutionC++
794Valid Tic-Tac-Toe StatesolutionC++
795Number of Subarrays with Bounded MaximumsolutionC++
796Rotate Stringsolution
[缺:Rolling Hash]
C++
797All Paths From Source to TargetsolutionC++
798Smallest Rotation with Highest Scoresolution
[缺:O(n) 解法]
C++
799Champagne TowersolutionC++
800Similar RGB ColorsolutionC++
802Find Eventual Safe StatessolutionC++
803Bricks Falling When Hit[无]C++
804Unique Morse Code WordssolutionC++
805Split Array With Same AveragesolutionC++
806Number of Lines To Write StringsolutionC++
807Max Increase to Keep City SkylinesolutionC++
809Expressive WordssolutionC++
810Chalkboard XOR GamesolutionC++
811Subdomain Visit CountsolutionC++
813Largest Sum of AveragessolutionC++
814Binary Tree PruningsolutionC++
815Bus RoutessolutionC++
817Linked List ComponentssolutionC++
819Most Common WordsolutionC++
822Card Flipping Game[无]C++
823Binary Trees With FactorssolutionC++
824Goat Latin[无]C++
825Friends Of Appropriate Ages[无]C++
827Making A Large Island[无]C++
828Count Unique Characters of All Substrings of a Given String[无]C++
829Consecutive Numbers Sum[无]C++
830Positions of Large GroupssolutionC++
831Masking Personal Information[无]C++
832Flipping an ImagesolutionC++
833Find And Replace in String[无]C++
834Sum of Distances in TreesolutionC++
835Image Overlap[无]C++
837New 21 Game[无]C++
838Push DominoessolutionC++
839Similar String Groupssolution
C++
841Keys and RoomssolutionC++
842Split Array into Fibonacci SequencesolutionC++
844Backspace String ComparesolutionC++
846Hand of Straights[无]C++
847Shortest Path Visiting All Nodes[无]C++
848Shifting Letters[无]C++
849Maximize Distance to Closest Person[无]C++
850Rectangle Area IIsolutionC++
851Loud and RichsolutionC++
852Peak Index in a Mountain ArraysolutionC++
853Car FleetsolutionC++
854K-Similar StringssolutionC++
855Exam RoomsolutionC++
856Score of ParenthesessolutionC++
857Minimum Cost to Hire K Workerssolution
[缺:二分搜索]
C++
858Mirror ReflectionsolutionC++
859Buddy StringssolutionC++
860Lemonade ChangesolutionC++
861Score After Flipping MatrixsolutionC++
863All Nodes Distance K in Binary TreesolutionC++
864Shortest Path to Get All Keyssolution
[缺:Dijkstra]
C++
865Smallest Subtree with all the Deepest NodessolutionC++
866Prime PalindromesolutionC++
867Transpose MatrixsolutionC++
868Binary GapsolutionC++
869Reordered Power of 2solutionC++
870Advantage ShufflesolutionC++
871Minimum Number of Refueling Stopssolution 题解C++
872Leaf-Similar TreessolutionC++
873Length of Longest Fibonacci SubsequencesolutionC++
874Walking-Robot-SimulationsolutionC++
875Koko Eating BananassolutionC++
876Middle of the Linked ListsolutionC++
877Stone GamesolutionC++
878Nth Magical NumbersolutionC++
879Profitable SchemessolutionC++
880Decoded String at IndexsolutionC++
881Boats to Save PeoplesolutionC++
882Reachable Nodes In Subdivided GraphsolutionC++
883Projection Area of 3D ShapessolutionC++
884Uncommon Words from Two SentencessolutionC++
885Spiral Matrix IIIsolutionC++
886Possible BipartitionsolutionC++
888Fair Candy SwapsolutionC++
889Construct Binary Tree from Preorder and Postorder TraversalsolutionC++
890Find and Replace PatternsolutionC++
891Sum of Subsequence WidthssolutionC++
892Surface Area of 3D ShapessolutionC++
893Groups of Special-Equivalent StringssolutionC++
894All Possible Full Binary TreessolutionC++
895Maximum Frequency StacksolutionC++
896Monotonic ArraysolutionC++Python
897Increasing Order Search TreesolutionC++
898Bitwise ORs of SubarrayssolutionC++
899Orderly QueuesolutionC++
900RLE IteratorsolutionC++
901Online Stock SpansolutionC++
902Numbers At Most N Given Digit SetsolutionC++
903Valid Permutations for DI Sequencesolution
[缺:O(n^2) DP]
C++
904Fruit Into BasketssolutionC++
905Sort Array By ParitysolutionC++
906Super PalindromessolutionC++
907Sum of Subarray MinimumssolutionC++
908Smallest Range IsolutionC++
909Snakes and LadderssolutionC++
910Smallest Range IIsolutionC++
911Online ElectionsolutionC++
912Sort an Array[无]C++
913Cat and Mouse Gamesolution
[缺:DFS拓扑排序;DP]
C++
914X of a Kind in a Deck of CardssolutionC++
915Partition Array into Disjoint IntervalssolutionC++
916Word SubsetssolutionC++
917Reverse Only LetterssolutionC++
918Maximum Sum Circular SubarraysolutionC++
919Complete Binary Tree InsertersolutionC++
920Number of Music Playlistssolution
[缺:生成函数]
C++
921Minimum Add to Make Parentheses ValidsolutionC++
922Sort Array By Parity IIsolutionC++
9233Sum With MultiplicitysolutionC++
924Minimize Malware SpreadsolutionC++
925Long Pressed NamesolutionC++
926Flip String to Monotone IncreasingsolutionC++
927Three Equal PartssolutionC++
928Minimize Malware Spread IIsolutionC++
929Unique Email AddressessolutionC++
930Binary Subarrays With SumsolutionC++
931Minimum Path Falling SumsolutionC++
932Beautiful ArraysolutionC++
933Number of Recent CallssolutionC++
934Shortest BridgesolutionC++
935Knight DialersolutionC++
936Stamping The SequencesolutionC++
937Reorder Log FilessolutionC++
938Range Sum of BSTsolutionC++
939Minimum Area RectanglesolutionC++
940Distinct Subsequences IIsolutionC++
941Valid Mountain ArraysolutionC++
942DI String MatchsolutionC++
943Find the Shortest Superstringsolution
[缺:动态规划]
C++
944Delete Columns to Make SortedsolutionC++
945Minimum Increment to Make Array UniquesolutionC++
946Validate Stack SequencessolutionC++
947Most Stones Removed with Same Row or ColumnsolutionC++
948Bag of TokenssolutionC++
949Largest Time for Given DigitssolutionC++
950Reveal Cards In Increasing OrdersolutionC++
951Flip Equivalent Binary TreessolutionC++
952Largest Component Size by Common FactorsolutionC++
953isAlienSortedsolutionC++
954Array of Doubled PairssolutionC++
955Delete Columns to Make Sorted IIsolutionC++
956Tallest BillboardsolutionC++
957Prison Cells After N DayssolutionC++
958Check Completeness of a Binary TreesolutionC++
959Regions Cut By SlashessolutionC++
960Delete Columns to Make Sorted IIIsolutionC++
961N-Repeated Element in Size 2N ArraysolutionC++
965Univalued Binary TreesolutionC++
966Vowel SpellcheckersolutionC++
967Numbers With Same Consecutive DifferencessolutionC++
968Binary Tree CamerassolutionC++
969Pancake SortingsolutionC++
970Powerful IntegerssolutionC++
971Flip Binary Tree To Match Preorder TraversalsolutionC++
972Equal Rational NumberssolutionC++
973K Closest Points to OriginsolutionC++
974Subarray Sums Divisible by KsolutionC++
975Odd Even JumpsolutionC++
976Largest Perimeter TrianglesolutionC++
977Squares of a Sorted ArraysolutionC++
978Longest Turbulent Subarraysolution
[缺:滑动窗口 & dp]
C++
979Distribute Coins in Binary TreesolutionC++
980Unique Paths IIIsolution
[缺:记忆化搜索]
C++Java
981Time Based Key-Value StoresolutionC++
982Triples with Bitwise AND Equal To Zero[无]C++
983Minimum Cost For TicketssolutionC++
984String Without AAA or BBBsolutionC++
985Sum of Even Numbers After QueriessolutionC++
986Interval List IntersectionssolutionC++
987Vertical Order Traversal of a Binary TreesolutionC++
988Smallest String Starting From LeafsolutionC++
989Add to Array-Form of IntegersolutionC++
990Satisfiability of Equality EquationssolutionC++
991Broken CalculatorsolutionC++
992Subarrays with K Different IntegerssolutionC++
993Cousins in Binary TreesolutionC++
994Rotting OrangessolutionC++
995Minimum Number of K Consecutive Bit FlipssolutionC++
996Number of Squareful ArrayssolutionC++
997Find the Town Judge[无]C++
998Maximum Binary Tree II[无]C++
999Available Captures for Rook[无]C++
1000Minimum Cost to Merge Stones[无]C++
1001Grid Illumination[无]C++
1002Find Common Characters[无]C++
1003Check If Word Is Valid After Substitutions[无]C++
1004Max Consecutive Ones III[无]C++
1005Maximize Sum Of Array After K Negations[无]C++
1006Clumsy Factorial[无]C++
1007Minimum Domino Rotations For Equal Row[无]C++
1008Construct Binary Search Tree from Preorder Traversal[无]C++
1009Complement of Base 10 Integer[无]C++
1010Pairs of Songs With Total Durations Divisible by 60[无]C++
1011Capacity To Ship Packages Within D Days[无]C++
1012Numbers With 1 Repeated Digit[无]C++
1013Partition Array Into Three Parts With Equal Sum[无]C++
1014Best Sightseeing Pair[无]C++
1015Smallest Integer Divisible by K[无]C++
1016Binary String With Substrings Representing 1 To N[无]C++
1017Convert to Base -2[无]C++
1018Binary Prefix Divisible By 5[无]C++
1019Next Greater Node In Linked List[无]C++
1020Number of Enclaves[无]C++
1021Remove Outermost Parentheses[无]C++
1022Sum of Root To Leaf Binary Numbers[无]C++
1023Camelcase Matching[无]C++
1024Video Stitching[无]C++
1025Divisor Game[无]C++
1026Maximum Difference Between Node and Ancestor[无]C++
1027Longest Arithmetic Sequence[无]C++
1028Recover a Tree From Preorder Traversal[无]C++
1029Two City Scheduling[无]C++
1030Matrix Cells in Distance Order[无]C++
1031Maximum Sum of Two Non-Overlapping Subarrays[无]C++
1032Stream of Characters[无]C++
1033Moving Stones Until Consecutive[无]C++
1034Coloring A Border[无]C++
1035Uncrossed Lines[无]C++
1036Escape a Large Maze[无]C++
1037Valid Boomerang[无]C++
1038Binary Search Tree to Greater Sum Tree[无]C++
1039Minimum Score Triangulation of Polygon[无]C++
1040Moving Stones Until Consecutive II[无]C++
1041Robot Bounded In Circle[无]C++
1042Flower Planting With No Adjacent[无]C++
1043Partition Array for Maximum Sum[无]C++
1044Longest Duplicate Substring[无]
[缺:后缀数组]
C++
1046Last Stone Weight[无]C++
1047Remove All Adjacent Duplicates In String[无]C++
1049Last Stone Weight II[无]C++
1050Database Problem: Link----
1051Height Checker[无]C++
1052Grumpy Bookstore Owner[无]C++
1053Previous Permutation With One Swap[无]C++
1054Distant Barcodes[无]C++
1055Shortest Way to Form String[无]C++
1056Confusing Number[无]C++
1059All Paths from Source Lead to DestinationsolutionC++
1061Lexicographically Smallest Equivalent String[无]C++
1062Longest Repeating Substring[无]C++
1065Index Pairs of a String[无]C++
1066Campus Bikes IIsolutionC++
1072Flip Columns For Maximum Number of Equal Rows[无]C++
1074Number of Submatrices That Sum to Target[无]C++
1078Occurrences After Bigram[无]C++
1079Letter Tile Possibilities[无]C++
1080Insufficient Nodes in Root to Leaf Paths[无]C++
1081Smallest Subsequence of Distinct Characters[无]C++
1084Database Problem: Link----
1087Brace Expansion[无]C++
1088Confusing Number II[无]C++
1089Duplicate Zeros[无]C++
1090Largest Values From Labels[无]C++
1091Shortest Path in Binary Matrix[无]C++
1092Shortest Common Supersequence[无]C++
1093Statistics from a Large Sample[无]C++
1094Car Pooling[无]C++
1095Find in Mountain Array[无]C++
1096Brace Expansion II[无]
[缺:非递归算法]
C++
1099Two Sum Less Than K[无]C++
1100Find K-Length Substrings With No Repeated Characters[无]C++
1101The Earliest Moment When Everyone Become Friends[无]C++
1102Path With Maximum Minimum Value[无]
[缺:并查集]
C++
1103Distribute Candies to PeoplesolutionC++
1104Path In Zigzag Labelled Binary Tree[无]C++
1105Filling Bookcase Shelves[无]C++
1106Parsing A Boolean Expression[无]
[缺:非递归算法]
C++
1108Defanging an IP Address[无]C++
1109Corporate Flight Bookings[无]C++
1110Delete Nodes And Return Forest[无]C++
1111Maximum Nesting Depth of Two Valid Parentheses Strings[无]C++
1112Database Problem: Link----
1118Number of Days in a Month[无]C++
1119Remove Vowels from a String[无]C++
1120Maximum Average Subtree[无]C++
1121Divide Array Into Increasing Sequences[无]C++
1124Longest Well-Performing Interval[无]C++
1128Number of Equivalent Domino Pairs[无]C++
1129Shortest Path with Alternating Colors[无]C++
1130Minimum Cost Tree From Leaf Values[无]C++
1131Maximum of Absolute Value Expression[无]C++
1133Largest Unique Number[无]C++
1134Armstrong Number[无]C++
1135Connecting Cities With Minimum Cost[无]C++
1136Parallel Courses[无]
[缺:后序遍历拓扑排序]
C++
1137N-th Tribonacci Number[无]C++
1138Alphabet Board Path[无]C++
1139Largest 1-Bordered Square[无]C++
1140Stone Game II[无]C++
1141Database Problem: Link----
1143Longest Common Subsequence[无]C++
1144Decrease Elements To Make Array Zigzag[无]C++
1145Binary Tree Coloring Game[无]C++
1146Snapshot Array[无]C++
1147Longest Chunked Palindrome Decomposition[无]C++
1148Database Problem: Link----
1150Check If a Number Is Majority Element in a Sorted Array[无]C++
1151Minimum Swaps to Group All 1's Together[无]C++
1152Analyze User Website Visit Pattern[无]C++
1153String Transforms Into Another String[无]C++
1154Day of the Year[无]C++
1155Number of Dice Rolls With Target Sum[无]
[缺:空间优化]
C++
1156Swap For Longest Repeated Character Substring[无]C++
1157Online Majority Element In Subarray[无]C++
1158Database Problem: Link----
1160Find Words That Can Be Formed by Characters[无]C++
1161Maximum Level Sum of a Binary Tree[无]C++
1162As Far from Land as Possible[无]C++
1163Last Substring in Lexicographical Order[无]C++
1165Single-Row Keyboard[无]C++
1166Design File System[无]C++
1167Minimum Cost to Connect Sticks[无]C++
1168Optimize Water Distribution in a Village[无]C++
1169Invalid Transactions[无]C++
1170Compare Strings by Frequency of the Smallest Character[无]C++
1171Remove Zero Sum Consecutive Nodes from Linked List[无]C++
1172Dinner Plate Stacks[无]C++
1173Database Problem: Link----
1175Prime Arrangements[无]C++
1176Diet Plan Performance[无]C++
1177Can Make Palindrome from Substring[无]C++
1178Number of Valid Words for Each Puzzle[无]C++
1180Count Substrings with Only One Distinct Letter[无]C++
1181Before and After Puzzle[无]C++
1182Shortest Distance to Target Color[无]C++
1183Maximum Number of Ones[无]C++
1184Distance Between Bus Stops[无]C++
1185Day of the Week[无]C++
1186Maximum Subarray Sum with One Deletion[无]C++
1187Make Array Strictly Increasing[无]
[缺:动态规划]
C++
1189Maximum Number of Balloons[无]C++
1190Reverse Substrings Between Each Pair of Parentheses[无]C++
1191K-Concatenation Maximum Sum[无]C++
1192Critical Connections in a Network[无]C++
1196How Many Apples Can You Put into the Basket[无]C++
1197Minimum Knight Moves[无]C++
1198Find Smallest Common Element in All Rows[无]C++
1199Minimum Time to Build Blocks[无]C++
1200Minimum Absolute Difference[无]C++
1201Ugly Number III[无]C++
1202Smallest String With Swaps[无]C++
1203Sort Items by Groups Respecting Dependencies[无]C++
1207Unique Number of Occurrences[无]C++
1208Get Equal Substrings Within Budget[无]C++
1209Remove All Adjacent Duplicates in String II[无]C++
1210Minimum Moves to Reach Target with Rotations[无]C++
1211Database Problem: Link----
1213Intersection of Three Sorted Arrays[无]C++
1214Two Sum BSTs[无]C++
1215Stepping Numbers[无]C++
1216Valid Palindrome III[无]C++
1217Play with Chips[无]C++
1218Longest Arithmetic Subsequence of Given Difference[无]C++
1219Path with Maximum Gold[无]C++
1220Count Vowels Permutation[无]C++
1221Split a String in Balanced Strings[无]C++
1222Queens That Can Attack the King[无]C++
1223Dice Roll Simulation[无]C++
1224Maximum Equal Frequency[无]C++
1228Missing Number In Arithmetic Progression[无]C++
1229Meeting Scheduler[无]C++
1230Toss Strange Coins[无]C++
1231Divide Chocolate[无]C++
1232Check If It Is a Straight Line[无]C++
1233Remove Sub-Folders from the Filesystem[无]C++
1234Replace the Substring for Balanced String[无]C++
1235Maximum Profit in Job Scheduling[无]C++
1236Web Crawler[无]C++
1237Find Positive Integer Solution for a Given Equation[无]C++
1238Circular Permutation in Binary Representation[无]C++
1239Maximum Length of a Concatenated String with Unique Characters[无]C++
1240Tiling a Rectangle with the Fewest Squares[无]C++
1243Array Transformation[无]C++
1244Design A Leaderboard[无]C++
1245Tree Diameter[无]C++
1247Minimum Swaps to Make Strings Equal[无]C++
1248Count Number of Nice Subarrays[无]C++Java
1249Minimum Remove to Make Valid ParenthesessolutionC++
1250Check If It Is a Good Array[无]C++
1251Database Problem: Link----
1252Cells with Odd Values in a Matrix[无]C++
1253Reconstruct a 2-Row Binary Matrix[无]C++
1254Number of Closed Islands[无]C++
1255Maximum Score Words Formed by Letters[无]C++
1259Handshakes That Don't Cross[无]C++
1260Shift 2D GridsolutionC++
1261Find Elements in a Contaminated Binary TreeC++
1262Greatest Sum Divisible by Three[无]C++
1263Minimum Moves to Move a Box to Their Target Location[无]C++
1264Database Problem: Link----
1272Remove Interval[无]C++
1275Find Winner on a Tic Tac Toe Game[无]C++
1277Count Square Submatrices with All Ones题解C++
1278Palindrome Partitioning III[无]C++
1280Database Problem: Link----
1281Subtract the Product and Sum of Digits of an Integer[无]C++
1282Group the People Given the Group Size They Belong To[无]C++
1286Iterator for CombinationsolutionC++
1288Remove Covered IntervalssolutionC++
1289Minimum Falling Path Sum II[无]C++
1290Convert Binary Number in a Linked List to IntegersolutionC++
1291Sequential DigitssolutionC++
1293Shortest Path in a Grid with Obstacles EliminationsolutionC++
1302Deepest Leaves SumsolutionC++
1303Database Problem: Link----
1304Find N Unique Integers Sum up to Zero[无]C++
1305All Elements in Two Binary Search Trees[无]C++
1306Jump Game III[无]C++
1307Verbal Arithmetic Puzzle[无]C++
1309Decrypt String from Alphabet to Integer Mapping[无]C++
1310XOR Queries of a Subarray[无]C++
1311Get Watched Videos by Your Friends[无]C++
1312Minimum Insertion Steps to Make a String Palindrome[无]C++
1317Convert Integer to the Sum of Two No-Zero Integers[无]C++
1318Minimum Flips to Make a OR b Equal to c[无]C++
1319Number of Operations to Make Network Connected[无]C++
1323Maximum 69 Number[无]C++
1326Minimum Number of Taps to Open to Water a Garden[无]C++
1328Break a PalindromesolutionC++
1329Sort the Matrix DiagonallysolutionC++
1330Reverse Subarray To Maximize Array Value[无]C++
1331Rank Transform of an Array[无]C++
1332Remove Palindromic SubsequencessolutionC++
1333Filter Restaurants by Vegan-Friendly, Price and Distance[无]C++
1334Find the City With the Smallest Number of Neighbors at a Threshold Distance[无]C++
1335Minimum Difficulty of a Job Schedule[无]C++
1337The K Weakest Rows in a MatrixsolutionC++
1338Reduce Array Size to The HalfsolutionC++
1339Maximum Product of Splitted Binary TreesolutionC++
1340Jump Game V[无]C++
1341Database Problem: Link----
1342Number of Steps to Reduce a Number to Zero[无]C++
1343Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold[无]C++
1344Angle Between Hands of a ClockC++
1345Jump Game IV[无]C++
1346Check If N and Its Double Exist[无]C++
1347Minimum Number of Steps to Make Two Strings Anagram[无]C++
1348Tweet Counts Per Frequency[无]C++
1349Maximum Students Taking Exam[无]C++
1350Database Problem: Link----
1351Count Negative Numbers in a Sorted Matrix[无]C++
1352Product of the Last K Numbers[无]C++
1353Maximum Number of Events That Can Be Attended[无]C++
1354Construct Target Array With Multiple SumssolutionC++
1355Database Problem: Link----
1356Sort Integers by The Number of 1 Bits[无]C++
1357Apply Discount Every n Orders[无]C++
1358Number of Substrings Containing All Three Characters[无]C++
1359Count All Valid Pickup and Delivery Options[无]C++
1360Number of Days Between Two Dates[无]C++
1361Validate Binary Tree Nodes[无]C++
1362Closest Divisors[无]C++
1363Largest Multiple of Three[无]C++
1364Database Problem: Link----
1365How Many Numbers Are Smaller Than the Current Number[无]C++
1366Rank Teams by Votes[无]C++
1367Linked List in Binary Tree[无]C++
1368Minimum Cost to Make at Least One Valid Path in a Grid[无]C++
1369Database Problem: Link----
1370Increasing Decreasing String[无]C++
1371Find the Longest Substring Containing Vowels in Even Counts[无]C++
1372Longest ZigZag Path in a Binary Tree题解
[缺:dp,返回值DFS]
C++
1373Maximum Sum BST in Binary Tree[无]C++
1374Generate a String With Characters That Have Odd Counts[无]C++
1375Bulb Switcher III[无]C++
1376Time Needed to Inform All Employees[无]C++
1377Frog Position After T Seconds[无]C++
1378Database Problem: Link----
1379Find a Corresponding Node of a Binary Tree in a Clone of That Tree[无]C++
1383Maximum Performance of a Team[无]C++
1384Database Problem: Link----
1389Create Target Array in the Given Order[无]C++
1390Four Divisors[无]C++
1391Check if There is a Valid Path in a Grid[无]C++
1392Longest Happy Prefix[无]C++
1393Database Problem: Link----
1394Find Lucky Integer in an Array[无]C++
1395Count Number of Teams[无]
[缺:线段树]
C++
1396Design Underground SystemsolutionC++
1397Find All Good Strings[无]
[缺:双端数位 DP]
C++
1398Database Problem: Link----
1399Count Largest Group[无]C++
1400Construct K Palindrome Strings[无]C++
1401Circle and Rectangle Overlapping[无]C++
1402Reducing Dishes[无]C++
1403Minimum Subsequence in Non Increasing Order[无]C++
1404Number of Steps to Reduce a Number in Binary Representation to One[无]C++
1405Longest Happy String[无]C++
1406Stone Game III[无]C++
1407Database Problem: Link----
1408String Matching in an Array[无]C++
1409Queries on a Permutation With Key[无]
[缺:BIT]
C++
1410HTML Entity Parser[无]C++
1411Number of Ways to Paint N × 3 Grid[无]C++
1412Database Problem: Link----
1413Minimum Value to Get Positive Step by Step Sum[无]C++
1414Find the Minimum Number of Fibonacci Numbers Whose Sum Is K[无]C++
1415The k-th Lexicographical String of All Happy Strings of Length n[无]C++
1416Restore The Array[无]C++
1417Reformat The String[无]C++
1418Display Table of Food Orders in a Restaurant[无]C++
1419Minimum Number of Frogs Croaking[无]C++
1420Build Array Where You Can Find The Maximum Exactly K Comparisons[无]C++
1421Database Problem: Link----
1422Maximum Score After Splitting a String[无]C++
1423Maximum Points You Can Obtain from Cards[无]C++
1424Diagonal Traverse II[无]C++
1425Constrained Subset Sum[无]C++
1426Counting ElementssolutionC++
1427Perform String ShiftssolutionC++
1428Leftmost Column with at Least a OnesolutionC++
1429First Unique NumbersolutionC++
1430Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree[无]C++
1431Kids With the Greatest Number of Candies[无]C++
1432Max Difference You Can Get From Changing an Integer[无]C++
1433Check If a String Can Break Another String[无]C++
1434Number of Ways to Wear Different Hats to Each Other[无]C++
1435Database Problem: Link----
1436Destination City[无]C++
1437Check If All 1's Are at Least Length K Places Away[无]C++
1438Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit[无]C++
1439Find the Kth Smallest Sum of a Matrix With Sorted Rows[无]C++
1440Database Problem: Link----
1441Build an Array With Stack Operations[无]C++
1442Count Triplets That Can Form Two Arrays of Equal XOR[无]
[缺:O(n)]
C++
1443Minimum Time to Collect All Apples in a Tree[无]C++
1444Number of Ways of Cutting a Pizza[无]C++
1445Database Problem: Link----
1446Consecutive Characters[无]C++
1447Simplified Fractions[无]C++
1448Count Good Nodes in Binary Tree[无]C++
1449Form Largest Integer With Digits That Add up to Target[无]C++
1450Number of Students Doing Homework at a Given Time[无]C++
1451Rearrange Words in a Sentence[无]C++
1452People Whose List of Favorite Companies Is Not a Subset of Another List[无]C++
1453Maximum Number of Darts Inside of a Circular Dartboard[无]
[缺:Angular Sweep]
C++
1454Database Problem: Link----
1455Check If a Word Occurs As a Prefix of Any Word in a Sentence[无]C++
1456Maximum Number of Vowels in a Substring of Given Length[无]C++
1457Pseudo Palindromic Paths in a Binary Tree[无]C++
1458Max Dot Product of Two Subsequences[无]C++
1459Database Problem: Link----
1460Make Two Arrays Equal by Reversing Sub-arrays[无]C++
1461Check If a String Contains All Binary Codes of Size K[无]C++
1462Course Schedule IV[无]C++
1463Cherry Pickup II[无]C++
1464Maximum Product of Two Elements in an Array[无]C++
1465Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts[无]C++
1466Reorder Routes to Make All Paths Lead to the City Zero[无]C++
1467Probability of a Two Boxes Having The Same Number of Distinct Balls[无]C++
1468Database Problem: Link----
1469Find All the Lonely Nodes[无]C++
1470Shuffle the Array[无]C++
1471The k Strongest Values in an Array[无]C++
1472Design Browser History[无]C++
1473Paint House III[无]C++
1474Delete N Nodes After M Nodes of a Linked List[无]C++
1475Final Prices With a Special Discount in a Shop[无]C++
1476Subrectangle Queries[无]C++
1477Find Two Non-overlapping Sub-arrays Each With Target Sum[无]C++
1478Allocate Mailboxes[无]C++
1479Database Problem: Link----
1480Running Sum of 1d Array[无]C++
1481Least Number of Unique Integers after K Removals[无]C++
1482Minimum Number of Days to Make m Bouquets[无]C++
1483Kth Ancestor of a Tree Node[无]C++
1484Database Problem: Link----
1485Clone Binary Tree With Random Pointer[无]C++
1486XOR Operation in an Array[无]C++
1487Making File Names Unique[无]C++
1488Avoid Flood in The City[无]C++
1489Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree[无]
[缺:O(ElogE) 的解]
C++
1490Clone N-ary Tree[无]C++
1491Average Salary Excluding the Minimum and Maximum Salary[无]C++
1492The kth Factor of n[无]C++
1493Longest Subarray of 1's After Deleting One Element[无]C++
1494Parallel Courses II[无]C++
1495Database Problem: Link----
1496Path Crossing[无]C++
1497Check If Array Pairs Are Divisible by k[无]C++
1498Number of Subsequences That Satisfy the Given Sum Condition[无]C++
1499Max Value of Equation[无]C++
1506Find Root of N-Ary TreesolutionC++
1519Number of Nodes in the Sub-Tree With the Same LabelsolutionC++
1522Diameter of N-Ary Tree[无]C++
1523Count Odd Numbers in an Interval Range[无]C++
1527Database Problem: Link----
1531String Compression II[无][缺:其他解法]C++
1533Find the Index of the Large IntegersolutionC++
1539Kth Missing Positive NumbersolutionC++
1557Minimum Number of Vertices to Reach All Nodes[无]C++
1559Detect Cycles in 2D Grid[无]C++
1564Put Boxes Into the Warehouse I[无]C++
1570Dot Product of Two Sparse VectorssolutionC++
1571Database Problem: Link----
1572Matrix Diagonal Sum[无]C++
1574Shortest Subarray to be Removed to Make Array Sorted[无]C++
1575Count All Possible Routes[无]C++
1576Replace All ?'s to Avoid Consecutive Repeating Characters[无]C++
1577Number of Ways Where Square of Number Is Equal to Product of Two Numbers[无]C++
1578Minimum Deletion Cost to Avoid Repeating Letters[无]C++
1579Remove Max Number of Edges to Keep Graph Fully Traversable[无]C++
1580Put Boxes Into the Warehouse II[无]C++
1581Database Problem: Link----
1582Special Positions in a Binary Matrix[无]C++
1583Count Unhappy Friends[无]C++
1584Min Cost to Connect All Points[无]
[缺:prim 和 ]
C++
1585Check If String Is Transformable With Substring Sort Operations[无]C++
1586Binary Search Tree Iterator II[无]
[缺:用栈模拟]
C++
1587Database Problem: Link----
1588Sum of All Odd Length Subarrays[无]C++
1589Maximum Sum Obtained of Any Permutation[无]C++
1590Make Sum Divisible by P[无]C++
1591Strange Printer II[无]C++
1592Rearrange Spaces Between Words[无]C++
1593Split a String Into the Max Number of Unique Substrings[无]C++
1594Maximum Non Negative Product in a Matrix[无]C++
1595Minimum Cost to Connect Two Groups of Points[无]C++
1596Database Problem: Link----
1597Build Binary Expression Tree From Infix Expression[无]C++
1598Crawler Log Folder[无]C++
1599Maximum Profit of Operating a Centennial Wheel[无]C++
1600Throne Inheritance[无]C++
1601Maximum Number of Achievable Transfer Requests[无]
[缺:网络流解法]
C++
1602Find Nearest Right Node in Binary TreesolutionC++
1603Design Parking System[无]C++
1604Alert Using Same Key-Card Three or More Times in a One Hour Period[无]C++
1605Find Valid Matrix Given Row and Column Sums[无]C++
1606Find Servers That Handled Most Number of Requests[无]C++
1607Database Problem: Link----
1608Special Array With X Elements Greater Than or Equal X[无]C++
1609Even Odd Tree[无]C++
1610Maximum Number of Visible Points[无]C++
1611Minimum One Bit Operations to Make Integers Zero[无]C++
1612Check If Two Expression Trees are Equivalent[无]C++
1613Database Problem: Link----
1614Maximum Nesting Depth of the Parentheses[无]C++
1615Maximal Network Rank[无]C++
1616Split Two Strings to Make Palindrome[无]C++
1617Count Subtrees With Max Distance Between Cities[无]C++
1618Maximum Font to Fit a Sentence in a Screen[无]C++
1619Mean of Array After Removing Some Elements[无]C++
1620Coordinate With Maximum Network Quality[无]C++
1621Number of Sets of K Non-Overlapping Line Segments[无]C++
1622Fancy Sequence[无]C++
1623Database Problem: Link----
1624Largest Substring Between Two Equal Characters[无]C++
1625Lexicographically Smallest String After Applying Operations[无]C++
1626Best Team With No Conflicts[无]
[缺:nlogn 算法]
C++
1627Graph Connectivity With Threshold[无]C++
1628Design an Expression Tree With Evaluate Function[无]C++
1629Slowest Key[无]C++
1630Arithmetic Subarrays[无]C++
1631Path With Minimum EffortsolutionC++
1632Rank Transform of a MatrixsolutionC++
1633Database Problem: Link----
1634Add Two Polynomials Represented as Linked Lists[无]C++
1635Database Problem: Link----
1636Sort Array by Increasing Frequency[无]C++
1637Widest Vertical Area Between Two Points Containing No Points[无]C++
1638Count Substrings That Differ by One Character[无]C++
1639Number of Ways to Form a Target String Given a Dictionary[无]C++
1640Check Array Formation Through ConcatenationsolutionC++
1641Count Sorted Vowel StringssolutionC++
1642Furthest Building You Can Reach[无]C++
1643Kth Smallest Instructions[无]C++
1644Lowest Common Ancestor of a Binary Tree II[无]C++
1645Database Problem: Link----
1646Get Maximum in Generated ArraysolutionC++
1647Minimum Deletions to Make Character Frequencies Unique[无]C++
1648Sell Diminishing-Valued Colored Balls[无]C++
1649Create Sorted Array through Instructionssolution
[缺:树状数组;归并]
C++
1650Lowest Common Ancestor of a Binary Tree III[无]C++
1651Database Problem: Link----
1652Defuse the Bomb[无]C++
1653Minimum Deletions to Make String Balanced[无]C++
1654Minimum Jumps to Reach Home[无]C++
1655Distribute Repeating Integers[无]C++
1656Design an Ordered Stream[无]C++
1657Determine if Two Strings Are ClosesolutionC++
1658Minimum Operations to Reduce X to ZerosolutionC++
1659Maximize Grid Happiness[无]C++Java
1660Correct a Binary Tree[无]C++
1661Database Problem: Link----
1662Check If Two String Arrays are EquivalentsolutionC++
1663Smallest String With A Given Numeric ValuesolutionC++
1664Ways to Make a Fair Array[无]C++
1665Minimum Initial Energy to Finish Tasks[无]C++
1666Change the Root of a Binary Tree[无]C++
1667Database Problem: Link----
1668Maximum Repeating Substring[无]C++
1669Merge In Between Linked Lists[无]C++
1670Design Front Middle Back Queue[无]C++
1671Minimum Number of Removals to Make Mountain Array[无]C++
1672Richest Customer Wealth[无]C++
1673Find the Most Competitive SubsequencesolutionC++
1674Minimum Moves to Make Array Complementary[无]C++
1675Minimize Deviation in ArraysolutionC++
1676Lowest Common Ancestor of a Binary Tree IV[无]C++
1677Database Problem: Link----
1678Goal Parser Interpretation[无]C++
1679Max Number of K-Sum PairssolutionC++
1680Concatenation of Consecutive Binary NumberssolutionC++
1681Minimum Incompatibility[无]C++
1682Longest Palindromic Subsequence II[无]C++
1683Database Problem: Link----
1684Count the Number of Consistent Strings[无]C++
1685Sum of Absolute Differences in a Sorted Array[无]C++
1686Stone Game VI[无]C++
1687Delivering Boxes from Storage to Ports[无]
[缺:dp + 优化]
C++
1688Count of Matches in TournamentC++
1689Partitioning Into Minimum Number Of Deci-Binary NumberssolutionC++
1690Stone Game VIIsolution
[缺:记忆化搜索;DP 空间优化]
C++
1691Maximum Height by Stacking Cuboids[无]C++
1692Count Ways to Distribute Candies[无]C++
1693Database Problem: Link----
1694Reformat Phone Number[无]C++
1695Maximum Erasure Value[无]C++
1696Jump Game VI[无]C++
1697Checking Existence of Edge Length Limited Paths[无]C++
1698Number of Distinct Substrings in a String[无]C++
1699Database Problem: Link----
1700Number of Students Unable to Eat Lunch[无]C++
1701Average Waiting Time[无]C++
1702Maximum Binary String After Change[无]C++
1703Minimum Adjacent Swaps for K Consecutive Ones[无]C++
1704Determine if String Halves Are AlikesolutionC++
1705Maximum Number of Eaten ApplessolutionC++
1706Where Will the Ball Fall[无]C++
1707Maximum XOR With an Element From Array[无]C++
1708Largest Subarray Length K[无]C++
1709Database Problem: Link----
1710Maximum Units on a TrucksolutionC++
1711Count Good Meals[无]C++
1712Ways to Split Array Into Three SubarrayssolutionC++
1713Minimum Operations to Make a Subsequence[无]C++
1714Sum Of Special Evenly-Spaced Elements In Array[无]C++
1715Database Problem: Link----
1716Calculate Money in Leetcode Bank[无]C++
1717Maximum Score From Removing Substrings[无]C++
1718Construct the Lexicographically Largest Valid Sequence[无]C++
1719Number Of Ways To Reconstruct A Tree[无]C++
1720Decode XORed Array[无]C++
1721Swapping Nodes in a Linked List[无]C++
1722Minimize Hamming Distance After Swap Operations[无]C++
1723Find Minimum Time to Finish All Jobs[无]C++
1724Checking Existence of Edge Length Limited Paths II[无]C++
1725Number Of Rectangles That Can Form The Largest Square[无]C++
1726Tuple with Same Product[无]C++
1727Largest Submatrix With Rearrangements[无]C++
1728Cat and Mouse II[无]C++
1729Database Problem: Link----
1730Shortest Path to Get Food[无]C++
1731Database Problem: Link----
1732Find the Highest Altitude[无]C++
1733Minimum Number of People to Teach[无]C++
1734Decode XORed Permutation[无]C++
1735Count Ways to Make Array With Product[无]C++
1736Latest Time by Replacing Hidden Digits[无]C++
1737Change Minimum Characters to Satisfy One of Three Conditions[无]C++
1738Find Kth Largest XOR Coordinate Value[无]C++
1739Building Boxes[无]
[缺:二分;数学]
C++
1740Find Distance in a Binary Tree[无]
[缺:LCA]
C++
1741Database Problem: Link----
1742Maximum Number of Balls in a Box[无]C++
1743Restore the Array From Adjacent Pairs[无]C++
1744Can You Eat Your Favorite Candy on Your Favorite Day?[无]C++
1745Palindrome Partitioning IV[无]C++
1746Maximum Subarray Sum After One Operation[无]C++
1747Database Problem: Link----
1748Sum of Unique Elements[无]C++
1749Maximum Absolute Sum of Any Subarray[无]C++
1750Minimum Length of String After Deleting Similar Ends[无]C++
1751Maximum Number of Events That Can Be Attended II[无]C++
1752Check if Array Is Sorted and Rotated[无]C++
1753Maximum Score From Removing Stones[无]C++
1754Largest Merge Of Two Strings[无]C++
1755Closest Subsequence Sum[无]C++
1756Design Most Recently Used Queue[无]
[缺:线段树,sqrt 分解]
C++
1757Database Problem: Link----
1758Minimum Changes To Make Alternating Binary String[无]C++
1759Count Number of Homogenous Substrings[无]C++
1760Minimum Limit of Balls in a Bag[无]C++
1761Minimum Degree of a Connected Trio in a Graph[无]C++
1762Buildings With an Ocean View[无]C++
1763Longest Nice Substring[无]C++
1764Form Array by Concatenating Subarrays of Another Array
1765Map of Highest Peak[无]C++
1766Tree of Coprimes[无]C++
1767Database Problem: Link----
1768Merge Strings Alternately[无]C++
1769Minimum Number of Operations to Move All Balls to Each Box[无]C++
1770Maximum Score from Performing Multiplication Operations[无]C++
1771Maximize Palindrome Length From Subsequences[无]C++
1772Sort Features by Popularity[无]C++
1773Count Items Matching a Rule[无]C++
1774Closest Dessert Cost[无]C++
1775Equal Sum Arrays With Minimum Number of Operations[无]C++
1776Car Fleet II[无]
[缺:stack]
C++
1777Database Problem: Link----
1778Shortest Path in a Hidden Grid[无]C++
1779Find Nearest Point That Has the Same X or Y Coordinate[无]C++
1780Check if Number is a Sum of Powers of Three[无]C++
1781Sum of Beauty of All Substrings[无]C++
1782Count Pairs Of Nodes[无]C++
1783Database Problem: Link----
1784Check if Binary String Has at Most One Segment of Ones[无]C++
1785Minimum Elements to Add to Form a Given Sum[无]C++
1786Number of Restricted Paths From First to Last Node[无]C++
1787Make the XOR of All Segments Equal to Zero[无]C++
1788Maximize the Beauty of the Garden[无]C++
1789Database Problem: Link----
1790Check if One String Swap Can Make Strings Equal[无]C++
1791Find Center of Star Graph[无]C++
1792Maximum Average Pass Ratio[无]C++
1793Maximum Score of a Good Subarray[无]C++
1794Count Pairs of Equal Substrings With Minimum Difference[无]C++
1795Database Problem: Link----
1796Second Largest Digit in a String[无]C++
1797Design Authentication Manager[无]C++
1798Maximum Number of Consecutive Values You Can Make[无]C++
1799Maximize Score After N Operations[无]C++
1800Maximum Ascending Subarray Sum[无]C++
1801Number of Orders in the Backlog[无]C++
1802Maximum Value at a Given Index in a Bounded Array[无]C++
1803Count Pairs With XOR in a Range[无]C++
1804Implement Trie II (Prefix Tree)[无]C++
1805Number of Different Integers in a String[无]C++
1806Minimum Number of Operations to Reinitialize a Permutation[无]
[缺:数学方法]
C++
1807Evaluate the Bracket Pairs of a String[无]C++
1808Maximize Number of Nice Divisors[无]C++
1809Database Problem: Link----
1810Minimum Path Cost in a Hidden Grid[无]C++
1811Database Problem: Link----
1812Determine Color of a Chessboard Square[无]C++
1813Sentence Similarity III[无]C++
1814Count Nice Pairs in an Array[无]C++
1815Maximum Number of Groups Getting Fresh Donuts[无]C++
1816Truncate Sentence[无]C++
1817Finding the Users Active Minutes[无]C++
1818Minimum Absolute Sum Difference[无]C++
1819Number of Different Subsequences GCDs[无]C++
1820Maximum Number of Accepted Invitations[无]C++
1821Database Problem: Link----
1822Sign of the Product of an Array[无]C++
1823Find the Winner of the Circular Game[无]C++
1824Minimum Sideway Jumps[无]
[缺:DP]
C++
1825Finding MK Average[无]
[缺:线段树,AVL]
C++
1826Faulty Sensor[无]C++
1827Minimum Operations to Make the Array Increasing[无]C++
1828Queries on Number of Points Inside a Circle[无]C++
1829Maximum XOR for Each Query[无]C++
1830Minimum Number of Operations to Make String Sorted[无]C++
1831Database Problem: Link----
1832Check if the Sentence Is Pangram[无]C++
1833Maximum Ice Cream Bars[无]C++
1834Single-Threaded CPU[无]C++
1835Find XOR Sum of All Pairs Bitwise AND[无]
[缺:数学方法]
C++
1836Remove Duplicates From an Unsorted Linked List[无]C++
1837Sum of Digits in Base K[无]C++
1838Frequency of the Most Frequent Element[无]C++
1839Longest Substring Of All Vowels in Order[无]C++
1840Maximum Building Height[无]C++
1841Database Problem: Link----
1842Next Palindrome Using Same Digits[无]C++
1843Database Problem: Link----
1844Replace All Digits with Characters[无]C++
1845Seat Reservation Manager[无]C++
1846Maximum Element After Decreasing and Rearranging[无]C++
1847Closest Room[无]C++
1848Minimum Distance to the Target Element[无]C++
1849Splitting a String Into Descending Consecutive Values[无]C++
1850Minimum Adjacent Swaps to Reach the Kth Smallest Number[无]C++
1851Minimum Interval to Include Each Query[无]C++
1852Distinct Numbers in Each Subarray[无]C++
1853Database Problem: Link----
1854Maximum Population Year[无]C++
1855Maximum Distance Between a Pair of Values[无]C++
1856Maximum Subarray Min-Product[无]C++
1857Largest Color Value in a Directed Graph[无]C++
1858Longest Word With All Prefixes[无]C++
1859Sorting the Sentence[无]C++
1860Incremental Memory Leak[无]C++
1861Rotating the Box[无]C++
1862Sum of Floored Pairs[无]C++
1863Sum of All Subset XOR Totals[无]
[缺:数学解]
C++
1864Minimum Number of Swaps to Make the Binary String Alternating[无]C++
1865Finding Pairs With a Certain Sum[无]C++
1866Number of Ways to Rearrange Sticks With K Sticks Visible[无]C++
1867Database Problem: Link----
1868Product of Two Run-Length Encoded Arrays[无]C++
1869Longer Contiguous Segments of Ones than Zeros[无]C++
1870Minimum Speed to Arrive on Time[无]C++
1871Jump Game VII[无]C++
1872Stone Game VIIIsolution
1873Database Problem: Link----
1874Minimize Product Sum of Two Arrays[无]C++
1875Database Problem: Link----
1876Substrings of Size Three with Distinct Characters[无]C++
1877Minimize Maximum Pair Sum in Array[无]C++
1878Get Biggest Three Rhombus Sums in a Grid[无]C++
1879Minimum XOR Sum of Two Arrays[无]
[缺:DP]
C++
1880Check if Word Equals Summation of Two Words[无]C++
1881Maximum Value after Insertion[无]C++
1882Process Tasks Using Servers[无]C++
1883Minimum Skips to Arrive at Meeting On Time[无]
[缺:DP]
C++
1884Egg Drop With 2 Eggs and N Floors[无]
[缺:O(1) 数学]
C++
1885Count Pairs in Two Arrays[无]C++
1886Determine Whether Matrix Can Be Obtained By Rotation[无]C++
1887Reduction Operations to Make the Array Elements Equal[无]C++
1888Minimum Number of Flips to Make the Binary String Alternating[无]C++
1889Minimum Space Wasted From Packaging[无]C++
1890Database Problem: Link----
1891Cutting Ribbons[无]C++
1892Database Problem: Link----
1893Check if All the Integers in a Range Are Covered[无]C++
1894Find the Student that Will Replace the Chalk[无]C++
1895Largest Magic Square[无]C++
1896Minimum Cost to Change the Final Value of Expression[无]C++
1897Redistribute Characters to Make All Strings Equal[无]C++
1898Maximum Number of Removable Characters[无]C++
1899Merge Triplets to Form Target Triplet[无]C++
1900The Earliest and Latest Rounds Where Players Compete[无]C++
1901Find a Peak Element II[无]C++
1902Depth of BST Given Insertion Order[无]C++
1903Largest Odd Number in String[无]C++
1904The Number of Full Rounds You Have Played[无]C++
1905Count Sub Islands[无]C++
1906Minimum Absolute Difference Queries[无]
[缺:二分]
C++
1907Database Problem: Link----
1908Game of Nim[无]
[缺:dp]
C++
1909Remove One Element to Make the Array Strictly Increasing[无]C++
1910Remove All Occurrences of a Substring[无]C++
1911Maximum Alternating Subsequence Sum[无]
[缺:dp]
C++
1912Design Movie Rental System[无]C++
1913Maximum Product Difference Between Two Pairs[无]C++
1914Cyclically Rotating a Grid[无]C++
1915Number of Wonderful Substrings[无]C++
1916Count Ways to Build Rooms in an Ant Colony[无]C++
1917Database Problem: Link----
1918Kth Smallest Subarray Sum[无]C++
1919Database Problem: Link----
1920Build Array from Permutation[无]C++
1921Eliminate Maximum Number of Monsters[无]C++
1922Count Good Numbers[无]C++
1923Longest Common Subpath[无]
[缺:后缀树组+LCP
滚动哈希两次碰撞]
C++
1924Erect the Fence II[无]C++
1925Count Square Sum Triples[无]C++
1926Nearest Exit from Entrance in Maze[无]C++
1927Sum Game[无]C++
1928Minimum Cost to Reach Destination in Time[无]C++
1929Concatenation of Array[无]C++
1930Unique Length-3 Palindromic Subsequences[无]C++
1931Painting a Grid With Three Different Colors[无]C++
1932Merge BSTs to Create Single BST[无]C++
1933Check if String Is Decomposable Into Value-Equal Substrings[无]C++
1934Database Problem: Link----
1935Maximum Number of Words You Can Type[无]C++
1936Add Minimum Number of Rungs[无]C++
1937Maximum Number of Points with Cost[无]C++
1938Maximum Genetic Difference Query[无]C++
1939Database Problem: Link----
1940Longest Common Subsequence Between Sorted Arrays[无]C++
1941Check if All Characters Have Equal Number of Occurrences[无]C++
1942The Number of the Smallest Unoccupied Chair[无]C++
1943Describe the Painting[无]C++
1944Number of Visible People in a Queue[无]C++
1945Sum of Digits of String After Convert[无]C++
1946Largest Number After Mutating Substring[无]C++
1947Maximum Compatibility Score Sum[无]C++
1948Delete Duplicate Folders in System[无]C++
1949Database Problem: Link----
1950Maximum of Minimum Values in All Subarrays[无]C++
1951Database Problem: Link----
1952Three Divisors[无]C++
1953Maximum Number of Weeks for Which You Can Work[无]C++
1954Minimum Garden Perimeter to Collect Enough Apples[无]C++
1955Count Number of Special Subsequences[无]C++
1956Minimum Time For K Virus Variants to Spread[无]C++
1957Delete Characters to Make Fancy String[无]C++
1958Check if Move is Legal[无]C++
1959Minimum Total Space Wasted With K Resizing Operations[无]C++
1960Maximum Product of the Length of Two Palindromic Substrings[无]C++
1961Check If String Is a Prefix of Array[无]C++
1962Remove Stones to Minimize the Total[无]C++
1963Minimum Number of Swaps to Make the String Balanced[无]C++
1964Find the Longest Valid Obstacle Course at Each Position[无]C++
1965Database Problem: Link----
1966Binary Searchable Numbers in an Unsorted Array[无]C++
1967Number of Strings That Appear as Substrings in Word[无]C++
1968Array With Elements Not Equal to Average of Neighbors[无]C++
1969Minimum Non-Zero Product of the Array Elements[无]C++
1970Last Day Where You Can Still Cross[无]C++
1971Find if Path Exists in Graph[无]C++
1972Database Problem: Link----
1973Count Nodes Equal to Sum of Descendants[无]C++
1974Minimum Time to Type Word Using Special Typewriter[无]C++
1975Maximum Matrix Sum[无]C++
1976Number of Ways to Arrive at Destination[无]C++
1977Number of Ways to Separate Numbers[无]C++
1978Database Problem: Link----
1979Find Greatest Common Divisor of Array[无]C++
1980Find Unique Binary String[无]C++
1981Minimize the Difference Between Target and Chosen Elements[无]C++
1982Find Array Given Subset Sums[无]C++
1983Widest Pair of Indices With Equal Range Sum[无]C++
1984Minimum Difference Between Highest and Lowest of K Scores[无]C++
1985Find the Kth Largest Integer in the Array[无]C++
1986Minimum Number of Work Sessions to Finish the Tasks[无]C++
1987Number of Unique Good Subsequences[无]C++
1988Database Problem: Link----
1989Maximum Number of People That Can Be Caught in Tag[无]C++
1990Database Problem: Link----
1991Find the Middle Index in Array[无]C++
1992Find All Groups of Farmland[无]C++
1993Operations on Tree[无]C++
1994The Number of Good Subsets[无]C++
1995Count Special Quadruplets[无]C++
1996The Number of Weak Characters in the Game[无]C++
1997First Day Where You Have Been in All the Rooms[无]C++
1998GCD Sort of an Array[无]C++
1999Smallest Greater Multiple Made of Two Digits[无]C++
2000Reverse Prefix of Word[无]C++
2001Number of Pairs of Interchangeable Rectangles[无]C++
2002Maximum Product of the Length of Two Palindromic Subsequences[无]C++
2003Smallest Missing Genetic Value in Each Subtree[无]C++
2004Database Problem: Link----
2005Subtree Removal Game with Fibonacci Tree[无]C++
2006Count Number of Pairs With Absolute Difference K[无]C++
2007Find Original Array From Doubled Array[无]C++
2008Maximum Earnings From Taxi[无]C++
2009Minimum Number of Operations to Make Array Continuous[无]C++
2010Database Problem: Link----
2011Final Value of Variable After Performing Operations[无]C++
2012Sum of Beauty in the Array[无]C++
2013Detect Squares[无]C++
2014Longest Subsequence Repeated k Times[无]C++
2015Average Height of Buildings in Each Segment[无]C++
2016Maximum Difference Between Increasing Elements[无]C++
2017Grid Game[无]C++
2018Check if Word Can Be Placed In Crossword[无]C++
2019The Score of Students Solving Math Expression[无]C++
2020Database Problem: Link----
2021Brightest Position on Street[无]C++
2022Convert 1D Array Into 2D Array[无]C++
2023Number of Pairs of Strings With Concatenation Equal to Target[无]C++
2024Maximize the Confusion of an Exam[无]C++
2025Maximum Number of Ways to Partition an Array[无]C++
2026Database Problem: Link----
2027Minimum Moves to Convert String[无]C++
2028Find Missing Observations[无]C++
2029Stone Game IX[无]C++
2030Smallest K-Length Subsequence With Occurrences of a Letter[无]C++
2031Count Subarrays With More Ones Than Zeros[缺:更简单的解法]C++
2032Two Out of Three[无]C++
2033Minimum Operations to Make a Uni-Value Grid[无]C++
2034Stock Price Fluctuation[无]C++
2035Partition Array Into Two Arrays to Minimize Sum Difference[无]C++
2036Maximum Alternating Subarray Sum[无]c++
2037Minimum Number of Moves to Seat Everyone[无]C++
2038Remove Colored Pieces if Both Neighbors are the Same Color[无]C++
2039The Time When the Network Becomes Idle[无]C++
2040Kth Smallest Product of Two Sorted Arrays[无]C++
2041Database Problem: Link----
2042Check if Numbers Are Ascending in a Sentence[无]C++
2043Simple Bank System[无]C++
2044Count Number of Maximum Bitwise-OR Subsets[无]C++
2045Second Minimum Time to Reach Destination[无]C++
2046Sort Linked List Already Sorted Using Absolute Values[无]C++
2047Number of Valid Words in a Sentence[无]C++
2048Next Greater Numerically Balanced Number[无]C++
2049Count Nodes With the Highest Score[无]C++
2050Parallel Courses III[无]C++
2051Database Problem: Link----
2052Minimum Cost to Separate Sentence Into Rows[无]C++
2053Kth Distinct String in an Array[无]C++
2054Two Best Non-Overlapping Events[无]C++
2055Plates Between Candles[无]C++
2056Number of Valid Move Combinations On Chessboard[无]C++
2057Smallest Index With Equal Value[无]C++
2058Find the Minimum and Maximum Number of Nodes Between Critical Points[无]C++
2059Minimum Operations to Convert Number[无]C++
2060Check if an Original String Exists Given Two Encoded Strings[无]C++
2061Number of Spaces Cleaning Robot Cleaned[无]C++
2062Count Vowel Substrings of a String[无]C++
2063Vowels of All Substrings[无]C++
2064Minimized Maximum of Products Distributed to Any Store[无]C++
2065Maximum Path Quality of a Graph[无]C++
2066Database Problem: Link----
2067Number of Equal Count Substrings[无]C++
2068Check Whether Two Strings are Almost Equivalent[无]C++
2069Walking Robot Simulation II[无]C++
2070Most Beautiful Item for Each Query[无]C++
2071Maximum Number of Tasks You Can Assign[无]C++
2072Database Problem: Link----
2073Time Needed to Buy Tickets[无]C++
2074Reverse Nodes in Even Length Groups[无]C++
2075Decode the Slanted Ciphertext[无]C++
2076Process Restricted Friend Requests[无]C++
2077Paths in Maze That Lead to Same Room[无]C++
2078Two Furthest Houses With Different Colors[无]C++
2079Watering Plants[无]C++
2080Range Frequency Queries[无]C++
2081Sum of k-Mirror Numbers[无]C++
2082Database Problem: Link----
2083Substrings That Begin and End With the Same Letter[无]C++
2084Database Problem: Link----
2085Count Common Words With One Occurrence[无]C++
2086Minimum Number of Buckets Required to Collect Rainwater from Houses[无]C++
2087Minimum Cost Homecoming of a Robot in a Grid[无]C++
2088Count Fertile Pyramids in a Land[无]C++
2089Find Target Indices After Sorting Array[无]C++
2090K Radius Subarray Averages[无]C++
2091Removing Minimum and Maximum From Array[无]C++
2092Find All People With Secret[无]C++
2093Minimum Cost to Reach City With Discounts[无]C++
2094Finding 3-Digit Even Numbers[无]C++
2095Delete the Middle Node of a Linked List[无]C++
2096Step-By-Step Directions From a Binary Tree Node to Another[无]C++
2097Valid Arrangement of Pairs[无]C++
2098Subsequence of Size K With the Largest Even Sum[无]C++
2099Find Subsequence of Length K With the Largest Sum[无]C++
2100Find Good Days to Rob the Bank[无]C++
2101Detonate the Maximum Bombs[无]C++
2102Sequentially Ordinal Rank Tracker[无]C++
2103Rings and Rods[无]C++
2104Sum of Subarray Ranges[无]C++
2105Watering Plants II[无]C++
2106Maximum Fruits Harvested After at Most K Steps[无]C++
2107Number of Unique Flavors After Sharing K Candies[无]C++
2108Find First Palindromic String in the Array[无]C++
2109Adding Spaces to a String[无]C++
2110Number of Smooth Descent Periods of a Stock[无]C++
2111Minimum Operations to Make the Array K-Increasing[无]C++
2112Database Problem: Link----
2113Elements in Array After Removing and Replacing Elements[无]C++
2114Maximum Number of Words Found in Sentences[无]C++
2115Find All Possible Recipes from Given Supplies[无]C++
2116Check if a Parentheses String Can Be Valid[无]C++
2117Abbreviating the Product of a Range[无]C++
2118Database Problem: Link----
2119A Number After a Double Reversal[无]C++
2120Execution of All Suffix Instructions Staying in a Grid[无]C++
2121Intervals Between Identical Elements[无]C++
2122Recover the Original Array[无]C++
2123Minimum Operations to Remove Adjacent Ones in Matrix[无]C++
2124Check if All A's Appears Before All B's[无]C++
2125Number of Laser Beams in a Bank[无]C++
2126Destroying Asteroids[无]C++
2127Maximum Employees to Be Invited to a Meeting[无]C++
2128Remove All Ones With Row and Column FlipsC++
2129Capitalize the Title[无]C++
2130Maximum Twin Sum of a Linked List[无]C++
2131Longest Palindrome by Concatenating Two Letter Words[无]C++
2132Stamping the Grid[缺:二维差分数组]C++
2133Check if Every Row and Column Contains All Numbers[无]C++
2134Minimum Swaps to Group All 1's Together II[无]C++
2135Count Words Obtained After Adding a Letter[无]C++
2136Earliest Possible Day of Full Bloom[无]C++
2137Pour Water Between Buckets to Make Water Levels Equal[无]C++
2138Divide a String Into Groups of Size k[无]C++
2139Minimum Moves to Reach Target Score[无]C++
2140Solving Questions With Brainpower[无]C++
2141Maximum Running Time of N Computers[无]C++
2142Database Problem: Link----
2143Choose Numbers From Two Arrays in Range[无]C++
2144Minimum Cost of Buying Candies With Discount[无]C++
2145Count the Hidden Sequences[无]C++
2146K Highest Ranked Items Within a Price Range[无]C++
2147Number of Ways to Divide a Long Corridor[无]
[缺:数学更简单的写法;dp]
C++
2148Count Elements With Strictly Smaller and Greater Elements[无]C++
2149Rearrange Array Elements by Sign[无]C++
2150Find All Lonely Numbers in the Array[无]C++
2151Maximum Good People Based on Statements[无]C++
2152Minimum Number of Lines to Cover Points[无]C++
2153Database Problem: Link----
2154Keep Multiplying Found Values by Two[无]C++
2155All Divisions With the Highest Score of a Binary Array[无]C++
2156Find Substring With Given Hash Value[无]C++
2157Groups of Strings[无]C++
2158Amount of New Area Painted Each Day[无]C++
2159Database Problem: Link----
2160Minimum Sum of Four Digit Number After Splitting Digits[无]C++
2161Partition Array According to Given Pivot[无]C++
2162Minimum Cost to Set Cooking Time[无]C++
2163Minimum Difference in Sums After Removal of Elements[无]C++
2164Sort Even and Odd Indices Independently[无]C++
2165Smallest Value of the Rearranged Number[无]C++
2166Design Bitset[无]C++
2167Minimum Time to Remove All Cars Containing Illegal Goods[无]C++
2168Unique Substrings With Equal Digit Frequency[无]C++
2169Count Operations to Obtain Zero[无]C++
2170Minimum Operations to Make the Array Alternating[无]C++
2171Removing Minimum Number of Magic Beans[无]C++
2172Maximum AND Sum of Array[无]C++
2173Database Problem: Link----
2174Remove All Ones With Row and Column Flips II[无]C++
2175Database Problem: Link----
2176Count Equal and Divisible Pairs in an Array[无]C++
2177Find Three Consecutive Integers That Sum to a Given Number[无]C++
2178Maximum Split of Positive Even Integers[无]C++
2179Count Good Triplets in an Array[无]C++
2180Count Integers With Even Digit Sum[无]C++
2181Merge Nodes in Between Zeros[无]C++
2182Construct String With Repeat LimitC++
2183Count Array Pairs Divisible by K[无]C++
2184Number of Ways to Build Sturdy Brick Wall[无]C++
2185Counting Words With a Given Prefix[无]C++
2186Minimum Number of Steps to Make Two Strings Anagram II[无]C++
2187Minimum Time to Complete Trips[无]C++
2188Minimum Time to Finish the Race[无]C++
2189Number of Ways to Build House of Cards[无]C++
2190Most Frequent Number Following Key In an Array[无]C++
2191Sort the Jumbled Numbers[无]C++
2192All Ancestors of a Node in a Directed Acyclic Graph[无]C++
2193Minimum Number of Moves to Make Palindrome[无]C++
2194Cells in a Range on an Excel Sheet[无]C++
2195Append K Integers With Minimal Sum[无]C++
2196Create Binary Tree From Descriptions[无]C++
2197Replace Non-Coprime Numbers in Array[无]C++
2198Number of Single Divisor Triplets[无]C++
2199Database Problem: Link----
2200Find All K-Distant Indices in an Array[无]C++
2201Count Artifacts That Can Be Extracted[无]C++
2202Maximize the Topmost Element After K Moves[无]C++
2203Minimum Weighted Subgraph With the Required Paths[无]C++
2204Distance to a Cycle in Undirected Graph[无]C++
2205Database Problem: Link----
2206Divide Array Into Equal Pairs[无]C++
2207Maximize Number of Subsequences in a String[无]C++
2208Minimum Operations to Halve Array Sum[无]C++
2209Minimum White Tiles After Covering With Carpets[无]C++
2210Count Hills and Valleys in an Array[无]C++
2211Count Collisions on a Road[无]C++
2212Maximum Points in an Archery Competition[无]C++
2213Longest Substring of One Repeating Character[无]C++
2214Minimum Health to Beat Game[无]C++
2215Find the Difference of Two Arrays[无]C++
2216Minimum Deletions to Make Array Beautiful[无]C++
2217Find Palindrome With Fixed Length[无]C++
2218Maximum Value of K Coins From Piles[无]C++
2219Maximum Sum Score of Array[无]C++
2220Minimum Bit Flips to Convert Number[无]C++
2221Find Triangular Sum of an Array[无]C++
2222Number of Ways to Select Buildings[无]C++
2223Sum of Scores of Built Strings[无]C++
2224Minimum Number of Operations to Convert Time[无]C++
2225Find Players With Zero or One Losses[无]C++
2226Maximum Candies Allocated to K Children[无]C++
2227Encrypt and Decrypt Strings[无]C++
2228Database Problem: Link----
2229Check if an Array Is Consecutive[无]C++
2230Database Problem: Link----
2231Largest Number After Digit Swaps by Parity[无]C++
2232Minimize Result by Adding Parentheses to Expression[无]C++
2233Maximum Product After K Increments[无]C++
2234Maximum Total Beauty of the Gardens[无]C++
2235Add Two Integers[无]C++
2236Root Equals Sum of Children[无]C++
2237Count Positions on Street With Required Brightness[无]C++
2238Database Problem: Link----
2239Find Closest Number to Zero[无]C++
2240Number of Ways to Buy Pens and Pencils[无]C++
2241Design an ATM Machine[无]C++
2242Maximum Score of a Node Sequence[无]C++
2243Calculate Digit Sum of a String[无]C++
2244Minimum Rounds to Complete All Tasks[无]C++
2245Maximum Trailing Zeros in a Cornered Path[无]C++
2246Longest Path With Different Adjacent Characters[无]C++
2247Maximum Cost of Trip With K Highways[无]C++
2248Intersection of Multiple Arrays[无]C++
2249Count Lattice Points Inside a Circle[无]C++
2250Count Number of Rectangles Containing Each Point[无]C++
2251Number of Flowers in Full Bloom[无]C++
2252Database Problem: Link----
2253Database Problem: Link----
2254Design Video Sharing Platform[无]C++
2255Count Prefixes of a Given String[无]C++
2256Minimum Average Difference[无]C++
2257Count Unguarded Cells in the Grid[无]C++
2258Escape the Spreading Fire[无]C++
2259Remove Digit From Number to Maximize Result[无]C++
2260Minimum Consecutive Cards to Pick Up[无]C++
2261K Divisible Elements Subarrays[无]C++
2262Total Appeal of A String[无]C++
2263Make Array Non-decreasing or Non-increasing[无]C++
2264Largest 3-Same-Digit Number in String[无]C++
2265Count Nodes Equal to Average of Subtree[无]C++
2266Count Number of Texts[无]C++
2267Check if There Is a Valid Parentheses String Path[无]C++
2268Minimum Number of Keypresses[无]C++
2269Find the K-Beauty of a Number[无]C++
2270Number of Ways to Split Array[无]C++
2271Maximum White Tiles Covered by a Carpet[无]C++
2272Substring With Largest Variance[无]C++
2273Find Resultant Array After Removing Anagrams[无]C++
2274Maximum Consecutive Floors Without Special Floors[无]C++
2275Largest Combination With Bitwise AND Greater Than Zero[无]C++
2276Count Integers in Intervals[无]C++
2277Closest Node to Path in Tree[无]C++
2278Percentage of Letter in String[无]C++
2279Maximum Bags With Full Capacity of Rocks[无]C++
2280Minimum Lines to Represent a Line Chart[无]C++
2281Sum of Total Strength of Wizards[无]C++
2283Check if Number Has Equal Digit Count and Digit Value[无]C++
2284Sender With Largest Word Count[无]C++
2285Maximum Total Importance of Roads[无]C++
2286Booking Concert Tickets in Groups[无]C++
2287Rearrange Characters to Make Target String[无]C++
2288Apply Discount to Prices[无]C++
2289Steps to Make Array Non-decreasing[无]
[缺:用 C++ STL list]
C++
2290Minimum Obstacle Removal to Reach Corner[无]C++
2291Maximum Profit From Trading Stocks[无]C++
2292Database Problem: Link----
2293Min Max Game[无]C++
2294Partition Array Such That Maximum Difference Is K[无]C++
2295Replace Elements in an Array[无]C++
2296Design a Text Editor[无]C++
2297Jump Game IX[无]C++
2298Database Problem: Link----
2299Strong Password Checker II[无]C++
2300Successful Pairs of Spells and Potions[无]C++
2301Match Substring After Replacement[无]C++
2302Count Subarrays With Score Less Than K[无]C++
2303Calculate Amount Paid in Taxes[无]C++
2304Minimum Path Cost in a Grid[无]C++
2305Fair Distribution of Cookies[无]C++
2306Naming a Company[无]C++
2308Database Problem: Link----
2309Greatest English Letter in Upper and Lower Case[无]C++
2310Sum of Numbers With Units Digit K[无]C++
2312Selling Pieces of Wood[无]C++
2313Minimum Flips in Binary Tree to Get Result[无]C++
2314Database Problem: Link----
2315Count Asterisks[无]C++
2316Count Unreachable Pairs of Nodes in an Undirected Graph[无]C++
2317Maximum XOR After Operations[无]C++
2318Number of Distinct Roll Sequences[无]C++
2319Check if Matrix Is X-Matrix[无]C++
2320Count Number of Ways to Place Houses[无]C++
2321Maximum Score Of Spliced Array[无]C++
2322Minimum Score After Removals on a Tree[无]C++
2323Find Minimum Time to Finish All Jobs II[无]C++
2324Database Problem: Link----
2325Decode the Message[无]C++
2326Spiral Matrix IV[无]C++
2327Number of People Aware of a Secret[无]C++
2328Number of Increasing Paths in a Grid[无]C++
2329Database Problem: Link----
2330Valid Palindrome IV[无]C++
2331Evaluate Boolean Binary Tree[无]C++
2332The Latest Time to Catch a Bus[无]C++
2333Minimum Sum of Squared Difference[无]C++
2334Subarray With Elements Greater Than Varying Threshold[无]C++
2335Minimum Amount of Time to Fill Cups[无]C++
2336Smallest Number in Infinite Set[无]C++
2337Move Pieces to Obtain a String[无]C++
2338Count the Number of Ideal Arrays[无]C++
2339Database Problem: Link----
2340Minimum Adjacent Swaps to Make a Valid Array[无]C++
2341Maximum Number of Pairs in Array[无]C++
2342Max Sum of a Pair With Equal Sum of Digits[无]C++
2343Query Kth Smallest Trimmed Number[无]C++
2344Minimum Deletions to Make Array Divisible[无]C++
2345Finding the Number of Visible Mountains[无]C++
2346Database Problem: Link----
2347Best Poker Hand[无]C++
2348Number of Zero-Filled Subarrays[无]C++
2349Design a Number Container System[无]C++
2350Shortest Impossible Sequence of Rolls[无]C++
2351First Letter to Appear Twice[无]C++
2352Equal Row and Column Pairs[无]C++
2353Design a Food Rating System[无]C++
2354Number of Excellent Pairs[无]C++
2356Database Problem: Link----
2357Make Array Zero by Subtracting Equal Amounts[无]C++
2358Maximum Number of Groups Entering a Competition[无]C++
2359Find Closest Node to Given Two Nodes[无]C++
2360Longest Cycle in a Graph[无]C++
2361Minimum Costs Using the Train Line[无]C++
2362Database Problem: Link----
2363Merge Similar Items[无]C++
2364Count Number of Bad Pairs[无]C++
2365Task Scheduler II[无]C++
2366Minimum Replacements to Sort the Array[无]C++
2367Number of Arithmetic Triplets[无]C++
2368Reachable Nodes With Restrictions[无]C++
2369Check if There is a Valid Partition For The Array[无]C++
2370Longest Ideal Subsequence[无]C++
2372Database Problem: Link----
2373Largest Local Values in a Matrix[无]C++
2374Node With Highest Edge Score[无]C++
2375Construct Smallest Number From DI String[无]C++
2376Count Special Integers[无]C++
2377Database Problem: Link----
2378Choose Edges to Maximize Score in a Tree[无]C++
2379Minimum Recolors to Get K Consecutive Black Blocks[无]C++
2380Time Needed to Rearrange a Binary String[无]C++
2381Shifting Letters II[无]C++
2382Maximum Segment Sum After Removals[无]C++
2383Minimum Hours of Training to Win a Competition[无]C++
2384Largest Palindromic Number[无]C++
2385Amount of Time for Binary Tree to Be Infected[无]C++
2387Median of a Row Wise Sorted Matrix[无]C++
2388Database Problem: Link----
2389Longest Subsequence With Limited Sum[无]C++
2390Removing Stars From a String[无]C++
2391Minimum Amount of Time to Collect Garbage[无]C++
2392Build a Matrix With Conditions[无]C++
2393Count Strictly Increasing Subarrays[无]C++
2394Database Problem: Link----
2395Find Subarrays With Equal Sum[无]C++
2396Strictly Palindromic Number[无]C++
2397Maximum Rows Covered by Columns[无]C++
2398Maximum Number of Robots Within Budget[无][缺:滑动窗口]C++
2399Check Distances Between Same Letters[无]C++
2400Number of Ways to Reach a Position After Exactly k Steps[无][缺:数学解]C++
2401Longest Nice Subarray[无]C++
2402Meeting Rooms III[无]C++
2403Minimum Time to Kill All Monsters[无]C++
2404Most Frequent Even Element[无]C++
2405Optimal Partition of String[无]C++
2406Divide Intervals Into Minimum Number of Groups[无]C++
2407Longest Increasing Subsequence II[无]C++
2408Design SQL[无]C++
2409Count Days Spent Together[无]C++
2410Maximum Matching of Players With Trainers[无]C++
2411Smallest Subarrays With Maximum Bitwise OR[无][缺:O(n) 算法]C++
2412Minimum Money Required Before Transactions[无] [缺:不用 sort]C++
2413Smallest Even Multiple[无]C++
2414Length of the Longest Alphabetical Continuous Substring[无]C++
2415Reverse Odd Levels of Binary Tree[无]C++
2416Sum of Prefix Scores of Strings[无]C++
2417Closest Fair Integer[无]C++
2418Sort the People[无]C++
2419Longest Subarray With Maximum Bitwise AND[无]C++
2420Find All Good Indices[无]C++
2421Number of Good Paths[无]C++
2422Merge Operations to Turn Array Into a Palindrome[无]C++
2423Remove Letter To Equalize Frequency[无]C++
2424Longest Uploaded Prefix[无]C++
2425Bitwise XOR of All Pairings[无]C++
2426Number of Pairs Satisfying Inequality[无]
[缺:493 问题整理]
C++
2427Number of Common Factors[无]C++
2428Maximum Sum of an Hourglass[无]C++
2429Minimize XOR[无]C++
2430Maximum Deletions on a String[无]C++
2431Maximize Total Tastiness of Purchased Fruits[无]C++
2432The Employee That Worked on the Longest Task[无]C++
2433Find The Original Array of Prefix Xor[无]C++
2434Using a Robot to Print the Lexicographically Smallest String[无]C++
2435Paths in Matrix Whose Sum Is Divisible by K[无]C++
2436Minimum Split Into Subarrays With GCD Greater Than One[无]C++
2437Number of Valid Clock Times[无]C++
2438Range Product Queries of Powers[无]C++
2439Minimize Maximum of Array[无]C++
2440Create Components With Same Value[无]C++
2441Largest Positive Integer That Exists With Its Negative[无]C++
2442Count Number of Distinct Integers After Reverse Operations[无]C++
2443Sum of Number and Its Reverse[无]C++
2444Count Subarrays With Fixed Bounds[无]C++
2445Number of Nodes With Value One[无]C++
2446Determine if Two Events Have Conflict[无]C++
2447Number of Subarrays With GCD Equal to K[无]C++
2448Minimum Cost to Make Array Equal[无]C++
2449Minimum Number of Operations to Make Arrays Similar[无]C++
2450Number of Distinct Binary Strings After Applying Operations[无]C++
2451Odd String Difference[无]C++
2452Words Within Two Edits of Dictionary[无]C++
2453Destroy Sequential Targets[无]C++
2454Next Greater Element IV[无]
[缺:O(n) 解法]
C++
2455Average Value of Even Numbers That Are Divisible by Three[无]C++
2456Most Popular Video Creator[无]C++
2457Minimum Addition to Make Integer Beautiful[无]C++
2458Height of Binary Tree After Subtree Removal Queries[无]C++
2459Sort Array by Moving Items to Empty Space[无]C++
2460Apply Operations to an Array[无]C++
2461Maximum Sum of Distinct Subarrays With Length K[无]C++
2462Total Cost to Hire K Workers[无]C++
2463Minimum Total Distance Traveled[无]C++
2464Minimum Subarrays in a Valid Split[无]C++
2465Number of Distinct Averages[无]C++
2466Count Ways To Build Good Strings[无]C++
2467Most Profitable Path in a Tree[无]C++
2468Split Message Based on Limit[无]C++
2469Convert the Temperature[无]C++
2470Number of Subarrays With LCM Equal to K[无]C++
2471Minimum Number of Operations to Sort a Binary Tree by Level[无]C++
2472Maximum Number of Non-overlapping Palindrome Substrings[无]C++
2473Minimum Cost to Buy Apples[无]C++
2474Database Problem: Link----
2475Number of Unequal Triplets in Array[无]C++
2476Closest Nodes Queries in a Binary Search Tree[无]C++
2477Minimum Fuel Cost to Report to the Capital[无]C++
2478Number of Beautiful Partitions[无]C++
2479Maximum XOR of Two Non-Overlapping Subtrees[无]C++
2480Database Problem: Link----
2481Minimum Cuts to Divide a Circle[无]C++
2482Difference Between Ones and Zeros in Row and Column[无]C++
2483Minimum Penalty for a Shop[无]C++
2484Count Palindromic Subsequences[无]C++
2485Find the Pivot Integer[无]C++
2486Append Characters to String to Make Subsequence[无]C++
2487Remove Nodes From Linked List[无]C++
2488Count Subarrays With Median K[无]C++
2489Number of Substrings With Fixed Ratio[无]C++
2490Circular Sentence[无]C++
2491Divide Players Into Teams of Equal Skill[无]C++
2492Minimum Score of a Path Between Two Cities[无]C++
2493Divide Nodes Into the Maximum Number of Groups[无]C++
2494Database Problem: Link----
2495Number of Subarrays Having Even Product[无]C++
2496Maximum Value of a String in an Array[无]C++
2497Maximum Star Sum of a Graph[无]C++
2498Frog Jump II[无]C++
2499Minimum Total Cost to Make Arrays Unequal[无]C++
2500Delete Greatest Value in Each Row[无]C++
2501Longest Square Streak in an Array[无]C++
2502Design Memory Allocator[无]C++
2503Maximum Number of Points From Grid Queries[无]C++
2504Database Problem: Link----
2505Bitwise OR of All Subsequence Sums[无]C++
2506Count Pairs Of Similar Strings[无]C++
2507Smallest Value After Replacing With Sum of Prime Factors[无]C++
2508Add Edges to Make Degrees of All Nodes Even[无]C++
2509Cycle Length Queries in a Tree[无]C++
2510Check if There is a Path With Equal Number of 0's And 1's[无]C++
2511Maximum Enemy Forts That Can Be Captured[无]C++
2512Reward Top K Students[无]C++
2513Minimize the Maximum of Two Arrays[无]C++
2514Count Anagrams[无]C++
2515Shortest Distance to Target String in a Circular Array[无]C++
2516Take K of Each Character From Left and Right[无]C++
2517Maximum Tastiness of Candy Basket[无]C++
2518Number of Great Partitions[无]C++
2519Count the Number of K-Big Indices[无]C++
2520Count the Digits That Divide a Number[无]C++
2521Distinct Prime Factors of Product of Array[无]C++
2522Partition String Into Substrings With Values at Most K[无]C++
2523Closest Prime Numbers in Range[无]C++
2524Maximum Frequency Score of a Subarray[无]C++
2525Categorize Box According to Criteria[无]C++
2526Find Consecutive Integers from a Data Stream[无]C++
2527Find Xor-Beauty of Array[无]C++
2528Maximize the Minimum Powered City[无]C++
2529Maximum Count of Positive Integer and Negative Integer[无]C++
2530Maximal Score After Applying K Operations[无]C++
2531Make Number of Distinct Characters Equal[无]C++
2532Time to Cross a Bridge[无]C++
2533Number of Good Binary Strings[无]C++
2534Time Taken to Cross the Door[无]C++
2535Difference Between Element Sum and Digit Sum of an Array[无]C++
2536Increment Submatrices by One[无]C++
2537Count the Number of Good Subarrays[无]C++
2539Count the Number of Good Subsequences[无]C++
2540Minimum Common Value[无]C++
2541Minimum Operations to Make Array Equal II[无]C++
2542Maximum Subsequence Score[无]C++
2543Check if Point Is Reachable[无]C++
2544Alternating Digit Sum[无]C++
2545Sort the Students by Their Kth Score[无]C++
2546Apply Bitwise Operations to Make Strings Equal[无]C++
2547Minimum Cost to Split an Array[无]C++
2548Maximum Price to Fill a Bag[无]C++
2549Count Distinct Numbers on Board[无]C++
2550Count Collisions of Monkeys on a Polygon[无]C++
2551Put Marbles in Bags[无]C++
2553Separate the Digits in an Array[无]C++
2554Maximum Number of Integers to Choose From a Range I[无]C++
2555Maximize Win From Two Segments[无]C++
2556Disconnect Path in a Binary Matrix by at Most One Flip[无]C++
2557Maximum Number of Integers to Choose From a Range II[无]C++
2558Take Gifts From the Richest Pile[无]C++
2559Count Vowel Strings in Ranges[无]C++
2560House Robber IV[无]C++
2561Rearranging Fruits[无]C++
2562Find the Array Concatenation Value[无]C++
2563Count the Number of Fair Pairs[无]C++
2564Substring XOR Queries[无]C++
2565Subsequence With the Minimum Score[无]C++
2566Maximum Difference by Remapping a Digit[无]C++
2567Minimum Score by Changing Two Elements[无]C++
2568Minimum Impossible OR[无]C++
2569Handling Sum Queries After Update[无]C++
2570Merge Two 2D Arrays by Summing Values[无]C++
2571Minimum Operations to Reduce an Integer to 0[无]C++
2572Count the Number of Square-Free Subsets[无]C++
2573Find the String with LCP[无]C++
2574Left and Right Sum Differences[无]C++
2575Find the Divisibility Array of a String[无]C++
2576Find the Maximum Number of Marked Indices[无]C++
2577Minimum Time to Visit a Cell In a Grid[无]C++
2578Split With Minimum Sum[无]C++
2579Count Total Number of Colored Cells[无]C++
2580Count Ways to Group Overlapping Ranges[无]C++
2581Count Number of Possible Root Nodes[无]C++
2582Pass the Pillow[无]C++
2583Kth Largest Sum in a Binary Tree[无]C++
2584Split the Array to Make Coprime Products[无]C++
2585Number of Ways to Earn Points[无]C++
2586Count the Number of Vowel Strings in Range[无]C++
2587Rearrange Array to Maximize Prefix Score[无]C++
2588Count the Number of Beautiful Subarrays[无]C++
2589Minimum Time to Complete All Tasks[无]C++
2590Design a Todo List[无]C++
2591Distribute Money to Maximum Children[无]C++
2592Maximize Greatness of an Array[无]C++
2593Find Score of an Array After Marking All Elements[无]C++
2594Minimum Time to Repair Cars[无]C++
2595Number of Even and Odd Bits[无]C++
2596Check Knight Tour Configuration[无]C++
2597The Number of Beautiful Subsets[无]C++
2598Smallest Missing Non-negative Integer After Operations[无]C++
2599Make the Prefix Sum Non-negative[无]C++
2600K Items With the Maximum Sum[无]C++
2601Prime Subtraction Operation[无]C++
2602Minimum Operations to Make All Array Elements Equal[无]C++
2603Collect Coins in a Tree[无]C++
2604Minimum Time to Eat All Grains[无]C++
2605Form Smallest Number From Two Digit Arrays[无]C++
2606Find the Substring With Maximum Cost[无]C++
2607Make K-Subarray Sums Equal[无]C++
2608Shortest Cycle in a Graph[无]C++
2609Find the Longest Balanced Substring of a Binary String[无]C++
2610Convert an Array Into a 2D Array With Conditions[无]C++
2611Mice and Cheese[无]C++
2612Minimum Reverse Operations[无]C++
2614Prime In Diagonal[无]C++
2615Sum of Distances[无]C++
2616Minimize the Maximum Difference of Pairs[无]C++
2617Minimum Number of Visited Cells in a Grid[无]C++
2618JavaScript Problem----
2619JavaScript Problem----
2620JavaScript Problem----
2621JavaScript Problem----
2622JavaScript Problem----
2623JavaScript Problem----
2624JavaScript Problem----
2625JavaScript Problem----
2626JavaScript Problem----
2627JavaScript Problem----
2628JavaScript Problem----
2629JavaScript Problem----
2630JavaScript Problem----
2631JavaScript Problem----
2632JavaScript Problem----
2633JavaScript Problem----
2634JavaScript Problem----
2635JavaScript Problem----
2636JavaScript Problem----
2637JavaScript Problem----
2638Count the Number of K-Free Subsets[无]C++
2639Find the Width of Columns of a Grid[无]C++
2640Find the Score of All Prefixes of an Array[无]C++
2641Cousins in Binary Tree II[无]C++
2642Design Graph With Shortest Path Calculator[无]C++
2643Row With Maximum Ones[无]C++
2644Find the Maximum Divisibility Score[无]C++
2645Minimum Additions to Make Valid String[无]C++
2646Minimize the Total Price of the Trips[无]C++
2647Color the Triangle Red[无]C++
2648JavaScript Problem----
2649JavaScript Problem----
2650JavaScript Problem----
2651Calculate Delayed Arrival Time[无]C++
2652Sum Multiples[无]C++
2653Sliding Subarray Beauty[无]C++
2654Minimum Number of Operations to Make All Array Elements Equal to 1[无]C++
2655Find Maximal Uncovered Ranges[无]C++
2656Maximum Sum With Exactly K Elements[无]C++
2657Find the Prefix Common Array of Two Arrays[无]C++
2658Maximum Number of Fish in a Grid[无]C++
2659Make Array Empty[无]C++
2660Determine the Winner of a Bowling Game[无]C++
2661First Completely Painted Row or Column[无]C++
2662Minimum Cost of a Path With Special Roads[无]C++
2663Lexicographically Smallest Beautiful String[无]C++
2664The Knight’s Tour[无]C++
2665JavaScript Problem----
2666JavaScript Problem----
2667JavaScript Problem----
2668Database Problem: Link----
2669Database Problem: Link----
2670Find the Distinct Difference Array[无]C++
2671Frequency Tracker[无]C++
2672Number of Adjacent Elements With the Same Color[无]C++
2673Make Costs of Paths Equal in a Binary Tree[无]C++
2674Split a Circular Linked List[无]C++
2675JavaScript Problem----
2676JavaScript Problem----
2677JavaScript Problem----
2678Number of Senior Citizens[无]C++
2679Sum in a Matrix[无]C++
2680Maximum OR[无]C++
2681Power of Heroes[无]C++
2682Find the Losers of the Circular Game[无]C++
2683Neighboring Bitwise XOR[无]C++
2684Maximum Number of Moves in a Grid[无]C++
2685Count the Number of Complete Components[无]C++
2686Database Problem: Link----
2687Database Problem: Link----
2688Database Problem: Link----
2689Extract Kth Character From The Rope Tree[无]C++
2690JavaScript Problem----
2691JavaScript Problem----
2692JavaScript Problem----
2693JavaScript Problem----
2694JavaScript Problem----
2695JavaScript Problem----
2696Minimum String Length After Removing Substrings[无]C++
2697Lexicographically Smallest Palindrome[无]C++
2698Find the Punishment Number of an Integer[无]C++
2699Modify Graph Edge Weights[无]C++
2700JavaScript Problem----
2701Database Problem: Link----
2702Minimum Operations to Make Numbers Non-positive[无]C++
2703JavaScript Problem----
2704JavaScript Problem----
2705JavaScript Problem----
2706Buy Two Chocolates[无]C++
2707Extra Characters in a String[无]C++
2708Maximum Strength of a Group[无]C++
2709Greatest Common Divisor Traversal[无]C++
2710Remove Trailing Zeros From a String[无]C++
2711Difference of Number of Distinct Values on Diagonals[无]C++
2712Minimum Cost to Make All Characters Equal[无]C++
2713Maximum Strictly Increasing Cells in a Matrix[无]C++
2714Find Shortest Path with K Hops[无]C++
2715JavaScript Problem----
2716Minimize String Length[无]C++
2717Semi-Ordered Permutation[无]C++
2718Sum of Matrix After Queries[无]C++
2719Count of Integers[无]C++
2720Database Problem: Link----
2721JavaScript Problem----
2722JavaScript Problem----
2723JavaScript Problem----
2724JavaScript Problem----
2725JavaScript Problem----
2726JavaScript Problem----
2727JavaScript Problem----
2728Count Houses in a Circular Street[无]C++
2729Check if The Number is Fascinating[无]C++
2730Find the Longest Semi-Repetitive Substring[无]C++
2731Movement of Robots[无]C++
2732Find a Good Subset of the Matrix[无]C++
2733Neither Minimum nor Maximum[无]C++
2734Lexicographically Smallest String After Substring Operation[无]C++
2735Collecting Chocolates[无]C++
2736Maximum Sum Queries[无]C++
2737Find the Closest Marked Node[无]C++
2738Database Problem: Link----
2739Total Distance Traveled[无]C++
2740Find the Value of the Partition[无]C++
2741Special Permutations[无]C++
2742Painting the Walls[无]C++
2743Count Substrings Without Repeating Character[无]C++
2744Find Maximum Number of String Pairs[无]C++
2745Construct the Longest New String[无]C++
2746Decremental String Concatenation[无]C++
2747Count Zero Request Servers[无]C++
2748Number of Beautiful Pairs[无]C++
2749Minimum Operations to Make the Integer Zero[无]C++
2750Ways to Split Array Into Good Subarrays[无]C++
2751Robot Collisions[无]C++
2752Database Problem: Link----
2754JavaScript Problem----
2755JavaScript Problem----
2756JavaScript Problem----
2757JavaScript Problem----
2758JavaScript Problem----
2759JavaScript Problem----
2760Longest Even Odd Subarray With Threshold[无]C++
2761Prime Pairs With Target Sum[无]C++
2762Continuous Subarrays[无]C++
2763Sum of Imbalance Numbers of All Subarrays[无]C++
2849Determine if a Cell Is Reachable at a Given Time[无]C++

力扣中文站比赛 传送门

力扣中文站其他比赛 传送门