Skip to content

KKRainbow/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

序号 题名 解答
1 Two Sum My Answer
2 Add Two Numbers My Answer
3 Longest Substring without Repeating Characters My Answer
4 Median of Two Sorted Arrays My Answer
5 Longest Palindromic Substring My Answer
6 Zigzag Conversion My Answer
7 Reverse Integer My Answer
8 String to Integer Atoi My Answer
9 Palindrome Number My Answer
10 Regular Expression Matching My Answer
11 Container with Most Water My Answer
11 Container with Most Water My Answer
12 Integer to Roman My Answer
13 Roman to Integer My Answer
14 Longest Common Prefix My Answer
15 3sum My Answer
16 3sum Closest My Answer
17 Letter Combinations of A Phone Number My Answer
19 Remove Nth Node from End of List My Answer
20 Valid Parentheses My Answer
21 Merge Two Sorted Lists My Answer
22 Generate Parentheses My Answer
23 Merge K Sorted Lists My Answer
24 Swap Nodes in Pairs My Answer
25 Reverse Nodes in K Group My Answer
26 Remove Duplicates from Sorted Array My Answer
27 Remove Element My Answer
28 Implement Strstr My Answer
29 Divide Two Integers My Answer
30 Substring with Concatenation of All Words My Answer
31 Next Permutation My Answer
32 Longest Valid Parentheses My Answer
33 Search in Rotated Sorted Array My Answer
34 Find First and Last Position of Element in Sorted Array My Answer
34 Search For A Range My Answer
35 Search Insert Position My Answer
36 Valid Sudoku My Answer
37 Sudoku Solver My Answer
38 Count and Say My Answer
39 Combination Sum My Answer
40 Combination Sum II My Answer
41 First Missing Positive My Answer
42 Trapping Rain Water My Answer
44 Wildcard Matching My Answer
45 Jump Game II My Answer
46 Permutations My Answer
48 Rotate Image My Answer
49 Group Anagrams My Answer
49 Group Anagrams My Answer
50 Powx N My Answer
51 N Queens My Answer
53 Maximum Subarray My Answer
54 Spiral Matrix My Answer
55 Jump Game My Answer
56 Merge Intervals My Answer
57 Insert Interval My Answer
60 Permutation Sequence My Answer
61 Rotate List My Answer
62 Unique Paths My Answer
63 Unique Paths II My Answer
64 Minimum Path Sum My Answer
65 Valid Number My Answer
66 Plus One My Answer
68 Text Justification My Answer
69 Sqrtx My Answer
70 Climbing Stairs My Answer
72 Edit Distance My Answer
73 Set Matrix Zeroes My Answer
74 Search A 2d Matrix My Answer
75 Sort Colors My Answer
75 Sort Colors My Answer
76 Minimum Window Substring My Answer
77 Combinations My Answer
78 Subsets My Answer
79 Word Search My Answer
80 Remove Duplicates from Sorted Array II My Answer
83 Remove Duplicates from Sorted List My Answer
84 Largest Rectangle in Histogram My Answer
85 Maximal Rectangle My Answer
86 Partition List My Answer
87 Scramble String My Answer
88 Merge Sorted Array My Answer
89 Gray Code My Answer
91 Decode Ways My Answer
94 Binary Tree Inorder Traversal My Answer
95 Unique Binary Search Trees II My Answer
96 Unique Binary Search Trees My Answer
97 Interleaving String My Answer
97 Interleaving String My Answer
98 Validate Binary Search Tree My Answer
100 Same Tree My Answer
101 Symmetric Tree My Answer
102 Binary Tree Level Order Traversal My Answer
103 Binary Tree Zigzag Level Order Traversal My Answer
104 Maximum Depth of Binary Tree My Answer
105 Construct Binary Tree from Preorder and Inorder Traversal My Answer
107 Binary Tree Level Order Traversal II My Answer
108 Convert Sorted Array to Binary Search Tree My Answer
112 Path Sum My Answer
114 Flatten Binary Tree to Linked List My Answer
116 Populating Next Right Pointers in Each Node My Answer
118 Pascals Triangle My Answer
120 Triangle My Answer
121 Best Time to Buy and Sell Stock My Answer
122 Best Time to Buy and Sell Stock II My Answer
124 Binary Tree Maximum Path Sum My Answer
125 Valid Palindrome My Answer
126 Word Ladder II My Answer
128 Longest Consecutive Sequence My Answer
129 Sum Root to Leaf Numbers My Answer
130 Surrounded Regions My Answer
131 Palindrome Partitioning My Answer
132 Palindrome Partitioning II My Answer
134 Gas Station My Answer
135 Candy My Answer
136 Single Number My Answer
137 Single Number II My Answer
139 Word Break My Answer
140 Word Break II My Answer
141 Linked List Cycle My Answer
142 Linked List Cycle II My Answer
143 Reorder List My Answer
145 Binary Tree Postorder Traversal My Answer
146 Lru Cache My Answer
148 Sort List My Answer
149 Max Points On A Line My Answer
150 Evaluate Reverse Polish Notation My Answer
151 Reverse Words in A String My Answer
152 Maximum Product Subarray My Answer
153 Find Minimum in Rotated Sorted Array My Answer
155 Min Stack My Answer
160 Intersection of Two Linked Lists My Answer
164 Maximum Gap My Answer
166 Fraction to Recurring Decimal My Answer
169 Majority Element My Answer
171 Excel Sheet Column Number My Answer
172 Factorial Trailing Zeroes My Answer
173 Binary Search Tree Iterator My Answer
174 Dungeon Game My Answer
179 Largest Number My Answer
187 Repeated Dna Sequences My Answer
190 Reverse Bits My Answer
191 Number of 1 Bits My Answer
198 House Robber My Answer
200 Number of Islands My Answer
202 Happy Number My Answer
206 Reverse Linked List My Answer
207 Course Schedule My Answer
208 Implement Trie Prefix Tree My Answer
209 Minimum Size Subarray Sum My Answer
210 Course Schedule II My Answer
212 Word Search II My Answer
213 House Robber II My Answer
214 Shortest Palindrome My Answer
215 Kth Largest Element in An Array My Answer
216 Combination Sum III My Answer
217 Contains Duplicate My Answer
218 the Skyline Problem My Answer
221 Maximal Square My Answer
225 Implement Stack Using Queues My Answer
226 Invert Binary Tree My Answer
227 Basic Calculator II My Answer
228 Summary Ranges My Answer
230 Kth Smallest Element in A Bst My Answer
231 Power of Two My Answer
232 Implement Queue Using Stacks My Answer
233 Number of Digit One My Answer
234 Palindrome Linked List My Answer
235 Lowest Common Ancestor of A Binary Search Tree My Answer
236 Lowest Common Ancestor of A Binary Tree My Answer
237 Delete Node in A Linked List My Answer
238 Product of Array Except Self My Answer
239 Sliding Window Maximum My Answer
240 Search A 2d Matrix II My Answer
242 Valid Anagram My Answer
258 Add Digits My Answer
260 Single Number III My Answer
263 Ugly Number My Answer
268 Missing Number My Answer
273 Integer to English Words My Answer
274 H Index My Answer
279 Perfect Squares My Answer
283 Move Zeroes My Answer
287 Find the Duplicate Number My Answer
290 Word Pattern My Answer
292 Nim Game My Answer
295 Find Median from Data Stream My Answer
297 Serialize and Deserialize Binary Tree My Answer
299 Bulls and Cows My Answer
300 Longest Increasing Subsequence My Answer
301 Remove Invalid Parentheses My Answer
307 Range Sum Query Mutable My Answer
309 Best Time to Buy and Sell Stock with Cooldown My Answer
310 Minimum Height Trees My Answer
312 Burst Balloons My Answer
315 Count of Smaller Numbers After Self My Answer
319 Bulb Switcher My Answer
321 Create Maximum Number My Answer
322 Coin Change My Answer
326 Power of Three My Answer
329 Longest Increasing Path in A Matrix My Answer
335 Self Crossing My Answer
336 Palindrome Pairs My Answer
337 House Robber III My Answer
338 Counting Bits My Answer
339 Nested List Weight Sum My Answer
341 Flatten Nested List Iterator My Answer
344 Reverse String My Answer
347 Top K Frequent Elements My Answer
349 Intersection of Two Arrays My Answer
350 Intersection of Two Arrays II My Answer
367 Valid Perfect Square My Answer
371 Sum of Two Integers My Answer
375 Guess Number Higher Or Lower II My Answer
376 Wiggle Subsequence My Answer
378 Kth Smallest Element in A Sorted Matrix My Answer
380 Insert Delete Getrandom O1 My Answer
383 Ransom Note My Answer
384 Shuffle An Array My Answer
387 First Unique Character in A String My Answer
389 Find the Difference My Answer
390 Elimination Game My Answer
392 Is Subsequence My Answer
394 Decode String My Answer
396 Rotate Function My Answer
397 Integer Replacement My Answer
401 Binary Watch My Answer
404 Sum of Left Leaves My Answer
406 Queue Reconstruction by Height My Answer
412 Fizz Buzz My Answer
413 Arithmetic Slices My Answer
416 Partition Equal Subset Sum My Answer
420 Strong Password Checker My Answer
437 Path Sum III My Answer
438 Find All Anagrams in A String My Answer
440 K Th Smallest in Lexicographical Order My Answer
442 Find All Duplicates in An Array My Answer
445 Add Two Numbers II My Answer
448 Find All Numbers Disappeared in An Array My Answer
450 Delete Node in A Bst My Answer
456 132 Pattern My Answer
457 Circular Array Loop My Answer
460 LFU Cache My Answer
461 Hamming Distance My Answer
462 Minimum Moves to Equal Array Elements II My Answer
473 Matchsticks to Square My Answer
476 Number Complement My Answer
485 Max Consecutive Ones My Answer
486 Predict the Winner My Answer
491 Increasing Subsequences My Answer
492 Construct the Rectangle My Answer
493 Reverse Pairs My Answer
494 Target Sum My Answer
500 Keyboard Row My Answer
520 Detect Capital My Answer
523 Continuous Subarray Sum My Answer
538 Convert Bst to Greater Tree My Answer
539 Minimum Time Difference My Answer
540 Single Element in A Sorted Array My Answer
543 Diameter of Binary Tree My Answer
547 Friend Circles My Answer
554 Brick Wall My Answer
557 Reverse Words in A String III My Answer
560 Subarray Sum Equals K My Answer
561 Array Partition I My Answer
563 Binary Tree Tilt My Answer
564 Find the Closest Palindrome My Answer
566 Reshape the Matrix My Answer
567 Permutation in String My Answer
572 Subtree of Another Tree My Answer
581 Shortest Unsorted Continuous Subarray My Answer
593 Valid Square My Answer
599 Minimum Index Sum of Two Lists My Answer
617 Merge Two Binary Trees My Answer
621 Task Scheduler My Answer
623 Add One Row to Tree My Answer
632 Smallest Range My Answer
647 Palindromic Substrings My Answer
649 Dota2 Senate My Answer
657 Judge Route Circle My Answer
658 Find K Closest Elements My Answer
659 Split Array Into Consecutive Subsequences My Answer
662 Maximum Width of Binary Tree My Answer
665 Non Decreasing Array My Answer
667 Beautiful Arrangement II My Answer
670 Maximum Swap My Answer
673 Number of Longest Increasing Subsequence My Answer
674 Longest Continuous Increasing Subsequence My Answer
677 Map Sum Pairs My Answer
684 Redundant Connection My Answer
688 Knight Probability in Chessboard My Answer
693 Binary Number with Alternating Bits My Answer
697 Degree of An Array My Answer
698 Partition to K Equal Sum Subsets My Answer
714 Best Time to Buy and Sell Stock with Transaction Fee My Answer
717 1 Bit and 2 Bit Characters My Answer
725 Split Linked List in Parts My Answer
754 Reach A Number My Answer

About

Answers to the questions in leetcode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages