Latest commit

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Blog

雨过。天晴的博客

Progress

 Easy 93/249 ( 37.35 %) ████████████░░░░░░░░░░░░░░░░░░
Medium	147/433 ( 33.95 %) ███████████░░░░░░░░░░░░░░░░░░░
Hard 53/183 ( 28.96 %) █████████░░░░░░░░░░░░░░░░░░░░░
without locked
Easy 92/218 ( 42.20 %) █████████████░░░░░░░░░░░░░░░░░
Medium	147/344 ( 42.73 %) █████████████░░░░░░░░░░░░░░░░░
Hard 53/141 ( 37.59 %) ████████████░░░░░░░░░░░░░░░░░░
1 10
000 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
010 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣
020 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
030 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
040 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
050 ▣ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚ ▣
060 ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
070 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
080 ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚
090 ▣ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ▣
100 ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚
110 ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣
120 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
130 ▣ ▣ ⬚ ▣ ▣ ▣ ▣ ▤ ▣ ▣
140 ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ▣
150 ▣ ▣ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣
160 ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣ ⬚
170 ▣ ▣ ▣ ▣ ⬚ ▤ ⬚ ⬚ ▣ ⬚
180 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
190 ▣ ⬚ ⬚ ⬚ ▤ ⬚ ⬚ ▣ ⬚ ▣
200 ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣
210 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚
220 ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ⬚ ▣
230 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
240 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
250 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣
260 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
270 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
280 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
290 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ▣ ▣
300 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ▣
310 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚
320 ▣ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚
330 ⬚ ▤ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚
340 ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
350 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
360 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
370 ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣ ⬚ ▣
380 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
390 ▤ ▣ ⬚ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
400 ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚
410 ⬚ ▣ ▣ ▤ ⬚ ▣ ⬚ ⬚ ⬚ ▣
420 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
430 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣
440 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣
450 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣
460 ▣ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
470 ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
480 ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚
490 ▣ ▣ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣
500 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ 510 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣
520 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
530 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣
540 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ 550 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣
560 ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
570 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
580 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
590 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
600 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
610 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
620 ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
630 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
640 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚
650 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣ ⬚
660 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣
670 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
680 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
690 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚
700 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
710 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
720 ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚
730 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
740 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
750 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
760 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
770 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
780 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
790 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
800 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
810 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
820 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
830 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
840 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
850 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
860 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
870 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ Accepted ▤ Not Accepted ⬚ Remaining

Accecpted

序号题名解答
1Two SumMy Answer
2Add Two NumbersMy Answer
3Longest Substring without Repeating CharactersMy Answer
4Median of Two Sorted ArraysMy Answer
5Longest Palindromic SubstringMy Answer
6Zigzag ConversionMy Answer
7Reverse IntegerMy Answer
8String to Integer AtoiMy Answer
9Palindrome NumberMy Answer
10Regular Expression MatchingMy Answer
11Container with Most WaterMy Answer
11Container with Most WaterMy Answer
12Integer to RomanMy Answer
13Roman to IntegerMy Answer
14Longest Common PrefixMy Answer
153sumMy Answer
163sum ClosestMy Answer
17Letter Combinations of A Phone NumberMy Answer
19Remove Nth Node from End of ListMy Answer
20Valid ParenthesesMy Answer
21Merge Two Sorted ListsMy Answer
22Generate ParenthesesMy Answer
23Merge K Sorted ListsMy Answer
24Swap Nodes in PairsMy Answer
25Reverse Nodes in K GroupMy Answer
26Remove Duplicates from Sorted ArrayMy Answer
27Remove ElementMy Answer
28Implement StrstrMy Answer
29Divide Two IntegersMy Answer
30Substring with Concatenation of All WordsMy Answer
31Next PermutationMy Answer
32Longest Valid ParenthesesMy Answer
33Search in Rotated Sorted ArrayMy Answer
34Find First and Last Position of Element in Sorted ArrayMy Answer
34Search For A RangeMy Answer
35Search Insert PositionMy Answer
36Valid SudokuMy Answer
37Sudoku SolverMy Answer
38Count and SayMy Answer
39Combination SumMy Answer
40Combination Sum IIMy Answer
41First Missing PositiveMy Answer
42Trapping Rain WaterMy Answer
44Wildcard MatchingMy Answer
45Jump Game IIMy Answer
46PermutationsMy Answer
48Rotate ImageMy Answer
49Group AnagramsMy Answer
49Group AnagramsMy Answer
50Powx NMy Answer
51N QueensMy Answer
53Maximum SubarrayMy Answer
54Spiral MatrixMy Answer
55Jump GameMy Answer
56Merge IntervalsMy Answer
57Insert IntervalMy Answer
60Permutation SequenceMy Answer
61Rotate ListMy Answer
62Unique PathsMy Answer
63Unique Paths IIMy Answer
64Minimum Path SumMy Answer
65Valid NumberMy Answer
66Plus OneMy Answer
68Text JustificationMy Answer
69SqrtxMy Answer
70Climbing StairsMy Answer
72Edit DistanceMy Answer
73Set Matrix ZeroesMy Answer
74Search A 2d MatrixMy Answer
75Sort ColorsMy Answer
75Sort ColorsMy Answer
76Minimum Window SubstringMy Answer
77CombinationsMy Answer
78SubsetsMy Answer
79Word SearchMy Answer
80Remove Duplicates from Sorted Array IIMy Answer
83Remove Duplicates from Sorted ListMy Answer
84Largest Rectangle in HistogramMy Answer
85Maximal RectangleMy Answer
86Partition ListMy Answer
87Scramble StringMy Answer
88Merge Sorted ArrayMy Answer
89Gray CodeMy Answer
91Decode WaysMy Answer
94Binary Tree Inorder TraversalMy Answer
95Unique Binary Search Trees IIMy Answer
96Unique Binary Search TreesMy Answer
97Interleaving StringMy Answer
97Interleaving StringMy Answer
98Validate Binary Search TreeMy Answer
100Same TreeMy Answer
101Symmetric TreeMy Answer
102Binary Tree Level Order TraversalMy Answer
103Binary Tree Zigzag Level Order TraversalMy Answer
104Maximum Depth of Binary TreeMy Answer
105Construct Binary Tree from Preorder and Inorder TraversalMy Answer
107Binary Tree Level Order Traversal IIMy Answer
108Convert Sorted Array to Binary Search TreeMy Answer
112Path SumMy Answer
114Flatten Binary Tree to Linked ListMy Answer
116Populating Next Right Pointers in Each NodeMy Answer
118Pascals TriangleMy Answer
120TriangleMy Answer
121Best Time to Buy and Sell StockMy Answer
122Best Time to Buy and Sell Stock IIMy Answer
124Binary Tree Maximum Path SumMy Answer
125Valid PalindromeMy Answer
126Word Ladder IIMy Answer
128Longest Consecutive SequenceMy Answer
129Sum Root to Leaf NumbersMy Answer
130Surrounded RegionsMy Answer
131Palindrome PartitioningMy Answer
132Palindrome Partitioning IIMy Answer
134Gas StationMy Answer
135CandyMy Answer
136Single NumberMy Answer
137Single Number IIMy Answer
139Word BreakMy Answer
140Word Break IIMy Answer
141Linked List CycleMy Answer
142Linked List Cycle IIMy Answer
143Reorder ListMy Answer
145Binary Tree Postorder TraversalMy Answer
146Lru CacheMy Answer
148Sort ListMy Answer
149Max Points On A LineMy Answer
150Evaluate Reverse Polish NotationMy Answer
151Reverse Words in A StringMy Answer
152Maximum Product SubarrayMy Answer
153Find Minimum in Rotated Sorted ArrayMy Answer
155Min StackMy Answer
160Intersection of Two Linked ListsMy Answer
164Maximum GapMy Answer
166Fraction to Recurring DecimalMy Answer
169Majority ElementMy Answer
171Excel Sheet Column NumberMy Answer
172Factorial Trailing ZeroesMy Answer
173Binary Search Tree IteratorMy Answer
174Dungeon GameMy Answer
179Largest NumberMy Answer
187Repeated Dna SequencesMy Answer
190Reverse BitsMy Answer
191Number of 1 BitsMy Answer
198House RobberMy Answer
200Number of IslandsMy Answer
202Happy NumberMy Answer
206Reverse Linked ListMy Answer
207Course ScheduleMy Answer
208Implement Trie Prefix TreeMy Answer
209Minimum Size Subarray SumMy Answer
210Course Schedule IIMy Answer
212Word Search IIMy Answer
213House Robber IIMy Answer
214Shortest PalindromeMy Answer
215Kth Largest Element in An ArrayMy Answer
216Combination Sum IIIMy Answer
217Contains DuplicateMy Answer
218the Skyline ProblemMy Answer
221Maximal SquareMy Answer
225Implement Stack Using QueuesMy Answer
226Invert Binary TreeMy Answer
227Basic Calculator IIMy Answer
228Summary RangesMy Answer
230Kth Smallest Element in A BstMy Answer
231Power of TwoMy Answer
232Implement Queue Using StacksMy Answer
233Number of Digit OneMy Answer
234Palindrome Linked ListMy Answer
235Lowest Common Ancestor of A Binary Search TreeMy Answer
236Lowest Common Ancestor of A Binary TreeMy Answer
237Delete Node in A Linked ListMy Answer
238Product of Array Except SelfMy Answer
239Sliding Window MaximumMy Answer
240Search A 2d Matrix IIMy Answer
242Valid AnagramMy Answer
258Add DigitsMy Answer
260Single Number IIIMy Answer
263Ugly NumberMy Answer
268Missing NumberMy Answer
273Integer to English WordsMy Answer
274H IndexMy Answer
279Perfect SquaresMy Answer
283Move ZeroesMy Answer
287Find the Duplicate NumberMy Answer
290Word PatternMy Answer
292Nim GameMy Answer
295Find Median from Data StreamMy Answer
297Serialize and Deserialize Binary TreeMy Answer
299Bulls and CowsMy Answer
300Longest Increasing SubsequenceMy Answer
301Remove Invalid ParenthesesMy Answer
307Range Sum Query MutableMy Answer
309Best Time to Buy and Sell Stock with CooldownMy Answer
310Minimum Height TreesMy Answer
312Burst BalloonsMy Answer
315Count of Smaller Numbers After SelfMy Answer
319Bulb SwitcherMy Answer
321Create Maximum NumberMy Answer
322Coin ChangeMy Answer
326Power of ThreeMy Answer
329Longest Increasing Path in A MatrixMy Answer
335Self CrossingMy Answer
336Palindrome PairsMy Answer
337House Robber IIIMy Answer
338Counting BitsMy Answer
339Nested List Weight SumMy Answer
341Flatten Nested List IteratorMy Answer
344Reverse StringMy Answer
347Top K Frequent ElementsMy Answer
349Intersection of Two ArraysMy Answer
350Intersection of Two Arrays IIMy Answer
367Valid Perfect SquareMy Answer
371Sum of Two IntegersMy Answer
375Guess Number Higher Or Lower IIMy Answer
376Wiggle SubsequenceMy Answer
378Kth Smallest Element in A Sorted MatrixMy Answer
380Insert Delete Getrandom O1My Answer
383Ransom NoteMy Answer
384Shuffle An ArrayMy Answer
387First Unique Character in A StringMy Answer
389Find the DifferenceMy Answer
390Elimination GameMy Answer
392Is SubsequenceMy Answer
394Decode StringMy Answer
396Rotate FunctionMy Answer
397Integer ReplacementMy Answer
401Binary WatchMy Answer
404Sum of Left LeavesMy Answer
406Queue Reconstruction by HeightMy Answer
412Fizz BuzzMy Answer
413Arithmetic SlicesMy Answer
416Partition Equal Subset SumMy Answer
420Strong Password CheckerMy Answer
437Path Sum IIIMy Answer
438Find All Anagrams in A StringMy Answer
440K Th Smallest in Lexicographical OrderMy Answer
442Find All Duplicates in An ArrayMy Answer
445Add Two Numbers IIMy Answer
448Find All Numbers Disappeared in An ArrayMy Answer
450Delete Node in A BstMy Answer
456132 PatternMy Answer
457Circular Array LoopMy Answer
460LFU CacheMy Answer
461Hamming DistanceMy Answer
462Minimum Moves to Equal Array Elements IIMy Answer
473Matchsticks to SquareMy Answer
476Number ComplementMy Answer
485Max Consecutive OnesMy Answer
486Predict the WinnerMy Answer
491Increasing SubsequencesMy Answer
492Construct the RectangleMy Answer
493Reverse PairsMy Answer
494Target SumMy Answer
500Keyboard RowMy Answer
520Detect CapitalMy Answer
523Continuous Subarray SumMy Answer
538Convert Bst to Greater TreeMy Answer
539Minimum Time DifferenceMy Answer
540Single Element in A Sorted ArrayMy Answer
543Diameter of Binary TreeMy Answer
547Friend CirclesMy Answer
554Brick WallMy Answer
557Reverse Words in A String IIIMy Answer
560Subarray Sum Equals KMy Answer
561Array Partition IMy Answer
563Binary Tree TiltMy Answer
564Find the Closest PalindromeMy Answer
566Reshape the MatrixMy Answer
567Permutation in StringMy Answer
572Subtree of Another TreeMy Answer
581Shortest Unsorted Continuous SubarrayMy Answer
593Valid SquareMy Answer
599Minimum Index Sum of Two ListsMy Answer
617Merge Two Binary TreesMy Answer
621Task SchedulerMy Answer
623Add One Row to TreeMy Answer
632Smallest RangeMy Answer
647Palindromic SubstringsMy Answer
649Dota2 SenateMy Answer
657Judge Route CircleMy Answer
658Find K Closest ElementsMy Answer
659Split Array Into Consecutive SubsequencesMy Answer
662Maximum Width of Binary TreeMy Answer
665Non Decreasing ArrayMy Answer
667Beautiful Arrangement IIMy Answer
670Maximum SwapMy Answer
673Number of Longest Increasing SubsequenceMy Answer
674Longest Continuous Increasing SubsequenceMy Answer
677Map Sum PairsMy Answer
684Redundant ConnectionMy Answer
688Knight Probability in ChessboardMy Answer
693Binary Number with Alternating BitsMy Answer
697Degree of An ArrayMy Answer
698Partition to K Equal Sum SubsetsMy Answer
714Best Time to Buy and Sell Stock with Transaction FeeMy Answer
7171 Bit and 2 Bit CharactersMy Answer
725Split Linked List in PartsMy Answer
754Reach A NumberMy Answer

About

Answers to the questions in leetcode

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Latest commit

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Blog

雨过。天晴的博客

Progress

 Easy 93/249 ( 37.35 %) ████████████░░░░░░░░░░░░░░░░░░
Medium	147/433 ( 33.95 %) ███████████░░░░░░░░░░░░░░░░░░░
Hard 53/183 ( 28.96 %) █████████░░░░░░░░░░░░░░░░░░░░░
without locked
Easy 92/218 ( 42.20 %) █████████████░░░░░░░░░░░░░░░░░
Medium	147/344 ( 42.73 %) █████████████░░░░░░░░░░░░░░░░░
Hard 53/141 ( 37.59 %) ████████████░░░░░░░░░░░░░░░░░░
1 10
000 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
010 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣
020 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
030 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
040 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
050 ▣ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚ ▣
060 ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
070 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
080 ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚
090 ▣ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ▣
100 ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚
110 ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣
120 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
130 ▣ ▣ ⬚ ▣ ▣ ▣ ▣ ▤ ▣ ▣
140 ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ▣
150 ▣ ▣ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣
160 ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣ ⬚
170 ▣ ▣ ▣ ▣ ⬚ ▤ ⬚ ⬚ ▣ ⬚
180 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
190 ▣ ⬚ ⬚ ⬚ ▤ ⬚ ⬚ ▣ ⬚ ▣
200 ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣
210 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚
220 ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ⬚ ▣
230 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
240 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
250 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣
260 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
270 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
280 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
290 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ▣ ▣
300 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ▣
310 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚
320 ▣ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚
330 ⬚ ▤ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚
340 ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
350 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
360 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
370 ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣ ⬚ ▣
380 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
390 ▤ ▣ ⬚ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
400 ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚
410 ⬚ ▣ ▣ ▤ ⬚ ▣ ⬚ ⬚ ⬚ ▣
420 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
430 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣
440 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣
450 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣
460 ▣ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
470 ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
480 ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚
490 ▣ ▣ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣
500 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ 510 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣
520 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
530 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣
540 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ 550 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣
560 ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
570 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
580 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
590 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
600 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
610 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
620 ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
630 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
640 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚
650 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣ ⬚
660 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣
670 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
680 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
690 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚
700 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
710 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
720 ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚
730 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
740 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
750 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
760 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
770 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
780 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
790 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
800 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
810 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
820 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
830 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
840 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
850 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
860 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
870 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ Accepted ▤ Not Accepted ⬚ Remaining

Accecpted

序号题名解答
1Two SumMy Answer
2Add Two NumbersMy Answer
3Longest Substring without Repeating CharactersMy Answer
4Median of Two Sorted ArraysMy Answer
5Longest Palindromic SubstringMy Answer
6Zigzag ConversionMy Answer
7Reverse IntegerMy Answer
8String to Integer AtoiMy Answer
9Palindrome NumberMy Answer
10Regular Expression MatchingMy Answer
11Container with Most WaterMy Answer
11Container with Most WaterMy Answer
12Integer to RomanMy Answer
13Roman to IntegerMy Answer
14Longest Common PrefixMy Answer
153sumMy Answer
163sum ClosestMy Answer
17Letter Combinations of A Phone NumberMy Answer
19Remove Nth Node from End of ListMy Answer
20Valid ParenthesesMy Answer
21Merge Two Sorted ListsMy Answer
22Generate ParenthesesMy Answer
23Merge K Sorted ListsMy Answer
24Swap Nodes in PairsMy Answer
25Reverse Nodes in K GroupMy Answer
26Remove Duplicates from Sorted ArrayMy Answer
27Remove ElementMy Answer
28Implement StrstrMy Answer
29Divide Two IntegersMy Answer
30Substring with Concatenation of All WordsMy Answer
31Next PermutationMy Answer
32Longest Valid ParenthesesMy Answer
33Search in Rotated Sorted ArrayMy Answer
34Find First and Last Position of Element in Sorted ArrayMy Answer
34Search For A RangeMy Answer
35Search Insert PositionMy Answer
36Valid SudokuMy Answer
37Sudoku SolverMy Answer
38Count and SayMy Answer
39Combination SumMy Answer
40Combination Sum IIMy Answer
41First Missing PositiveMy Answer
42Trapping Rain WaterMy Answer
44Wildcard MatchingMy Answer
45Jump Game IIMy Answer
46PermutationsMy Answer
48Rotate ImageMy Answer
49Group AnagramsMy Answer
49Group AnagramsMy Answer
50Powx NMy Answer
51N QueensMy Answer
53Maximum SubarrayMy Answer
54Spiral MatrixMy Answer
55Jump GameMy Answer
56Merge IntervalsMy Answer
57Insert IntervalMy Answer
60Permutation SequenceMy Answer
61Rotate ListMy Answer
62Unique PathsMy Answer
63Unique Paths IIMy Answer
64Minimum Path SumMy Answer
65Valid NumberMy Answer
66Plus OneMy Answer
68Text JustificationMy Answer
69SqrtxMy Answer
70Climbing StairsMy Answer
72Edit DistanceMy Answer
73Set Matrix ZeroesMy Answer
74Search A 2d MatrixMy Answer
75Sort ColorsMy Answer
75Sort ColorsMy Answer
76Minimum Window SubstringMy Answer
77CombinationsMy Answer
78SubsetsMy Answer
79Word SearchMy Answer
80Remove Duplicates from Sorted Array IIMy Answer
83Remove Duplicates from Sorted ListMy Answer
84Largest Rectangle in HistogramMy Answer
85Maximal RectangleMy Answer
86Partition ListMy Answer
87Scramble StringMy Answer
88Merge Sorted ArrayMy Answer
89Gray CodeMy Answer
91Decode WaysMy Answer
94Binary Tree Inorder TraversalMy Answer
95Unique Binary Search Trees IIMy Answer
96Unique Binary Search TreesMy Answer
97Interleaving StringMy Answer
97Interleaving StringMy Answer
98Validate Binary Search TreeMy Answer
100Same TreeMy Answer
101Symmetric TreeMy Answer
102Binary Tree Level Order TraversalMy Answer
103Binary Tree Zigzag Level Order TraversalMy Answer
104Maximum Depth of Binary TreeMy Answer
105Construct Binary Tree from Preorder and Inorder TraversalMy Answer
107Binary Tree Level Order Traversal IIMy Answer
108Convert Sorted Array to Binary Search TreeMy Answer
112Path SumMy Answer
114Flatten Binary Tree to Linked ListMy Answer
116Populating Next Right Pointers in Each NodeMy Answer
118Pascals TriangleMy Answer
120TriangleMy Answer
121Best Time to Buy and Sell StockMy Answer
122Best Time to Buy and Sell Stock IIMy Answer
124Binary Tree Maximum Path SumMy Answer
125Valid PalindromeMy Answer
126Word Ladder IIMy Answer
128Longest Consecutive SequenceMy Answer
129Sum Root to Leaf NumbersMy Answer
130Surrounded RegionsMy Answer
131Palindrome PartitioningMy Answer
132Palindrome Partitioning IIMy Answer
134Gas StationMy Answer
135CandyMy Answer
136Single NumberMy Answer
137Single Number IIMy Answer
139Word BreakMy Answer
140Word Break IIMy Answer
141Linked List CycleMy Answer
142Linked List Cycle IIMy Answer
143Reorder ListMy Answer
145Binary Tree Postorder TraversalMy Answer
146Lru CacheMy Answer
148Sort ListMy Answer
149Max Points On A LineMy Answer
150Evaluate Reverse Polish NotationMy Answer
151Reverse Words in A StringMy Answer
152Maximum Product SubarrayMy Answer
153Find Minimum in Rotated Sorted ArrayMy Answer
155Min StackMy Answer
160Intersection of Two Linked ListsMy Answer
164Maximum GapMy Answer
166Fraction to Recurring DecimalMy Answer
169Majority ElementMy Answer
171Excel Sheet Column NumberMy Answer
172Factorial Trailing ZeroesMy Answer
173Binary Search Tree IteratorMy Answer
174Dungeon GameMy Answer
179Largest NumberMy Answer
187Repeated Dna SequencesMy Answer
190Reverse BitsMy Answer
191Number of 1 BitsMy Answer
198House RobberMy Answer
200Number of IslandsMy Answer
202Happy NumberMy Answer
206Reverse Linked ListMy Answer
207Course ScheduleMy Answer
208Implement Trie Prefix TreeMy Answer
209Minimum Size Subarray SumMy Answer
210Course Schedule IIMy Answer
212Word Search IIMy Answer
213House Robber IIMy Answer
214Shortest PalindromeMy Answer
215Kth Largest Element in An ArrayMy Answer
216Combination Sum IIIMy Answer
217Contains DuplicateMy Answer
218the Skyline ProblemMy Answer
221Maximal SquareMy Answer
225Implement Stack Using QueuesMy Answer
226Invert Binary TreeMy Answer
227Basic Calculator IIMy Answer
228Summary RangesMy Answer
230Kth Smallest Element in A BstMy Answer
231Power of TwoMy Answer
232Implement Queue Using StacksMy Answer
233Number of Digit OneMy Answer
234Palindrome Linked ListMy Answer
235Lowest Common Ancestor of A Binary Search TreeMy Answer
236Lowest Common Ancestor of A Binary TreeMy Answer
237Delete Node in A Linked ListMy Answer
238Product of Array Except SelfMy Answer
239Sliding Window MaximumMy Answer
240Search A 2d Matrix IIMy Answer
242Valid AnagramMy Answer
258Add DigitsMy Answer
260Single Number IIIMy Answer
263Ugly NumberMy Answer
268Missing NumberMy Answer
273Integer to English WordsMy Answer
274H IndexMy Answer
279Perfect SquaresMy Answer
283Move ZeroesMy Answer
287Find the Duplicate NumberMy Answer
290Word PatternMy Answer
292Nim GameMy Answer
295Find Median from Data StreamMy Answer
297Serialize and Deserialize Binary TreeMy Answer
299Bulls and CowsMy Answer
300Longest Increasing SubsequenceMy Answer
301Remove Invalid ParenthesesMy Answer
307Range Sum Query MutableMy Answer
309Best Time to Buy and Sell Stock with CooldownMy Answer
310Minimum Height TreesMy Answer
312Burst BalloonsMy Answer
315Count of Smaller Numbers After SelfMy Answer
319Bulb SwitcherMy Answer
321Create Maximum NumberMy Answer
322Coin ChangeMy Answer
326Power of ThreeMy Answer
329Longest Increasing Path in A MatrixMy Answer
335Self CrossingMy Answer
336Palindrome PairsMy Answer
337House Robber IIIMy Answer
338Counting BitsMy Answer
339Nested List Weight SumMy Answer
341Flatten Nested List IteratorMy Answer
344Reverse StringMy Answer
347Top K Frequent ElementsMy Answer
349Intersection of Two ArraysMy Answer
350Intersection of Two Arrays IIMy Answer
367Valid Perfect SquareMy Answer
371Sum of Two IntegersMy Answer
375Guess Number Higher Or Lower IIMy Answer
376Wiggle SubsequenceMy Answer
378Kth Smallest Element in A Sorted MatrixMy Answer
380Insert Delete Getrandom O1My Answer
383Ransom NoteMy Answer
384Shuffle An ArrayMy Answer
387First Unique Character in A StringMy Answer
389Find the DifferenceMy Answer
390Elimination GameMy Answer
392Is SubsequenceMy Answer
394Decode StringMy Answer
396Rotate FunctionMy Answer
397Integer ReplacementMy Answer
401Binary WatchMy Answer
404Sum of Left LeavesMy Answer
406Queue Reconstruction by HeightMy Answer
412Fizz BuzzMy Answer
413Arithmetic SlicesMy Answer
416Partition Equal Subset SumMy Answer
420Strong Password CheckerMy Answer
437Path Sum IIIMy Answer
438Find All Anagrams in A StringMy Answer
440K Th Smallest in Lexicographical OrderMy Answer
442Find All Duplicates in An ArrayMy Answer
445Add Two Numbers IIMy Answer
448Find All Numbers Disappeared in An ArrayMy Answer
450Delete Node in A BstMy Answer
456132 PatternMy Answer
457Circular Array LoopMy Answer
460LFU CacheMy Answer
461Hamming DistanceMy Answer
462Minimum Moves to Equal Array Elements IIMy Answer
473Matchsticks to SquareMy Answer
476Number ComplementMy Answer
485Max Consecutive OnesMy Answer
486Predict the WinnerMy Answer
491Increasing SubsequencesMy Answer
492Construct the RectangleMy Answer
493Reverse PairsMy Answer
494Target SumMy Answer
500Keyboard RowMy Answer
520Detect CapitalMy Answer
523Continuous Subarray SumMy Answer
538Convert Bst to Greater TreeMy Answer
539Minimum Time DifferenceMy Answer
540Single Element in A Sorted ArrayMy Answer
543Diameter of Binary TreeMy Answer
547Friend CirclesMy Answer
554Brick WallMy Answer
557Reverse Words in A String IIIMy Answer
560Subarray Sum Equals KMy Answer
561Array Partition IMy Answer
563Binary Tree TiltMy Answer
564Find the Closest PalindromeMy Answer
566Reshape the MatrixMy Answer
567Permutation in StringMy Answer
572Subtree of Another TreeMy Answer
581Shortest Unsorted Continuous SubarrayMy Answer
593Valid SquareMy Answer
599Minimum Index Sum of Two ListsMy Answer
617Merge Two Binary TreesMy Answer
621Task SchedulerMy Answer
623Add One Row to TreeMy Answer
632Smallest RangeMy Answer
647Palindromic SubstringsMy Answer
649Dota2 SenateMy Answer
657Judge Route CircleMy Answer
658Find K Closest ElementsMy Answer
659Split Array Into Consecutive SubsequencesMy Answer
662Maximum Width of Binary TreeMy Answer
665Non Decreasing ArrayMy Answer
667Beautiful Arrangement IIMy Answer
670Maximum SwapMy Answer
673Number of Longest Increasing SubsequenceMy Answer
674Longest Continuous Increasing SubsequenceMy Answer
677Map Sum PairsMy Answer
684Redundant ConnectionMy Answer
688Knight Probability in ChessboardMy Answer
693Binary Number with Alternating BitsMy Answer
697Degree of An ArrayMy Answer
698Partition to K Equal Sum SubsetsMy Answer
714Best Time to Buy and Sell Stock with Transaction FeeMy Answer
7171 Bit and 2 Bit CharactersMy Answer
725Split Linked List in PartsMy Answer
754Reach A NumberMy Answer

About

Answers to the questions in leetcode

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Blog

雨过。天晴的博客

Progress

 Easy 93/249 ( 37.35 %) ████████████░░░░░░░░░░░░░░░░░░
Medium	147/433 ( 33.95 %) ███████████░░░░░░░░░░░░░░░░░░░
Hard 53/183 ( 28.96 %) █████████░░░░░░░░░░░░░░░░░░░░░
without locked
Easy 92/218 ( 42.20 %) █████████████░░░░░░░░░░░░░░░░░
Medium	147/344 ( 42.73 %) █████████████░░░░░░░░░░░░░░░░░
Hard 53/141 ( 37.59 %) ████████████░░░░░░░░░░░░░░░░░░
1 10
000 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
010 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣
020 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
030 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
040 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
050 ▣ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚ ▣
060 ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
070 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
080 ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚
090 ▣ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ▣
100 ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚
110 ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣
120 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
130 ▣ ▣ ⬚ ▣ ▣ ▣ ▣ ▤ ▣ ▣
140 ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ▣
150 ▣ ▣ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣
160 ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣ ⬚
170 ▣ ▣ ▣ ▣ ⬚ ▤ ⬚ ⬚ ▣ ⬚
180 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
190 ▣ ⬚ ⬚ ⬚ ▤ ⬚ ⬚ ▣ ⬚ ▣
200 ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣
210 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚
220 ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ⬚ ▣
230 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
240 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
250 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣
260 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
270 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
280 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
290 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ▣ ▣
300 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ▣
310 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚
320 ▣ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚
330 ⬚ ▤ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚
340 ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
350 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
360 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
370 ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣ ⬚ ▣
380 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
390 ▤ ▣ ⬚ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
400 ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚
410 ⬚ ▣ ▣ ▤ ⬚ ▣ ⬚ ⬚ ⬚ ▣
420 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
430 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣
440 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣
450 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣
460 ▣ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
470 ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
480 ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚
490 ▣ ▣ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣
500 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ 510 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣
520 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
530 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣
540 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ 550 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣
560 ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
570 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
580 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
590 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
600 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
610 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
620 ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
630 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
640 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚
650 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣ ⬚
660 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣
670 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
680 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
690 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚
700 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
710 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
720 ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚
730 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
740 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
750 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
760 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
770 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
780 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
790 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
800 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
810 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
820 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
830 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
840 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
850 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
860 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
870 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ Accepted ▤ Not Accepted ⬚ Remaining

Accecpted

序号题名解答
1Two SumMy Answer
2Add Two NumbersMy Answer
3Longest Substring without Repeating CharactersMy Answer
4Median of Two Sorted ArraysMy Answer
5Longest Palindromic SubstringMy Answer
6Zigzag ConversionMy Answer
7Reverse IntegerMy Answer
8String to Integer AtoiMy Answer
9Palindrome NumberMy Answer
10Regular Expression MatchingMy Answer
11Container with Most WaterMy Answer
11Container with Most WaterMy Answer
12Integer to RomanMy Answer
13Roman to IntegerMy Answer
14Longest Common PrefixMy Answer
153sumMy Answer
163sum ClosestMy Answer
17Letter Combinations of A Phone NumberMy Answer
19Remove Nth Node from End of ListMy Answer
20Valid ParenthesesMy Answer
21Merge Two Sorted ListsMy Answer
22Generate ParenthesesMy Answer
23Merge K Sorted ListsMy Answer
24Swap Nodes in PairsMy Answer
25Reverse Nodes in K GroupMy Answer
26Remove Duplicates from Sorted ArrayMy Answer
27Remove ElementMy Answer
28Implement StrstrMy Answer
29Divide Two IntegersMy Answer
30Substring with Concatenation of All WordsMy Answer
31Next PermutationMy Answer
32Longest Valid ParenthesesMy Answer
33Search in Rotated Sorted ArrayMy Answer
34Find First and Last Position of Element in Sorted ArrayMy Answer
34Search For A RangeMy Answer
35Search Insert PositionMy Answer
36Valid SudokuMy Answer
37Sudoku SolverMy Answer
38Count and SayMy Answer
39Combination SumMy Answer
40Combination Sum IIMy Answer
41First Missing PositiveMy Answer
42Trapping Rain WaterMy Answer
44Wildcard MatchingMy Answer
45Jump Game IIMy Answer
46PermutationsMy Answer
48Rotate ImageMy Answer
49Group AnagramsMy Answer
49Group AnagramsMy Answer
50Powx NMy Answer
51N QueensMy Answer
53Maximum SubarrayMy Answer
54Spiral MatrixMy Answer
55Jump GameMy Answer
56Merge IntervalsMy Answer
57Insert IntervalMy Answer
60Permutation SequenceMy Answer
61Rotate ListMy Answer
62Unique PathsMy Answer
63Unique Paths IIMy Answer
64Minimum Path SumMy Answer
65Valid NumberMy Answer
66Plus OneMy Answer
68Text JustificationMy Answer
69SqrtxMy Answer
70Climbing StairsMy Answer
72Edit DistanceMy Answer
73Set Matrix ZeroesMy Answer
74Search A 2d MatrixMy Answer
75Sort ColorsMy Answer
75Sort ColorsMy Answer
76Minimum Window SubstringMy Answer
77CombinationsMy Answer
78SubsetsMy Answer
79Word SearchMy Answer
80Remove Duplicates from Sorted Array IIMy Answer
83Remove Duplicates from Sorted ListMy Answer
84Largest Rectangle in HistogramMy Answer
85Maximal RectangleMy Answer
86Partition ListMy Answer
87Scramble StringMy Answer
88Merge Sorted ArrayMy Answer
89Gray CodeMy Answer
91Decode WaysMy Answer
94Binary Tree Inorder TraversalMy Answer
95Unique Binary Search Trees IIMy Answer
96Unique Binary Search TreesMy Answer
97Interleaving StringMy Answer
97Interleaving StringMy Answer
98Validate Binary Search TreeMy Answer
100Same TreeMy Answer
101Symmetric TreeMy Answer
102Binary Tree Level Order TraversalMy Answer
103Binary Tree Zigzag Level Order TraversalMy Answer
104Maximum Depth of Binary TreeMy Answer
105Construct Binary Tree from Preorder and Inorder TraversalMy Answer
107Binary Tree Level Order Traversal IIMy Answer
108Convert Sorted Array to Binary Search TreeMy Answer
112Path SumMy Answer
114Flatten Binary Tree to Linked ListMy Answer
116Populating Next Right Pointers in Each NodeMy Answer
118Pascals TriangleMy Answer
120TriangleMy Answer
121Best Time to Buy and Sell StockMy Answer
122Best Time to Buy and Sell Stock IIMy Answer
124Binary Tree Maximum Path SumMy Answer
125Valid PalindromeMy Answer
126Word Ladder IIMy Answer
128Longest Consecutive SequenceMy Answer
129Sum Root to Leaf NumbersMy Answer
130Surrounded RegionsMy Answer
131Palindrome PartitioningMy Answer
132Palindrome Partitioning IIMy Answer
134Gas StationMy Answer
135CandyMy Answer
136Single NumberMy Answer
137Single Number IIMy Answer
139Word BreakMy Answer
140Word Break IIMy Answer
141Linked List CycleMy Answer
142Linked List Cycle IIMy Answer
143Reorder ListMy Answer
145Binary Tree Postorder TraversalMy Answer
146Lru CacheMy Answer
148Sort ListMy Answer
149Max Points On A LineMy Answer
150Evaluate Reverse Polish NotationMy Answer
151Reverse Words in A StringMy Answer
152Maximum Product SubarrayMy Answer
153Find Minimum in Rotated Sorted ArrayMy Answer
155Min StackMy Answer
160Intersection of Two Linked ListsMy Answer
164Maximum GapMy Answer
166Fraction to Recurring DecimalMy Answer
169Majority ElementMy Answer
171Excel Sheet Column NumberMy Answer
172Factorial Trailing ZeroesMy Answer
173Binary Search Tree IteratorMy Answer
174Dungeon GameMy Answer
179Largest NumberMy Answer
187Repeated Dna SequencesMy Answer
190Reverse BitsMy Answer
191Number of 1 BitsMy Answer
198House RobberMy Answer
200Number of IslandsMy Answer
202Happy NumberMy Answer
206Reverse Linked ListMy Answer
207Course ScheduleMy Answer
208Implement Trie Prefix TreeMy Answer
209Minimum Size Subarray SumMy Answer
210Course Schedule IIMy Answer
212Word Search IIMy Answer
213House Robber IIMy Answer
214Shortest PalindromeMy Answer
215Kth Largest Element in An ArrayMy Answer
216Combination Sum IIIMy Answer
217Contains DuplicateMy Answer
218the Skyline ProblemMy Answer
221Maximal SquareMy Answer
225Implement Stack Using QueuesMy Answer
226Invert Binary TreeMy Answer
227Basic Calculator IIMy Answer
228Summary RangesMy Answer
230Kth Smallest Element in A BstMy Answer
231Power of TwoMy Answer
232Implement Queue Using StacksMy Answer
233Number of Digit OneMy Answer
234Palindrome Linked ListMy Answer
235Lowest Common Ancestor of A Binary Search TreeMy Answer
236Lowest Common Ancestor of A Binary TreeMy Answer
237Delete Node in A Linked ListMy Answer
238Product of Array Except SelfMy Answer
239Sliding Window MaximumMy Answer
240Search A 2d Matrix IIMy Answer
242Valid AnagramMy Answer
258Add DigitsMy Answer
260Single Number IIIMy Answer
263Ugly NumberMy Answer
268Missing NumberMy Answer
273Integer to English WordsMy Answer
274H IndexMy Answer
279Perfect SquaresMy Answer
283Move ZeroesMy Answer
287Find the Duplicate NumberMy Answer
290Word PatternMy Answer
292Nim GameMy Answer
295Find Median from Data StreamMy Answer
297Serialize and Deserialize Binary TreeMy Answer
299Bulls and CowsMy Answer
300Longest Increasing SubsequenceMy Answer
301Remove Invalid ParenthesesMy Answer
307Range Sum Query MutableMy Answer
309Best Time to Buy and Sell Stock with CooldownMy Answer
310Minimum Height TreesMy Answer
312Burst BalloonsMy Answer
315Count of Smaller Numbers After SelfMy Answer
319Bulb SwitcherMy Answer
321Create Maximum NumberMy Answer
322Coin ChangeMy Answer
326Power of ThreeMy Answer
329Longest Increasing Path in A MatrixMy Answer
335Self CrossingMy Answer
336Palindrome PairsMy Answer
337House Robber IIIMy Answer
338Counting BitsMy Answer
339Nested List Weight SumMy Answer
341Flatten Nested List IteratorMy Answer
344Reverse StringMy Answer
347Top K Frequent ElementsMy Answer
349Intersection of Two ArraysMy Answer
350Intersection of Two Arrays IIMy Answer
367Valid Perfect SquareMy Answer
371Sum of Two IntegersMy Answer
375Guess Number Higher Or Lower IIMy Answer
376Wiggle SubsequenceMy Answer
378Kth Smallest Element in A Sorted MatrixMy Answer
380Insert Delete Getrandom O1My Answer
383Ransom NoteMy Answer
384Shuffle An ArrayMy Answer
387First Unique Character in A StringMy Answer
389Find the DifferenceMy Answer
390Elimination GameMy Answer
392Is SubsequenceMy Answer
394Decode StringMy Answer
396Rotate FunctionMy Answer
397Integer ReplacementMy Answer
401Binary WatchMy Answer
404Sum of Left LeavesMy Answer
406Queue Reconstruction by HeightMy Answer
412Fizz BuzzMy Answer
413Arithmetic SlicesMy Answer
416Partition Equal Subset SumMy Answer
420Strong Password CheckerMy Answer
437Path Sum IIIMy Answer
438Find All Anagrams in A StringMy Answer
440K Th Smallest in Lexicographical OrderMy Answer
442Find All Duplicates in An ArrayMy Answer
445Add Two Numbers IIMy Answer
448Find All Numbers Disappeared in An ArrayMy Answer
450Delete Node in A BstMy Answer
456132 PatternMy Answer
457Circular Array LoopMy Answer
460LFU CacheMy Answer
461Hamming DistanceMy Answer
462Minimum Moves to Equal Array Elements IIMy Answer
473Matchsticks to SquareMy Answer
476Number ComplementMy Answer
485Max Consecutive OnesMy Answer
486Predict the WinnerMy Answer
491Increasing SubsequencesMy Answer
492Construct the RectangleMy Answer
493Reverse PairsMy Answer
494Target SumMy Answer
500Keyboard RowMy Answer
520Detect CapitalMy Answer
523Continuous Subarray SumMy Answer
538Convert Bst to Greater TreeMy Answer
539Minimum Time DifferenceMy Answer
540Single Element in A Sorted ArrayMy Answer
543Diameter of Binary TreeMy Answer
547Friend CirclesMy Answer
554Brick WallMy Answer
557Reverse Words in A String IIIMy Answer
560Subarray Sum Equals KMy Answer
561Array Partition IMy Answer
563Binary Tree TiltMy Answer
564Find the Closest PalindromeMy Answer
566Reshape the MatrixMy Answer
567Permutation in StringMy Answer
572Subtree of Another TreeMy Answer
581Shortest Unsorted Continuous SubarrayMy Answer
593Valid SquareMy Answer
599Minimum Index Sum of Two ListsMy Answer
617Merge Two Binary TreesMy Answer
621Task SchedulerMy Answer
623Add One Row to TreeMy Answer
632Smallest RangeMy Answer
647Palindromic SubstringsMy Answer
649Dota2 SenateMy Answer
657Judge Route CircleMy Answer
658Find K Closest ElementsMy Answer
659Split Array Into Consecutive SubsequencesMy Answer
662Maximum Width of Binary TreeMy Answer
665Non Decreasing ArrayMy Answer
667Beautiful Arrangement IIMy Answer
670Maximum SwapMy Answer
673Number of Longest Increasing SubsequenceMy Answer
674Longest Continuous Increasing SubsequenceMy Answer
677Map Sum PairsMy Answer
684Redundant ConnectionMy Answer
688Knight Probability in ChessboardMy Answer
693Binary Number with Alternating BitsMy Answer
697Degree of An ArrayMy Answer
698Partition to K Equal Sum SubsetsMy Answer
714Best Time to Buy and Sell Stock with Transaction FeeMy Answer
7171 Bit and 2 Bit CharactersMy Answer
725Split Linked List in PartsMy Answer
754Reach A NumberMy Answer

About

Answers to the questions in leetcode

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Blog

雨过。天晴的博客

Progress

 Easy 93/249 ( 37.35 %) ████████████░░░░░░░░░░░░░░░░░░
Medium	147/433 ( 33.95 %) ███████████░░░░░░░░░░░░░░░░░░░
Hard 53/183 ( 28.96 %) █████████░░░░░░░░░░░░░░░░░░░░░
without locked
Easy 92/218 ( 42.20 %) █████████████░░░░░░░░░░░░░░░░░
Medium	147/344 ( 42.73 %) █████████████░░░░░░░░░░░░░░░░░
Hard 53/141 ( 37.59 %) ████████████░░░░░░░░░░░░░░░░░░
1 10
000 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
010 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣
020 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
030 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
040 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
050 ▣ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚ ▣
060 ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
070 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
080 ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚
090 ▣ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ▣
100 ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚
110 ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣
120 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
130 ▣ ▣ ⬚ ▣ ▣ ▣ ▣ ▤ ▣ ▣
140 ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ▣
150 ▣ ▣ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣
160 ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣ ⬚
170 ▣ ▣ ▣ ▣ ⬚ ▤ ⬚ ⬚ ▣ ⬚
180 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
190 ▣ ⬚ ⬚ ⬚ ▤ ⬚ ⬚ ▣ ⬚ ▣
200 ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣
210 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚
220 ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ⬚ ▣
230 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
240 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
250 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣
260 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
270 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
280 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
290 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ▣ ▣
300 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ▣
310 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚
320 ▣ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚
330 ⬚ ▤ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚
340 ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
350 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
360 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
370 ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣ ⬚ ▣
380 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
390 ▤ ▣ ⬚ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
400 ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚
410 ⬚ ▣ ▣ ▤ ⬚ ▣ ⬚ ⬚ ⬚ ▣
420 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
430 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣
440 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣
450 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣
460 ▣ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
470 ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
480 ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚
490 ▣ ▣ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣
500 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ 510 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣
520 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
530 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣
540 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ 550 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣
560 ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
570 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
580 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
590 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
600 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
610 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
620 ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
630 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
640 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚
650 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣ ⬚
660 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣
670 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
680 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
690 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚
700 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
710 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
720 ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚
730 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
740 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
750 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
760 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
770 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
780 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
790 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
800 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
810 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
820 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
830 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
840 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
850 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
860 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
870 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ Accepted ▤ Not Accepted ⬚ Remaining

Accecpted

序号题名解答
1Two SumMy Answer
2Add Two NumbersMy Answer
3Longest Substring without Repeating CharactersMy Answer
4Median of Two Sorted ArraysMy Answer
5Longest Palindromic SubstringMy Answer
6Zigzag ConversionMy Answer
7Reverse IntegerMy Answer
8String to Integer AtoiMy Answer
9Palindrome NumberMy Answer
10Regular Expression MatchingMy Answer
11Container with Most WaterMy Answer
11Container with Most WaterMy Answer
12Integer to RomanMy Answer
13Roman to IntegerMy Answer
14Longest Common PrefixMy Answer
153sumMy Answer
163sum ClosestMy Answer
17Letter Combinations of A Phone NumberMy Answer
19Remove Nth Node from End of ListMy Answer
20Valid ParenthesesMy Answer
21Merge Two Sorted ListsMy Answer
22Generate ParenthesesMy Answer
23Merge K Sorted ListsMy Answer
24Swap Nodes in PairsMy Answer
25Reverse Nodes in K GroupMy Answer
26Remove Duplicates from Sorted ArrayMy Answer
27Remove ElementMy Answer
28Implement StrstrMy Answer
29Divide Two IntegersMy Answer
30Substring with Concatenation of All WordsMy Answer
31Next PermutationMy Answer
32Longest Valid ParenthesesMy Answer
33Search in Rotated Sorted ArrayMy Answer
34Find First and Last Position of Element in Sorted ArrayMy Answer
34Search For A RangeMy Answer
35Search Insert PositionMy Answer
36Valid SudokuMy Answer
37Sudoku SolverMy Answer
38Count and SayMy Answer
39Combination SumMy Answer
40Combination Sum IIMy Answer
41First Missing PositiveMy Answer
42Trapping Rain WaterMy Answer
44Wildcard MatchingMy Answer
45Jump Game IIMy Answer
46PermutationsMy Answer
48Rotate ImageMy Answer
49Group AnagramsMy Answer
49Group AnagramsMy Answer
50Powx NMy Answer
51N QueensMy Answer
53Maximum SubarrayMy Answer
54Spiral MatrixMy Answer
55Jump GameMy Answer
56Merge IntervalsMy Answer
57Insert IntervalMy Answer
60Permutation SequenceMy Answer
61Rotate ListMy Answer
62Unique PathsMy Answer
63Unique Paths IIMy Answer
64Minimum Path SumMy Answer
65Valid NumberMy Answer
66Plus OneMy Answer
68Text JustificationMy Answer
69SqrtxMy Answer
70Climbing StairsMy Answer
72Edit DistanceMy Answer
73Set Matrix ZeroesMy Answer
74Search A 2d MatrixMy Answer
75Sort ColorsMy Answer
75Sort ColorsMy Answer
76Minimum Window SubstringMy Answer
77CombinationsMy Answer
78SubsetsMy Answer
79Word SearchMy Answer
80Remove Duplicates from Sorted Array IIMy Answer
83Remove Duplicates from Sorted ListMy Answer
84Largest Rectangle in HistogramMy Answer
85Maximal RectangleMy Answer
86Partition ListMy Answer
87Scramble StringMy Answer
88Merge Sorted ArrayMy Answer
89Gray CodeMy Answer
91Decode WaysMy Answer
94Binary Tree Inorder TraversalMy Answer
95Unique Binary Search Trees IIMy Answer
96Unique Binary Search TreesMy Answer
97Interleaving StringMy Answer
97Interleaving StringMy Answer
98Validate Binary Search TreeMy Answer
100Same TreeMy Answer
101Symmetric TreeMy Answer
102Binary Tree Level Order TraversalMy Answer
103Binary Tree Zigzag Level Order TraversalMy Answer
104Maximum Depth of Binary TreeMy Answer
105Construct Binary Tree from Preorder and Inorder TraversalMy Answer
107Binary Tree Level Order Traversal IIMy Answer
108Convert Sorted Array to Binary Search TreeMy Answer
112Path SumMy Answer
114Flatten Binary Tree to Linked ListMy Answer
116Populating Next Right Pointers in Each NodeMy Answer
118Pascals TriangleMy Answer
120TriangleMy Answer
121Best Time to Buy and Sell StockMy Answer
122Best Time to Buy and Sell Stock IIMy Answer
124Binary Tree Maximum Path SumMy Answer
125Valid PalindromeMy Answer
126Word Ladder IIMy Answer
128Longest Consecutive SequenceMy Answer
129Sum Root to Leaf NumbersMy Answer
130Surrounded RegionsMy Answer
131Palindrome PartitioningMy Answer
132Palindrome Partitioning IIMy Answer
134Gas StationMy Answer
135CandyMy Answer
136Single NumberMy Answer
137Single Number IIMy Answer
139Word BreakMy Answer
140Word Break IIMy Answer
141Linked List CycleMy Answer
142Linked List Cycle IIMy Answer
143Reorder ListMy Answer
145Binary Tree Postorder TraversalMy Answer
146Lru CacheMy Answer
148Sort ListMy Answer
149Max Points On A LineMy Answer
150Evaluate Reverse Polish NotationMy Answer
151Reverse Words in A StringMy Answer
152Maximum Product SubarrayMy Answer
153Find Minimum in Rotated Sorted ArrayMy Answer
155Min StackMy Answer
160Intersection of Two Linked ListsMy Answer
164Maximum GapMy Answer
166Fraction to Recurring DecimalMy Answer
169Majority ElementMy Answer
171Excel Sheet Column NumberMy Answer
172Factorial Trailing ZeroesMy Answer
173Binary Search Tree IteratorMy Answer
174Dungeon GameMy Answer
179Largest NumberMy Answer
187Repeated Dna SequencesMy Answer
190Reverse BitsMy Answer
191Number of 1 BitsMy Answer
198House RobberMy Answer
200Number of IslandsMy Answer
202Happy NumberMy Answer
206Reverse Linked ListMy Answer
207Course ScheduleMy Answer
208Implement Trie Prefix TreeMy Answer
209Minimum Size Subarray SumMy Answer
210Course Schedule IIMy Answer
212Word Search IIMy Answer
213House Robber IIMy Answer
214Shortest PalindromeMy Answer
215Kth Largest Element in An ArrayMy Answer
216Combination Sum IIIMy Answer
217Contains DuplicateMy Answer
218the Skyline ProblemMy Answer
221Maximal SquareMy Answer
225Implement Stack Using QueuesMy Answer
226Invert Binary TreeMy Answer
227Basic Calculator IIMy Answer
228Summary RangesMy Answer
230Kth Smallest Element in A BstMy Answer
231Power of TwoMy Answer
232Implement Queue Using StacksMy Answer
233Number of Digit OneMy Answer
234Palindrome Linked ListMy Answer
235Lowest Common Ancestor of A Binary Search TreeMy Answer
236Lowest Common Ancestor of A Binary TreeMy Answer
237Delete Node in A Linked ListMy Answer
238Product of Array Except SelfMy Answer
239Sliding Window MaximumMy Answer
240Search A 2d Matrix IIMy Answer
242Valid AnagramMy Answer
258Add DigitsMy Answer
260Single Number IIIMy Answer
263Ugly NumberMy Answer
268Missing NumberMy Answer
273Integer to English WordsMy Answer
274H IndexMy Answer
279Perfect SquaresMy Answer
283Move ZeroesMy Answer
287Find the Duplicate NumberMy Answer
290Word PatternMy Answer
292Nim GameMy Answer
295Find Median from Data StreamMy Answer
297Serialize and Deserialize Binary TreeMy Answer
299Bulls and CowsMy Answer
300Longest Increasing SubsequenceMy Answer
301Remove Invalid ParenthesesMy Answer
307Range Sum Query MutableMy Answer
309Best Time to Buy and Sell Stock with CooldownMy Answer
310Minimum Height TreesMy Answer
312Burst BalloonsMy Answer
315Count of Smaller Numbers After SelfMy Answer
319Bulb SwitcherMy Answer
321Create Maximum NumberMy Answer
322Coin ChangeMy Answer
326Power of ThreeMy Answer
329Longest Increasing Path in A MatrixMy Answer
335Self CrossingMy Answer
336Palindrome PairsMy Answer
337House Robber IIIMy Answer
338Counting BitsMy Answer
339Nested List Weight SumMy Answer
341Flatten Nested List IteratorMy Answer
344Reverse StringMy Answer
347Top K Frequent ElementsMy Answer
349Intersection of Two ArraysMy Answer
350Intersection of Two Arrays IIMy Answer
367Valid Perfect SquareMy Answer
371Sum of Two IntegersMy Answer
375Guess Number Higher Or Lower IIMy Answer
376Wiggle SubsequenceMy Answer
378Kth Smallest Element in A Sorted MatrixMy Answer
380Insert Delete Getrandom O1My Answer
383Ransom NoteMy Answer
384Shuffle An ArrayMy Answer
387First Unique Character in A StringMy Answer
389Find the DifferenceMy Answer
390Elimination GameMy Answer
392Is SubsequenceMy Answer
394Decode StringMy Answer
396Rotate FunctionMy Answer
397Integer ReplacementMy Answer
401Binary WatchMy Answer
404Sum of Left LeavesMy Answer
406Queue Reconstruction by HeightMy Answer
412Fizz BuzzMy Answer
413Arithmetic SlicesMy Answer
416Partition Equal Subset SumMy Answer
420Strong Password CheckerMy Answer
437Path Sum IIIMy Answer
438Find All Anagrams in A StringMy Answer
440K Th Smallest in Lexicographical OrderMy Answer
442Find All Duplicates in An ArrayMy Answer
445Add Two Numbers IIMy Answer
448Find All Numbers Disappeared in An ArrayMy Answer
450Delete Node in A BstMy Answer
456132 PatternMy Answer
457Circular Array LoopMy Answer
460LFU CacheMy Answer
461Hamming DistanceMy Answer
462Minimum Moves to Equal Array Elements IIMy Answer
473Matchsticks to SquareMy Answer
476Number ComplementMy Answer
485Max Consecutive OnesMy Answer
486Predict the WinnerMy Answer
491Increasing SubsequencesMy Answer
492Construct the RectangleMy Answer
493Reverse PairsMy Answer
494Target SumMy Answer
500Keyboard RowMy Answer
520Detect CapitalMy Answer
523Continuous Subarray SumMy Answer
538Convert Bst to Greater TreeMy Answer
539Minimum Time DifferenceMy Answer
540Single Element in A Sorted ArrayMy Answer
543Diameter of Binary TreeMy Answer
547Friend CirclesMy Answer
554Brick WallMy Answer
557Reverse Words in A String IIIMy Answer
560Subarray Sum Equals KMy Answer
561Array Partition IMy Answer
563Binary Tree TiltMy Answer
564Find the Closest PalindromeMy Answer
566Reshape the MatrixMy Answer
567Permutation in StringMy Answer
572Subtree of Another TreeMy Answer
581Shortest Unsorted Continuous SubarrayMy Answer
593Valid SquareMy Answer
599Minimum Index Sum of Two ListsMy Answer
617Merge Two Binary TreesMy Answer
621Task SchedulerMy Answer
623Add One Row to TreeMy Answer
632Smallest RangeMy Answer
647Palindromic SubstringsMy Answer
649Dota2 SenateMy Answer
657Judge Route CircleMy Answer
658Find K Closest ElementsMy Answer
659Split Array Into Consecutive SubsequencesMy Answer
662Maximum Width of Binary TreeMy Answer
665Non Decreasing ArrayMy Answer
667Beautiful Arrangement IIMy Answer
670Maximum SwapMy Answer
673Number of Longest Increasing SubsequenceMy Answer
674Longest Continuous Increasing SubsequenceMy Answer
677Map Sum PairsMy Answer
684Redundant ConnectionMy Answer
688Knight Probability in ChessboardMy Answer
693Binary Number with Alternating BitsMy Answer
697Degree of An ArrayMy Answer
698Partition to K Equal Sum SubsetsMy Answer
714Best Time to Buy and Sell Stock with Transaction FeeMy Answer
7171 Bit and 2 Bit CharactersMy Answer
725Split Linked List in PartsMy Answer
754Reach A NumberMy Answer

About

Answers to the questions in leetcode

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Latest commit

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Blog

雨过。天晴的博客

Progress

 Easy 93/249 ( 37.35 %) ████████████░░░░░░░░░░░░░░░░░░
Medium	147/433 ( 33.95 %) ███████████░░░░░░░░░░░░░░░░░░░
Hard 53/183 ( 28.96 %) █████████░░░░░░░░░░░░░░░░░░░░░
without locked
Easy 92/218 ( 42.20 %) █████████████░░░░░░░░░░░░░░░░░
Medium	147/344 ( 42.73 %) █████████████░░░░░░░░░░░░░░░░░
Hard 53/141 ( 37.59 %) ████████████░░░░░░░░░░░░░░░░░░
1 10
000 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
010 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣
020 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
030 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
040 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
050 ▣ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚ ▣
060 ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
070 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
080 ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚
090 ▣ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ▣
100 ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚
110 ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣
120 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
130 ▣ ▣ ⬚ ▣ ▣ ▣ ▣ ▤ ▣ ▣
140 ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ▣
150 ▣ ▣ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣
160 ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣ ⬚
170 ▣ ▣ ▣ ▣ ⬚ ▤ ⬚ ⬚ ▣ ⬚
180 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
190 ▣ ⬚ ⬚ ⬚ ▤ ⬚ ⬚ ▣ ⬚ ▣
200 ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣
210 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚
220 ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ⬚ ▣
230 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
240 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
250 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣
260 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
270 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
280 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
290 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ▣ ▣
300 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ▣
310 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚
320 ▣ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚
330 ⬚ ▤ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚
340 ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
350 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
360 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
370 ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣ ⬚ ▣
380 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
390 ▤ ▣ ⬚ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
400 ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚
410 ⬚ ▣ ▣ ▤ ⬚ ▣ ⬚ ⬚ ⬚ ▣
420 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
430 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣
440 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣
450 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣
460 ▣ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
470 ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
480 ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚
490 ▣ ▣ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣
500 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ 510 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣
520 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
530 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣
540 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ 550 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣
560 ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
570 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
580 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
590 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
600 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
610 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
620 ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
630 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
640 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚
650 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣ ⬚
660 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣
670 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
680 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
690 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚
700 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
710 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
720 ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚
730 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
740 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
750 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
760 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
770 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
780 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
790 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
800 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
810 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
820 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
830 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
840 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
850 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
860 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
870 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ Accepted ▤ Not Accepted ⬚ Remaining

Accecpted

序号题名解答
1Two SumMy Answer
2Add Two NumbersMy Answer
3Longest Substring without Repeating CharactersMy Answer
4Median of Two Sorted ArraysMy Answer
5Longest Palindromic SubstringMy Answer
6Zigzag ConversionMy Answer
7Reverse IntegerMy Answer
8String to Integer AtoiMy Answer
9Palindrome NumberMy Answer
10Regular Expression MatchingMy Answer
11Container with Most WaterMy Answer
11Container with Most WaterMy Answer
12Integer to RomanMy Answer
13Roman to IntegerMy Answer
14Longest Common PrefixMy Answer
153sumMy Answer
163sum ClosestMy Answer
17Letter Combinations of A Phone NumberMy Answer
19Remove Nth Node from End of ListMy Answer
20Valid ParenthesesMy Answer
21Merge Two Sorted ListsMy Answer
22Generate ParenthesesMy Answer
23Merge K Sorted ListsMy Answer
24Swap Nodes in PairsMy Answer
25Reverse Nodes in K GroupMy Answer
26Remove Duplicates from Sorted ArrayMy Answer
27Remove ElementMy Answer
28Implement StrstrMy Answer
29Divide Two IntegersMy Answer
30Substring with Concatenation of All WordsMy Answer
31Next PermutationMy Answer
32Longest Valid ParenthesesMy Answer
33Search in Rotated Sorted ArrayMy Answer
34Find First and Last Position of Element in Sorted ArrayMy Answer
34Search For A RangeMy Answer
35Search Insert PositionMy Answer
36Valid SudokuMy Answer
37Sudoku SolverMy Answer
38Count and SayMy Answer
39Combination SumMy Answer
40Combination Sum IIMy Answer
41First Missing PositiveMy Answer
42Trapping Rain WaterMy Answer
44Wildcard MatchingMy Answer
45Jump Game IIMy Answer
46PermutationsMy Answer
48Rotate ImageMy Answer
49Group AnagramsMy Answer
49Group AnagramsMy Answer
50Powx NMy Answer
51N QueensMy Answer
53Maximum SubarrayMy Answer
54Spiral MatrixMy Answer
55Jump GameMy Answer
56Merge IntervalsMy Answer
57Insert IntervalMy Answer
60Permutation SequenceMy Answer
61Rotate ListMy Answer
62Unique PathsMy Answer
63Unique Paths IIMy Answer
64Minimum Path SumMy Answer
65Valid NumberMy Answer
66Plus OneMy Answer
68Text JustificationMy Answer
69SqrtxMy Answer
70Climbing StairsMy Answer
72Edit DistanceMy Answer
73Set Matrix ZeroesMy Answer
74Search A 2d MatrixMy Answer
75Sort ColorsMy Answer
75Sort ColorsMy Answer
76Minimum Window SubstringMy Answer
77CombinationsMy Answer
78SubsetsMy Answer
79Word SearchMy Answer
80Remove Duplicates from Sorted Array IIMy Answer
83Remove Duplicates from Sorted ListMy Answer
84Largest Rectangle in HistogramMy Answer
85Maximal RectangleMy Answer
86Partition ListMy Answer
87Scramble StringMy Answer
88Merge Sorted ArrayMy Answer
89Gray CodeMy Answer
91Decode WaysMy Answer
94Binary Tree Inorder TraversalMy Answer
95Unique Binary Search Trees IIMy Answer
96Unique Binary Search TreesMy Answer
97Interleaving StringMy Answer
97Interleaving StringMy Answer
98Validate Binary Search TreeMy Answer
100Same TreeMy Answer
101Symmetric TreeMy Answer
102Binary Tree Level Order TraversalMy Answer
103Binary Tree Zigzag Level Order TraversalMy Answer
104Maximum Depth of Binary TreeMy Answer
105Construct Binary Tree from Preorder and Inorder TraversalMy Answer
107Binary Tree Level Order Traversal IIMy Answer
108Convert Sorted Array to Binary Search TreeMy Answer
112Path SumMy Answer
114Flatten Binary Tree to Linked ListMy Answer
116Populating Next Right Pointers in Each NodeMy Answer
118Pascals TriangleMy Answer
120TriangleMy Answer
121Best Time to Buy and Sell StockMy Answer
122Best Time to Buy and Sell Stock IIMy Answer
124Binary Tree Maximum Path SumMy Answer
125Valid PalindromeMy Answer
126Word Ladder IIMy Answer
128Longest Consecutive SequenceMy Answer
129Sum Root to Leaf NumbersMy Answer
130Surrounded RegionsMy Answer
131Palindrome PartitioningMy Answer
132Palindrome Partitioning IIMy Answer
134Gas StationMy Answer
135CandyMy Answer
136Single NumberMy Answer
137Single Number IIMy Answer
139Word BreakMy Answer
140Word Break IIMy Answer
141Linked List CycleMy Answer
142Linked List Cycle IIMy Answer
143Reorder ListMy Answer
145Binary Tree Postorder TraversalMy Answer
146Lru CacheMy Answer
148Sort ListMy Answer
149Max Points On A LineMy Answer
150Evaluate Reverse Polish NotationMy Answer
151Reverse Words in A StringMy Answer
152Maximum Product SubarrayMy Answer
153Find Minimum in Rotated Sorted ArrayMy Answer
155Min StackMy Answer
160Intersection of Two Linked ListsMy Answer
164Maximum GapMy Answer
166Fraction to Recurring DecimalMy Answer
169Majority ElementMy Answer
171Excel Sheet Column NumberMy Answer
172Factorial Trailing ZeroesMy Answer
173Binary Search Tree IteratorMy Answer
174Dungeon GameMy Answer
179Largest NumberMy Answer
187Repeated Dna SequencesMy Answer
190Reverse BitsMy Answer
191Number of 1 BitsMy Answer
198House RobberMy Answer
200Number of IslandsMy Answer
202Happy NumberMy Answer
206Reverse Linked ListMy Answer
207Course ScheduleMy Answer
208Implement Trie Prefix TreeMy Answer
209Minimum Size Subarray SumMy Answer
210Course Schedule IIMy Answer
212Word Search IIMy Answer
213House Robber IIMy Answer
214Shortest PalindromeMy Answer
215Kth Largest Element in An ArrayMy Answer
216Combination Sum IIIMy Answer
217Contains DuplicateMy Answer
218the Skyline ProblemMy Answer
221Maximal SquareMy Answer
225Implement Stack Using QueuesMy Answer
226Invert Binary TreeMy Answer
227Basic Calculator IIMy Answer
228Summary RangesMy Answer
230Kth Smallest Element in A BstMy Answer
231Power of TwoMy Answer
232Implement Queue Using StacksMy Answer
233Number of Digit OneMy Answer
234Palindrome Linked ListMy Answer
235Lowest Common Ancestor of A Binary Search TreeMy Answer
236Lowest Common Ancestor of A Binary TreeMy Answer
237Delete Node in A Linked ListMy Answer
238Product of Array Except SelfMy Answer
239Sliding Window MaximumMy Answer
240Search A 2d Matrix IIMy Answer
242Valid AnagramMy Answer
258Add DigitsMy Answer
260Single Number IIIMy Answer
263Ugly NumberMy Answer
268Missing NumberMy Answer
273Integer to English WordsMy Answer
274H IndexMy Answer
279Perfect SquaresMy Answer
283Move ZeroesMy Answer
287Find the Duplicate NumberMy Answer
290Word PatternMy Answer
292Nim GameMy Answer
295Find Median from Data StreamMy Answer
297Serialize and Deserialize Binary TreeMy Answer
299Bulls and CowsMy Answer
300Longest Increasing SubsequenceMy Answer
301Remove Invalid ParenthesesMy Answer
307Range Sum Query MutableMy Answer
309Best Time to Buy and Sell Stock with CooldownMy Answer
310Minimum Height TreesMy Answer
312Burst BalloonsMy Answer
315Count of Smaller Numbers After SelfMy Answer
319Bulb SwitcherMy Answer
321Create Maximum NumberMy Answer
322Coin ChangeMy Answer
326Power of ThreeMy Answer
329Longest Increasing Path in A MatrixMy Answer
335Self CrossingMy Answer
336Palindrome PairsMy Answer
337House Robber IIIMy Answer
338Counting BitsMy Answer
339Nested List Weight SumMy Answer
341Flatten Nested List IteratorMy Answer
344Reverse StringMy Answer
347Top K Frequent ElementsMy Answer
349Intersection of Two ArraysMy Answer
350Intersection of Two Arrays IIMy Answer
367Valid Perfect SquareMy Answer
371Sum of Two IntegersMy Answer
375Guess Number Higher Or Lower IIMy Answer
376Wiggle SubsequenceMy Answer
378Kth Smallest Element in A Sorted MatrixMy Answer
380Insert Delete Getrandom O1My Answer
383Ransom NoteMy Answer
384Shuffle An ArrayMy Answer
387First Unique Character in A StringMy Answer
389Find the DifferenceMy Answer
390Elimination GameMy Answer
392Is SubsequenceMy Answer
394Decode StringMy Answer
396Rotate FunctionMy Answer
397Integer ReplacementMy Answer
401Binary WatchMy Answer
404Sum of Left LeavesMy Answer
406Queue Reconstruction by HeightMy Answer
412Fizz BuzzMy Answer
413Arithmetic SlicesMy Answer
416Partition Equal Subset SumMy Answer
420Strong Password CheckerMy Answer
437Path Sum IIIMy Answer
438Find All Anagrams in A StringMy Answer
440K Th Smallest in Lexicographical OrderMy Answer
442Find All Duplicates in An ArrayMy Answer
445Add Two Numbers IIMy Answer
448Find All Numbers Disappeared in An ArrayMy Answer
450Delete Node in A BstMy Answer
456132 PatternMy Answer
457Circular Array LoopMy Answer
460LFU CacheMy Answer
461Hamming DistanceMy Answer
462Minimum Moves to Equal Array Elements IIMy Answer
473Matchsticks to SquareMy Answer
476Number ComplementMy Answer
485Max Consecutive OnesMy Answer
486Predict the WinnerMy Answer
491Increasing SubsequencesMy Answer
492Construct the RectangleMy Answer
493Reverse PairsMy Answer
494Target SumMy Answer
500Keyboard RowMy Answer
520Detect CapitalMy Answer
523Continuous Subarray SumMy Answer
538Convert Bst to Greater TreeMy Answer
539Minimum Time DifferenceMy Answer
540Single Element in A Sorted ArrayMy Answer
543Diameter of Binary TreeMy Answer
547Friend CirclesMy Answer
554Brick WallMy Answer
557Reverse Words in A String IIIMy Answer
560Subarray Sum Equals KMy Answer
561Array Partition IMy Answer
563Binary Tree TiltMy Answer
564Find the Closest PalindromeMy Answer
566Reshape the MatrixMy Answer
567Permutation in StringMy Answer
572Subtree of Another TreeMy Answer
581Shortest Unsorted Continuous SubarrayMy Answer
593Valid SquareMy Answer
599Minimum Index Sum of Two ListsMy Answer
617Merge Two Binary TreesMy Answer
621Task SchedulerMy Answer
623Add One Row to TreeMy Answer
632Smallest RangeMy Answer
647Palindromic SubstringsMy Answer
649Dota2 SenateMy Answer
657Judge Route CircleMy Answer
658Find K Closest ElementsMy Answer
659Split Array Into Consecutive SubsequencesMy Answer
662Maximum Width of Binary TreeMy Answer
665Non Decreasing ArrayMy Answer
667Beautiful Arrangement IIMy Answer
670Maximum SwapMy Answer
673Number of Longest Increasing SubsequenceMy Answer
674Longest Continuous Increasing SubsequenceMy Answer
677Map Sum PairsMy Answer
684Redundant ConnectionMy Answer
688Knight Probability in ChessboardMy Answer
693Binary Number with Alternating BitsMy Answer
697Degree of An ArrayMy Answer
698Partition to K Equal Sum SubsetsMy Answer
714Best Time to Buy and Sell Stock with Transaction FeeMy Answer
7171 Bit and 2 Bit CharactersMy Answer
725Split Linked List in PartsMy Answer
754Reach A NumberMy Answer

About

Answers to the questions in leetcode

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Blog

雨过。天晴的博客

Progress

 Easy 93/249 ( 37.35 %) ████████████░░░░░░░░░░░░░░░░░░
Medium	147/433 ( 33.95 %) ███████████░░░░░░░░░░░░░░░░░░░
Hard 53/183 ( 28.96 %) █████████░░░░░░░░░░░░░░░░░░░░░
without locked
Easy 92/218 ( 42.20 %) █████████████░░░░░░░░░░░░░░░░░
Medium	147/344 ( 42.73 %) █████████████░░░░░░░░░░░░░░░░░
Hard 53/141 ( 37.59 %) ████████████░░░░░░░░░░░░░░░░░░
1 10
000 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
010 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣
020 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
030 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
040 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
050 ▣ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚ ▣
060 ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
070 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
080 ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚
090 ▣ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ▣
100 ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚
110 ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣
120 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
130 ▣ ▣ ⬚ ▣ ▣ ▣ ▣ ▤ ▣ ▣
140 ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ▣
150 ▣ ▣ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣
160 ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣ ⬚
170 ▣ ▣ ▣ ▣ ⬚ ▤ ⬚ ⬚ ▣ ⬚
180 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
190 ▣ ⬚ ⬚ ⬚ ▤ ⬚ ⬚ ▣ ⬚ ▣
200 ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣
210 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚
220 ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ⬚ ▣
230 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
240 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
250 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣
260 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
270 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
280 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
290 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ▣ ▣
300 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ▣
310 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚
320 ▣ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚
330 ⬚ ▤ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚
340 ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
350 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
360 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
370 ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣ ⬚ ▣
380 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
390 ▤ ▣ ⬚ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
400 ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚
410 ⬚ ▣ ▣ ▤ ⬚ ▣ ⬚ ⬚ ⬚ ▣
420 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
430 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣
440 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣
450 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣
460 ▣ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
470 ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
480 ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚
490 ▣ ▣ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣
500 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ 510 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣
520 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
530 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣
540 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ 550 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣
560 ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
570 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
580 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
590 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
600 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
610 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
620 ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
630 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
640 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚
650 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣ ⬚
660 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣
670 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
680 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
690 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚
700 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
710 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
720 ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚
730 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
740 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
750 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
760 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
770 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
780 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
790 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
800 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
810 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
820 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
830 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
840 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
850 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
860 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
870 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ Accepted ▤ Not Accepted ⬚ Remaining

Accecpted

序号题名解答
1Two SumMy Answer
2Add Two NumbersMy Answer
3Longest Substring without Repeating CharactersMy Answer
4Median of Two Sorted ArraysMy Answer
5Longest Palindromic SubstringMy Answer
6Zigzag ConversionMy Answer
7Reverse IntegerMy Answer
8String to Integer AtoiMy Answer
9Palindrome NumberMy Answer
10Regular Expression MatchingMy Answer
11Container with Most WaterMy Answer
11Container with Most WaterMy Answer
12Integer to RomanMy Answer
13Roman to IntegerMy Answer
14Longest Common PrefixMy Answer
153sumMy Answer
163sum ClosestMy Answer
17Letter Combinations of A Phone NumberMy Answer
19Remove Nth Node from End of ListMy Answer
20Valid ParenthesesMy Answer
21Merge Two Sorted ListsMy Answer
22Generate ParenthesesMy Answer
23Merge K Sorted ListsMy Answer
24Swap Nodes in PairsMy Answer
25Reverse Nodes in K GroupMy Answer
26Remove Duplicates from Sorted ArrayMy Answer
27Remove ElementMy Answer
28Implement StrstrMy Answer
29Divide Two IntegersMy Answer
30Substring with Concatenation of All WordsMy Answer
31Next PermutationMy Answer
32Longest Valid ParenthesesMy Answer
33Search in Rotated Sorted ArrayMy Answer
34Find First and Last Position of Element in Sorted ArrayMy Answer
34Search For A RangeMy Answer
35Search Insert PositionMy Answer
36Valid SudokuMy Answer
37Sudoku SolverMy Answer
38Count and SayMy Answer
39Combination SumMy Answer
40Combination Sum IIMy Answer
41First Missing PositiveMy Answer
42Trapping Rain WaterMy Answer
44Wildcard MatchingMy Answer
45Jump Game IIMy Answer
46PermutationsMy Answer
48Rotate ImageMy Answer
49Group AnagramsMy Answer
49Group AnagramsMy Answer
50Powx NMy Answer
51N QueensMy Answer
53Maximum SubarrayMy Answer
54Spiral MatrixMy Answer
55Jump GameMy Answer
56Merge IntervalsMy Answer
57Insert IntervalMy Answer
60Permutation SequenceMy Answer
61Rotate ListMy Answer
62Unique PathsMy Answer
63Unique Paths IIMy Answer
64Minimum Path SumMy Answer
65Valid NumberMy Answer
66Plus OneMy Answer
68Text JustificationMy Answer
69SqrtxMy Answer
70Climbing StairsMy Answer
72Edit DistanceMy Answer
73Set Matrix ZeroesMy Answer
74Search A 2d MatrixMy Answer
75Sort ColorsMy Answer
75Sort ColorsMy Answer
76Minimum Window SubstringMy Answer
77CombinationsMy Answer
78SubsetsMy Answer
79Word SearchMy Answer
80Remove Duplicates from Sorted Array IIMy Answer
83Remove Duplicates from Sorted ListMy Answer
84Largest Rectangle in HistogramMy Answer
85Maximal RectangleMy Answer
86Partition ListMy Answer
87Scramble StringMy Answer
88Merge Sorted ArrayMy Answer
89Gray CodeMy Answer
91Decode WaysMy Answer
94Binary Tree Inorder TraversalMy Answer
95Unique Binary Search Trees IIMy Answer
96Unique Binary Search TreesMy Answer
97Interleaving StringMy Answer
97Interleaving StringMy Answer
98Validate Binary Search TreeMy Answer
100Same TreeMy Answer
101Symmetric TreeMy Answer
102Binary Tree Level Order TraversalMy Answer
103Binary Tree Zigzag Level Order TraversalMy Answer
104Maximum Depth of Binary TreeMy Answer
105Construct Binary Tree from Preorder and Inorder TraversalMy Answer
107Binary Tree Level Order Traversal IIMy Answer
108Convert Sorted Array to Binary Search TreeMy Answer
112Path SumMy Answer
114Flatten Binary Tree to Linked ListMy Answer
116Populating Next Right Pointers in Each NodeMy Answer
118Pascals TriangleMy Answer
120TriangleMy Answer
121Best Time to Buy and Sell StockMy Answer
122Best Time to Buy and Sell Stock IIMy Answer
124Binary Tree Maximum Path SumMy Answer
125Valid PalindromeMy Answer
126Word Ladder IIMy Answer
128Longest Consecutive SequenceMy Answer
129Sum Root to Leaf NumbersMy Answer
130Surrounded RegionsMy Answer
131Palindrome PartitioningMy Answer
132Palindrome Partitioning IIMy Answer
134Gas StationMy Answer
135CandyMy Answer
136Single NumberMy Answer
137Single Number IIMy Answer
139Word BreakMy Answer
140Word Break IIMy Answer
141Linked List CycleMy Answer
142Linked List Cycle IIMy Answer
143Reorder ListMy Answer
145Binary Tree Postorder TraversalMy Answer
146Lru CacheMy Answer
148Sort ListMy Answer
149Max Points On A LineMy Answer
150Evaluate Reverse Polish NotationMy Answer
151Reverse Words in A StringMy Answer
152Maximum Product SubarrayMy Answer
153Find Minimum in Rotated Sorted ArrayMy Answer
155Min StackMy Answer
160Intersection of Two Linked ListsMy Answer
164Maximum GapMy Answer
166Fraction to Recurring DecimalMy Answer
169Majority ElementMy Answer
171Excel Sheet Column NumberMy Answer
172Factorial Trailing ZeroesMy Answer
173Binary Search Tree IteratorMy Answer
174Dungeon GameMy Answer
179Largest NumberMy Answer
187Repeated Dna SequencesMy Answer
190Reverse BitsMy Answer
191Number of 1 BitsMy Answer
198House RobberMy Answer
200Number of IslandsMy Answer
202Happy NumberMy Answer
206Reverse Linked ListMy Answer
207Course ScheduleMy Answer
208Implement Trie Prefix TreeMy Answer
209Minimum Size Subarray SumMy Answer
210Course Schedule IIMy Answer
212Word Search IIMy Answer
213House Robber IIMy Answer
214Shortest PalindromeMy Answer
215Kth Largest Element in An ArrayMy Answer
216Combination Sum IIIMy Answer
217Contains DuplicateMy Answer
218the Skyline ProblemMy Answer
221Maximal SquareMy Answer
225Implement Stack Using QueuesMy Answer
226Invert Binary TreeMy Answer
227Basic Calculator IIMy Answer
228Summary RangesMy Answer
230Kth Smallest Element in A BstMy Answer
231Power of TwoMy Answer
232Implement Queue Using StacksMy Answer
233Number of Digit OneMy Answer
234Palindrome Linked ListMy Answer
235Lowest Common Ancestor of A Binary Search TreeMy Answer
236Lowest Common Ancestor of A Binary TreeMy Answer
237Delete Node in A Linked ListMy Answer
238Product of Array Except SelfMy Answer
239Sliding Window MaximumMy Answer
240Search A 2d Matrix IIMy Answer
242Valid AnagramMy Answer
258Add DigitsMy Answer
260Single Number IIIMy Answer
263Ugly NumberMy Answer
268Missing NumberMy Answer
273Integer to English WordsMy Answer
274H IndexMy Answer
279Perfect SquaresMy Answer
283Move ZeroesMy Answer
287Find the Duplicate NumberMy Answer
290Word PatternMy Answer
292Nim GameMy Answer
295Find Median from Data StreamMy Answer
297Serialize and Deserialize Binary TreeMy Answer
299Bulls and CowsMy Answer
300Longest Increasing SubsequenceMy Answer
301Remove Invalid ParenthesesMy Answer
307Range Sum Query MutableMy Answer
309Best Time to Buy and Sell Stock with CooldownMy Answer
310Minimum Height TreesMy Answer
312Burst BalloonsMy Answer
315Count of Smaller Numbers After SelfMy Answer
319Bulb SwitcherMy Answer
321Create Maximum NumberMy Answer
322Coin ChangeMy Answer
326Power of ThreeMy Answer
329Longest Increasing Path in A MatrixMy Answer
335Self CrossingMy Answer
336Palindrome PairsMy Answer
337House Robber IIIMy Answer
338Counting BitsMy Answer
339Nested List Weight SumMy Answer
341Flatten Nested List IteratorMy Answer
344Reverse StringMy Answer
347Top K Frequent ElementsMy Answer
349Intersection of Two ArraysMy Answer
350Intersection of Two Arrays IIMy Answer
367Valid Perfect SquareMy Answer
371Sum of Two IntegersMy Answer
375Guess Number Higher Or Lower IIMy Answer
376Wiggle SubsequenceMy Answer
378Kth Smallest Element in A Sorted MatrixMy Answer
380Insert Delete Getrandom O1My Answer
383Ransom NoteMy Answer
384Shuffle An ArrayMy Answer
387First Unique Character in A StringMy Answer
389Find the DifferenceMy Answer
390Elimination GameMy Answer
392Is SubsequenceMy Answer
394Decode StringMy Answer
396Rotate FunctionMy Answer
397Integer ReplacementMy Answer
401Binary WatchMy Answer
404Sum of Left LeavesMy Answer
406Queue Reconstruction by HeightMy Answer
412Fizz BuzzMy Answer
413Arithmetic SlicesMy Answer
416Partition Equal Subset SumMy Answer
420Strong Password CheckerMy Answer
437Path Sum IIIMy Answer
438Find All Anagrams in A StringMy Answer
440K Th Smallest in Lexicographical OrderMy Answer
442Find All Duplicates in An ArrayMy Answer
445Add Two Numbers IIMy Answer
448Find All Numbers Disappeared in An ArrayMy Answer
450Delete Node in A BstMy Answer
456132 PatternMy Answer
457Circular Array LoopMy Answer
460LFU CacheMy Answer
461Hamming DistanceMy Answer
462Minimum Moves to Equal Array Elements IIMy Answer
473Matchsticks to SquareMy Answer
476Number ComplementMy Answer
485Max Consecutive OnesMy Answer
486Predict the WinnerMy Answer
491Increasing SubsequencesMy Answer
492Construct the RectangleMy Answer
493Reverse PairsMy Answer
494Target SumMy Answer
500Keyboard RowMy Answer
520Detect CapitalMy Answer
523Continuous Subarray SumMy Answer
538Convert Bst to Greater TreeMy Answer
539Minimum Time DifferenceMy Answer
540Single Element in A Sorted ArrayMy Answer
543Diameter of Binary TreeMy Answer
547Friend CirclesMy Answer
554Brick WallMy Answer
557Reverse Words in A String IIIMy Answer
560Subarray Sum Equals KMy Answer
561Array Partition IMy Answer
563Binary Tree TiltMy Answer
564Find the Closest PalindromeMy Answer
566Reshape the MatrixMy Answer
567Permutation in StringMy Answer
572Subtree of Another TreeMy Answer
581Shortest Unsorted Continuous SubarrayMy Answer
593Valid SquareMy Answer
599Minimum Index Sum of Two ListsMy Answer
617Merge Two Binary TreesMy Answer
621Task SchedulerMy Answer
623Add One Row to TreeMy Answer
632Smallest RangeMy Answer
647Palindromic SubstringsMy Answer
649Dota2 SenateMy Answer
657Judge Route CircleMy Answer
658Find K Closest ElementsMy Answer
659Split Array Into Consecutive SubsequencesMy Answer
662Maximum Width of Binary TreeMy Answer
665Non Decreasing ArrayMy Answer
667Beautiful Arrangement IIMy Answer
670Maximum SwapMy Answer
673Number of Longest Increasing SubsequenceMy Answer
674Longest Continuous Increasing SubsequenceMy Answer
677Map Sum PairsMy Answer
684Redundant ConnectionMy Answer
688Knight Probability in ChessboardMy Answer
693Binary Number with Alternating BitsMy Answer
697Degree of An ArrayMy Answer
698Partition to K Equal Sum SubsetsMy Answer
714Best Time to Buy and Sell Stock with Transaction FeeMy Answer
7171 Bit and 2 Bit CharactersMy Answer
725Split Linked List in PartsMy Answer
754Reach A NumberMy Answer

About

Answers to the questions in leetcode

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Blog

雨过。天晴的博客

Progress

 Easy 93/249 ( 37.35 %) ████████████░░░░░░░░░░░░░░░░░░
Medium	147/433 ( 33.95 %) ███████████░░░░░░░░░░░░░░░░░░░
Hard 53/183 ( 28.96 %) █████████░░░░░░░░░░░░░░░░░░░░░
without locked
Easy 92/218 ( 42.20 %) █████████████░░░░░░░░░░░░░░░░░
Medium	147/344 ( 42.73 %) █████████████░░░░░░░░░░░░░░░░░
Hard 53/141 ( 37.59 %) ████████████░░░░░░░░░░░░░░░░░░
1 10
000 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
010 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣
020 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
030 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
040 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
050 ▣ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚ ▣
060 ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
070 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
080 ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚
090 ▣ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ▣
100 ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚
110 ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣
120 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
130 ▣ ▣ ⬚ ▣ ▣ ▣ ▣ ▤ ▣ ▣
140 ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ▣
150 ▣ ▣ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣
160 ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣ ⬚
170 ▣ ▣ ▣ ▣ ⬚ ▤ ⬚ ⬚ ▣ ⬚
180 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
190 ▣ ⬚ ⬚ ⬚ ▤ ⬚ ⬚ ▣ ⬚ ▣
200 ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣
210 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚
220 ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ⬚ ▣
230 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
240 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
250 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣
260 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
270 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
280 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
290 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ▣ ▣
300 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ▣
310 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚
320 ▣ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚
330 ⬚ ▤ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚
340 ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
350 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
360 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
370 ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣ ⬚ ▣
380 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
390 ▤ ▣ ⬚ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
400 ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚
410 ⬚ ▣ ▣ ▤ ⬚ ▣ ⬚ ⬚ ⬚ ▣
420 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
430 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣
440 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣
450 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣
460 ▣ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
470 ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
480 ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚
490 ▣ ▣ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣
500 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ 510 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣
520 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
530 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣
540 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ 550 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣
560 ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
570 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
580 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
590 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
600 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
610 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
620 ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
630 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
640 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚
650 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣ ⬚
660 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣
670 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
680 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
690 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚
700 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
710 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
720 ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚
730 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
740 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
750 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
760 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
770 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
780 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
790 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
800 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
810 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
820 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
830 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
840 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
850 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
860 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
870 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ Accepted ▤ Not Accepted ⬚ Remaining

Accecpted

序号题名解答
1Two SumMy Answer
2Add Two NumbersMy Answer
3Longest Substring without Repeating CharactersMy Answer
4Median of Two Sorted ArraysMy Answer
5Longest Palindromic SubstringMy Answer
6Zigzag ConversionMy Answer
7Reverse IntegerMy Answer
8String to Integer AtoiMy Answer
9Palindrome NumberMy Answer
10Regular Expression MatchingMy Answer
11Container with Most WaterMy Answer
11Container with Most WaterMy Answer
12Integer to RomanMy Answer
13Roman to IntegerMy Answer
14Longest Common PrefixMy Answer
153sumMy Answer
163sum ClosestMy Answer
17Letter Combinations of A Phone NumberMy Answer
19Remove Nth Node from End of ListMy Answer
20Valid ParenthesesMy Answer
21Merge Two Sorted ListsMy Answer
22Generate ParenthesesMy Answer
23Merge K Sorted ListsMy Answer
24Swap Nodes in PairsMy Answer
25Reverse Nodes in K GroupMy Answer
26Remove Duplicates from Sorted ArrayMy Answer
27Remove ElementMy Answer
28Implement StrstrMy Answer
29Divide Two IntegersMy Answer
30Substring with Concatenation of All WordsMy Answer
31Next PermutationMy Answer
32Longest Valid ParenthesesMy Answer
33Search in Rotated Sorted ArrayMy Answer
34Find First and Last Position of Element in Sorted ArrayMy Answer
34Search For A RangeMy Answer
35Search Insert PositionMy Answer
36Valid SudokuMy Answer
37Sudoku SolverMy Answer
38Count and SayMy Answer
39Combination SumMy Answer
40Combination Sum IIMy Answer
41First Missing PositiveMy Answer
42Trapping Rain WaterMy Answer
44Wildcard MatchingMy Answer
45Jump Game IIMy Answer
46PermutationsMy Answer
48Rotate ImageMy Answer
49Group AnagramsMy Answer
49Group AnagramsMy Answer
50Powx NMy Answer
51N QueensMy Answer
53Maximum SubarrayMy Answer
54Spiral MatrixMy Answer
55Jump GameMy Answer
56Merge IntervalsMy Answer
57Insert IntervalMy Answer
60Permutation SequenceMy Answer
61Rotate ListMy Answer
62Unique PathsMy Answer
63Unique Paths IIMy Answer
64Minimum Path SumMy Answer
65Valid NumberMy Answer
66Plus OneMy Answer
68Text JustificationMy Answer
69SqrtxMy Answer
70Climbing StairsMy Answer
72Edit DistanceMy Answer
73Set Matrix ZeroesMy Answer
74Search A 2d MatrixMy Answer
75Sort ColorsMy Answer
75Sort ColorsMy Answer
76Minimum Window SubstringMy Answer
77CombinationsMy Answer
78SubsetsMy Answer
79Word SearchMy Answer
80Remove Duplicates from Sorted Array IIMy Answer
83Remove Duplicates from Sorted ListMy Answer
84Largest Rectangle in HistogramMy Answer
85Maximal RectangleMy Answer
86Partition ListMy Answer
87Scramble StringMy Answer
88Merge Sorted ArrayMy Answer
89Gray CodeMy Answer
91Decode WaysMy Answer
94Binary Tree Inorder TraversalMy Answer
95Unique Binary Search Trees IIMy Answer
96Unique Binary Search TreesMy Answer
97Interleaving StringMy Answer
97Interleaving StringMy Answer
98Validate Binary Search TreeMy Answer
100Same TreeMy Answer
101Symmetric TreeMy Answer
102Binary Tree Level Order TraversalMy Answer
103Binary Tree Zigzag Level Order TraversalMy Answer
104Maximum Depth of Binary TreeMy Answer
105Construct Binary Tree from Preorder and Inorder TraversalMy Answer
107Binary Tree Level Order Traversal IIMy Answer
108Convert Sorted Array to Binary Search TreeMy Answer
112Path SumMy Answer
114Flatten Binary Tree to Linked ListMy Answer
116Populating Next Right Pointers in Each NodeMy Answer
118Pascals TriangleMy Answer
120TriangleMy Answer
121Best Time to Buy and Sell StockMy Answer
122Best Time to Buy and Sell Stock IIMy Answer
124Binary Tree Maximum Path SumMy Answer
125Valid PalindromeMy Answer
126Word Ladder IIMy Answer
128Longest Consecutive SequenceMy Answer
129Sum Root to Leaf NumbersMy Answer
130Surrounded RegionsMy Answer
131Palindrome PartitioningMy Answer
132Palindrome Partitioning IIMy Answer
134Gas StationMy Answer
135CandyMy Answer
136Single NumberMy Answer
137Single Number IIMy Answer
139Word BreakMy Answer
140Word Break IIMy Answer
141Linked List CycleMy Answer
142Linked List Cycle IIMy Answer
143Reorder ListMy Answer
145Binary Tree Postorder TraversalMy Answer
146Lru CacheMy Answer
148Sort ListMy Answer
149Max Points On A LineMy Answer
150Evaluate Reverse Polish NotationMy Answer
151Reverse Words in A StringMy Answer
152Maximum Product SubarrayMy Answer
153Find Minimum in Rotated Sorted ArrayMy Answer
155Min StackMy Answer
160Intersection of Two Linked ListsMy Answer
164Maximum GapMy Answer
166Fraction to Recurring DecimalMy Answer
169Majority ElementMy Answer
171Excel Sheet Column NumberMy Answer
172Factorial Trailing ZeroesMy Answer
173Binary Search Tree IteratorMy Answer
174Dungeon GameMy Answer
179Largest NumberMy Answer
187Repeated Dna SequencesMy Answer
190Reverse BitsMy Answer
191Number of 1 BitsMy Answer
198House RobberMy Answer
200Number of IslandsMy Answer
202Happy NumberMy Answer
206Reverse Linked ListMy Answer
207Course ScheduleMy Answer
208Implement Trie Prefix TreeMy Answer
209Minimum Size Subarray SumMy Answer
210Course Schedule IIMy Answer
212Word Search IIMy Answer
213House Robber IIMy Answer
214Shortest PalindromeMy Answer
215Kth Largest Element in An ArrayMy Answer
216Combination Sum IIIMy Answer
217Contains DuplicateMy Answer
218the Skyline ProblemMy Answer
221Maximal SquareMy Answer
225Implement Stack Using QueuesMy Answer
226Invert Binary TreeMy Answer
227Basic Calculator IIMy Answer
228Summary RangesMy Answer
230Kth Smallest Element in A BstMy Answer
231Power of TwoMy Answer
232Implement Queue Using StacksMy Answer
233Number of Digit OneMy Answer
234Palindrome Linked ListMy Answer
235Lowest Common Ancestor of A Binary Search TreeMy Answer
236Lowest Common Ancestor of A Binary TreeMy Answer
237Delete Node in A Linked ListMy Answer
238Product of Array Except SelfMy Answer
239Sliding Window MaximumMy Answer
240Search A 2d Matrix IIMy Answer
242Valid AnagramMy Answer
258Add DigitsMy Answer
260Single Number IIIMy Answer
263Ugly NumberMy Answer
268Missing NumberMy Answer
273Integer to English WordsMy Answer
274H IndexMy Answer
279Perfect SquaresMy Answer
283Move ZeroesMy Answer
287Find the Duplicate NumberMy Answer
290Word PatternMy Answer
292Nim GameMy Answer
295Find Median from Data StreamMy Answer
297Serialize and Deserialize Binary TreeMy Answer
299Bulls and CowsMy Answer
300Longest Increasing SubsequenceMy Answer
301Remove Invalid ParenthesesMy Answer
307Range Sum Query MutableMy Answer
309Best Time to Buy and Sell Stock with CooldownMy Answer
310Minimum Height TreesMy Answer
312Burst BalloonsMy Answer
315Count of Smaller Numbers After SelfMy Answer
319Bulb SwitcherMy Answer
321Create Maximum NumberMy Answer
322Coin ChangeMy Answer
326Power of ThreeMy Answer
329Longest Increasing Path in A MatrixMy Answer
335Self CrossingMy Answer
336Palindrome PairsMy Answer
337House Robber IIIMy Answer
338Counting BitsMy Answer
339Nested List Weight SumMy Answer
341Flatten Nested List IteratorMy Answer
344Reverse StringMy Answer
347Top K Frequent ElementsMy Answer
349Intersection of Two ArraysMy Answer
350Intersection of Two Arrays IIMy Answer
367Valid Perfect SquareMy Answer
371Sum of Two IntegersMy Answer
375Guess Number Higher Or Lower IIMy Answer
376Wiggle SubsequenceMy Answer
378Kth Smallest Element in A Sorted MatrixMy Answer
380Insert Delete Getrandom O1My Answer
383Ransom NoteMy Answer
384Shuffle An ArrayMy Answer
387First Unique Character in A StringMy Answer
389Find the DifferenceMy Answer
390Elimination GameMy Answer
392Is SubsequenceMy Answer
394Decode StringMy Answer
396Rotate FunctionMy Answer
397Integer ReplacementMy Answer
401Binary WatchMy Answer
404Sum of Left LeavesMy Answer
406Queue Reconstruction by HeightMy Answer
412Fizz BuzzMy Answer
413Arithmetic SlicesMy Answer
416Partition Equal Subset SumMy Answer
420Strong Password CheckerMy Answer
437Path Sum IIIMy Answer
438Find All Anagrams in A StringMy Answer
440K Th Smallest in Lexicographical OrderMy Answer
442Find All Duplicates in An ArrayMy Answer
445Add Two Numbers IIMy Answer
448Find All Numbers Disappeared in An ArrayMy Answer
450Delete Node in A BstMy Answer
456132 PatternMy Answer
457Circular Array LoopMy Answer
460LFU CacheMy Answer
461Hamming DistanceMy Answer
462Minimum Moves to Equal Array Elements IIMy Answer
473Matchsticks to SquareMy Answer
476Number ComplementMy Answer
485Max Consecutive OnesMy Answer
486Predict the WinnerMy Answer
491Increasing SubsequencesMy Answer
492Construct the RectangleMy Answer
493Reverse PairsMy Answer
494Target SumMy Answer
500Keyboard RowMy Answer
520Detect CapitalMy Answer
523Continuous Subarray SumMy Answer
538Convert Bst to Greater TreeMy Answer
539Minimum Time DifferenceMy Answer
540Single Element in A Sorted ArrayMy Answer
543Diameter of Binary TreeMy Answer
547Friend CirclesMy Answer
554Brick WallMy Answer
557Reverse Words in A String IIIMy Answer
560Subarray Sum Equals KMy Answer
561Array Partition IMy Answer
563Binary Tree TiltMy Answer
564Find the Closest PalindromeMy Answer
566Reshape the MatrixMy Answer
567Permutation in StringMy Answer
572Subtree of Another TreeMy Answer
581Shortest Unsorted Continuous SubarrayMy Answer
593Valid SquareMy Answer
599Minimum Index Sum of Two ListsMy Answer
617Merge Two Binary TreesMy Answer
621Task SchedulerMy Answer
623Add One Row to TreeMy Answer
632Smallest RangeMy Answer
647Palindromic SubstringsMy Answer
649Dota2 SenateMy Answer
657Judge Route CircleMy Answer
658Find K Closest ElementsMy Answer
659Split Array Into Consecutive SubsequencesMy Answer
662Maximum Width of Binary TreeMy Answer
665Non Decreasing ArrayMy Answer
667Beautiful Arrangement IIMy Answer
670Maximum SwapMy Answer
673Number of Longest Increasing SubsequenceMy Answer
674Longest Continuous Increasing SubsequenceMy Answer
677Map Sum PairsMy Answer
684Redundant ConnectionMy Answer
688Knight Probability in ChessboardMy Answer
693Binary Number with Alternating BitsMy Answer
697Degree of An ArrayMy Answer
698Partition to K Equal Sum SubsetsMy Answer
714Best Time to Buy and Sell Stock with Transaction FeeMy Answer
7171 Bit and 2 Bit CharactersMy Answer
725Split Linked List in PartsMy Answer
754Reach A NumberMy Answer

About

Answers to the questions in leetcode

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Latest commit

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Blog

雨过。天晴的博客

Progress

 Easy 93/249 ( 37.35 %) ████████████░░░░░░░░░░░░░░░░░░
Medium	147/433 ( 33.95 %) ███████████░░░░░░░░░░░░░░░░░░░
Hard 53/183 ( 28.96 %) █████████░░░░░░░░░░░░░░░░░░░░░
without locked
Easy 92/218 ( 42.20 %) █████████████░░░░░░░░░░░░░░░░░
Medium	147/344 ( 42.73 %) █████████████░░░░░░░░░░░░░░░░░
Hard 53/141 ( 37.59 %) ████████████░░░░░░░░░░░░░░░░░░
1 10
000 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
010 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣
020 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
030 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
040 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
050 ▣ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚ ▣
060 ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
070 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
080 ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚
090 ▣ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚ ▣
100 ▣ ▣ ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚
110 ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣ ⬚ ▣
120 ▣ ▣ ⬚ ▣ ▣ ▣ ⬚ ▣ ▣ ▣
130 ▣ ▣ ⬚ ▣ ▣ ▣ ▣ ▤ ▣ ▣
140 ▣ ▣ ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ▣
150 ▣ ▣ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣
160 ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣ ⬚
170 ▣ ▣ ▣ ▣ ⬚ ▤ ⬚ ⬚ ▣ ⬚
180 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
190 ▣ ⬚ ⬚ ⬚ ▤ ⬚ ⬚ ▣ ⬚ ▣
200 ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣
210 ⬚ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ⬚ ⬚
220 ▣ ⬚ ⬚ ⬚ ▣ ▣ ▣ ▣ ⬚ ▣
230 ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣ ▣
240 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
250 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣
260 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
270 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
280 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣
290 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ▣ ▣
300 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ▣
310 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚
320 ▣ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚
330 ⬚ ▤ ⬚ ⬚ ▣ ▣ ▣ ▣ ▣ ⬚
340 ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
350 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
360 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
370 ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣ ⬚ ▣
380 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ▣ ▣
390 ▤ ▣ ⬚ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
400 ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚
410 ⬚ ▣ ▣ ▤ ⬚ ▣ ⬚ ⬚ ⬚ ▣
420 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
430 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ▣
440 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣
450 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣
460 ▣ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
470 ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
480 ⬚ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚ ⬚ ⬚
490 ▣ ▣ ▣ ▣ ⬚ ⬚ ⬚ ⬚ ▣
500 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ 510 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣
520 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
530 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣
540 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ 550 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ▣
560 ▣ ⬚ ▣ ▣ ⬚ ▣ ▣ ⬚ ⬚ ⬚
570 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
580 ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
590 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚
600 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
610 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
620 ▣ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
630 ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
640 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ▣ ⬚
650 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ▣ ▣ ▣ ⬚
660 ⬚ ▣ ⬚ ⬚ ▣ ⬚ ▣ ⬚ ⬚ ▣
670 ⬚ ⬚ ▣ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
680 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ⬚ ⬚
690 ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ▣ ▣ ⬚ ⬚
700 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
710 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ▣ ⬚ ⬚ ⬚
720 ⬚ ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚
730 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
740 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
750 ⬚ ⬚ ⬚ ▣ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
760 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
770 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
780 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
790 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
800 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
810 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
820 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
830 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
840 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
850 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
860 ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚ ⬚
870 ⬚ ⬚ ⬚ ⬚ ⬚ ▣ Accepted ▤ Not Accepted ⬚ Remaining

Accecpted

序号题名解答
1Two SumMy Answer
2Add Two NumbersMy Answer
3Longest Substring without Repeating CharactersMy Answer
4Median of Two Sorted ArraysMy Answer
5Longest Palindromic SubstringMy Answer
6Zigzag ConversionMy Answer
7Reverse IntegerMy Answer
8String to Integer AtoiMy Answer
9Palindrome NumberMy Answer
10Regular Expression MatchingMy Answer
11Container with Most WaterMy Answer
11Container with Most WaterMy Answer
12Integer to RomanMy Answer
13Roman to IntegerMy Answer
14Longest Common PrefixMy Answer
153sumMy Answer
163sum ClosestMy Answer
17Letter Combinations of A Phone NumberMy Answer
19Remove Nth Node from End of ListMy Answer
20Valid ParenthesesMy Answer
21Merge Two Sorted ListsMy Answer
22Generate ParenthesesMy Answer
23Merge K Sorted ListsMy Answer
24Swap Nodes in PairsMy Answer
25Reverse Nodes in K GroupMy Answer
26Remove Duplicates from Sorted ArrayMy Answer
27Remove ElementMy Answer
28Implement StrstrMy Answer
29Divide Two IntegersMy Answer
30Substring with Concatenation of All WordsMy Answer
31Next PermutationMy Answer
32Longest Valid ParenthesesMy Answer
33Search in Rotated Sorted ArrayMy Answer
34Find First and Last Position of Element in Sorted ArrayMy Answer
34Search For A RangeMy Answer
35Search Insert PositionMy Answer
36Valid SudokuMy Answer
37Sudoku SolverMy Answer
38Count and SayMy Answer
39Combination SumMy Answer
40Combination Sum IIMy Answer
41First Missing PositiveMy Answer
42Trapping Rain WaterMy Answer
44Wildcard MatchingMy Answer
45Jump Game IIMy Answer
46PermutationsMy Answer
48Rotate ImageMy Answer
49Group AnagramsMy Answer
49Group AnagramsMy Answer
50Powx NMy Answer
51N QueensMy Answer
53Maximum SubarrayMy Answer
54Spiral MatrixMy Answer
55Jump GameMy Answer
56Merge IntervalsMy Answer
57Insert IntervalMy Answer
60Permutation SequenceMy Answer
61Rotate ListMy Answer
62Unique PathsMy Answer
63Unique Paths IIMy Answer
64Minimum Path SumMy Answer
65Valid NumberMy Answer
66Plus OneMy Answer
68Text JustificationMy Answer
69SqrtxMy Answer
70Climbing StairsMy Answer
72Edit DistanceMy Answer
73Set Matrix ZeroesMy Answer
74Search A 2d MatrixMy Answer
75Sort ColorsMy Answer
75Sort ColorsMy Answer
76Minimum Window SubstringMy Answer
77CombinationsMy Answer
78SubsetsMy Answer
79Word SearchMy Answer
80Remove Duplicates from Sorted Array IIMy Answer
83Remove Duplicates from Sorted ListMy Answer
84Largest Rectangle in HistogramMy Answer
85Maximal RectangleMy Answer
86Partition ListMy Answer
87Scramble StringMy Answer
88Merge Sorted ArrayMy Answer
89Gray CodeMy Answer
91Decode WaysMy Answer
94Binary Tree Inorder TraversalMy Answer
95Unique Binary Search Trees IIMy Answer
96Unique Binary Search TreesMy Answer
97Interleaving StringMy Answer
97Interleaving StringMy Answer
98Validate Binary Search TreeMy Answer
100Same TreeMy Answer
101Symmetric TreeMy Answer
102Binary Tree Level Order TraversalMy Answer
103Binary Tree Zigzag Level Order TraversalMy Answer
104Maximum Depth of Binary TreeMy Answer
105Construct Binary Tree from Preorder and Inorder TraversalMy Answer
107Binary Tree Level Order Traversal IIMy Answer
108Convert Sorted Array to Binary Search TreeMy Answer
112Path SumMy Answer
114Flatten Binary Tree to Linked ListMy Answer
116Populating Next Right Pointers in Each NodeMy Answer
118Pascals TriangleMy Answer
120TriangleMy Answer
121Best Time to Buy and Sell StockMy Answer
122Best Time to Buy and Sell Stock IIMy Answer
124Binary Tree Maximum Path SumMy Answer
125Valid PalindromeMy Answer
126Word Ladder IIMy Answer
128Longest Consecutive SequenceMy Answer
129Sum Root to Leaf NumbersMy Answer
130Surrounded RegionsMy Answer
131Palindrome PartitioningMy Answer
132Palindrome Partitioning IIMy Answer
134Gas StationMy Answer
135CandyMy Answer
136Single NumberMy Answer
137Single Number IIMy Answer
139Word BreakMy Answer
140Word Break IIMy Answer
141Linked List CycleMy Answer
142Linked List Cycle IIMy Answer
143Reorder ListMy Answer
145Binary Tree Postorder TraversalMy Answer
146Lru CacheMy Answer
148Sort ListMy Answer
149Max Points On A LineMy Answer
150Evaluate Reverse Polish NotationMy Answer
151Reverse Words in A StringMy Answer
152Maximum Product SubarrayMy Answer
153Find Minimum in Rotated Sorted ArrayMy Answer
155Min StackMy Answer
160Intersection of Two Linked ListsMy Answer
164Maximum GapMy Answer
166Fraction to Recurring DecimalMy Answer
169Majority ElementMy Answer
171Excel Sheet Column NumberMy Answer
172Factorial Trailing ZeroesMy Answer
173Binary Search Tree IteratorMy Answer
174Dungeon GameMy Answer
179Largest NumberMy Answer
187Repeated Dna SequencesMy Answer
190Reverse BitsMy Answer
191Number of 1 BitsMy Answer
198House RobberMy Answer
200Number of IslandsMy Answer
202Happy NumberMy Answer
206Reverse Linked ListMy Answer
207Course ScheduleMy Answer
208Implement Trie Prefix TreeMy Answer
209Minimum Size Subarray SumMy Answer
210Course Schedule IIMy Answer
212Word Search IIMy Answer
213House Robber IIMy Answer
214Shortest PalindromeMy Answer
215Kth Largest Element in An ArrayMy Answer
216Combination Sum IIIMy Answer
217Contains DuplicateMy Answer
218the Skyline ProblemMy Answer
221Maximal SquareMy Answer
225Implement Stack Using QueuesMy Answer
226Invert Binary TreeMy Answer
227Basic Calculator IIMy Answer
228Summary RangesMy Answer
230Kth Smallest Element in A BstMy Answer
231Power of TwoMy Answer
232Implement Queue Using StacksMy Answer
233Number of Digit OneMy Answer
234Palindrome Linked ListMy Answer
235Lowest Common Ancestor of A Binary Search TreeMy Answer
236Lowest Common Ancestor of A Binary TreeMy Answer
237Delete Node in A Linked ListMy Answer
238Product of Array Except SelfMy Answer
239Sliding Window MaximumMy Answer
240Search A 2d Matrix IIMy Answer
242Valid AnagramMy Answer
258Add DigitsMy Answer
260Single Number IIIMy Answer
263Ugly NumberMy Answer
268Missing NumberMy Answer
273Integer to English WordsMy Answer
274H IndexMy Answer
279Perfect SquaresMy Answer
283Move ZeroesMy Answer
287Find the Duplicate NumberMy Answer
290Word PatternMy Answer
292Nim GameMy Answer
295Find Median from Data StreamMy Answer
297Serialize and Deserialize Binary TreeMy Answer
299Bulls and CowsMy Answer
300Longest Increasing SubsequenceMy Answer
301Remove Invalid ParenthesesMy Answer
307Range Sum Query MutableMy Answer
309Best Time to Buy and Sell Stock with CooldownMy Answer
310Minimum Height TreesMy Answer
312Burst BalloonsMy Answer
315Count of Smaller Numbers After SelfMy Answer
319Bulb SwitcherMy Answer
321Create Maximum NumberMy Answer
322Coin ChangeMy Answer
326Power of ThreeMy Answer
329Longest Increasing Path in A MatrixMy Answer
335Self CrossingMy Answer
336Palindrome PairsMy Answer
337House Robber IIIMy Answer
338Counting BitsMy Answer
339Nested List Weight SumMy Answer
341Flatten Nested List IteratorMy Answer
344Reverse StringMy Answer
347Top K Frequent ElementsMy Answer
349Intersection of Two ArraysMy Answer
350Intersection of Two Arrays IIMy Answer
367Valid Perfect SquareMy Answer
371Sum of Two IntegersMy Answer
375Guess Number Higher Or Lower IIMy Answer
376Wiggle SubsequenceMy Answer
378Kth Smallest Element in A Sorted MatrixMy Answer
380Insert Delete Getrandom O1My Answer
383Ransom NoteMy Answer
384Shuffle An ArrayMy Answer
387First Unique Character in A StringMy Answer
389Find the DifferenceMy Answer
390Elimination GameMy Answer
392Is SubsequenceMy Answer
394Decode StringMy Answer
396Rotate FunctionMy Answer
397Integer ReplacementMy Answer
401Binary WatchMy Answer
404Sum of Left LeavesMy Answer
406Queue Reconstruction by HeightMy Answer
412Fizz BuzzMy Answer
413Arithmetic SlicesMy Answer
416Partition Equal Subset SumMy Answer
420Strong Password CheckerMy Answer
437Path Sum IIIMy Answer
438Find All Anagrams in A StringMy Answer
440K Th Smallest in Lexicographical OrderMy Answer
442Find All Duplicates in An ArrayMy Answer
445Add Two Numbers IIMy Answer
448Find All Numbers Disappeared in An ArrayMy Answer
450Delete Node in A BstMy Answer
456132 PatternMy Answer
457Circular Array LoopMy Answer
460LFU CacheMy Answer
461Hamming DistanceMy Answer
462Minimum Moves to Equal Array Elements IIMy Answer
473Matchsticks to SquareMy Answer
476Number ComplementMy Answer
485Max Consecutive OnesMy Answer
486Predict the WinnerMy Answer
491Increasing SubsequencesMy Answer
492Construct the RectangleMy Answer
493Reverse PairsMy Answer
494Target SumMy Answer
500Keyboard RowMy Answer
520Detect CapitalMy Answer
523Continuous Subarray SumMy Answer
538Convert Bst to Greater TreeMy Answer
539Minimum Time DifferenceMy Answer
540Single Element in A Sorted ArrayMy Answer
543Diameter of Binary TreeMy Answer
547Friend CirclesMy Answer
554Brick WallMy Answer
557Reverse Words in A String IIIMy Answer
560Subarray Sum Equals KMy Answer
561Array Partition IMy Answer
563Binary Tree TiltMy Answer
564Find the Closest PalindromeMy Answer
566Reshape the MatrixMy Answer
567Permutation in StringMy Answer
572Subtree of Another TreeMy Answer
581Shortest Unsorted Continuous SubarrayMy Answer
593Valid SquareMy Answer
599Minimum Index Sum of Two ListsMy Answer
617Merge Two Binary TreesMy Answer
621Task SchedulerMy Answer
623Add One Row to TreeMy Answer
632Smallest RangeMy Answer
647Palindromic SubstringsMy Answer
649Dota2 SenateMy Answer
657Judge Route CircleMy Answer
658Find K Closest ElementsMy Answer
659Split Array Into Consecutive SubsequencesMy Answer
662Maximum Width of Binary TreeMy Answer
665Non Decreasing ArrayMy Answer
667Beautiful Arrangement IIMy Answer
670Maximum SwapMy Answer
673Number of Longest Increasing SubsequenceMy Answer
674Longest Continuous Increasing SubsequenceMy Answer
677Map Sum PairsMy Answer
684Redundant ConnectionMy Answer
688Knight Probability in ChessboardMy Answer
693Binary Number with Alternating BitsMy Answer
697Degree of An ArrayMy Answer
698Partition to K Equal Sum SubsetsMy Answer
714Best Time to Buy and Sell Stock with Transaction FeeMy Answer
7171 Bit and 2 Bit CharactersMy Answer
725Split Linked List in PartsMy Answer
754Reach A NumberMy Answer

About

Answers to the questions in leetcode

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages