Skip to content

swiftwind0405/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

LeetCode

LeetCode Algorithm

# Title Solution Difficulty
1929 Concatenation of Array js Easy
1920 Concatenation of Array js Easy
1464 Maximum Product of Two Elements in An Array java java_dream Easy
1207 Unique Number of Occurrences java_dream Easy
1179 Reformat Department Table Mysql Easy
1170 Compare Strings by Frequency of the Smallest Character java_dream Easy
1137 N-th Tribonacci Number js Easy
1071 Greatest Common Divisor of Strings Easy
1030 Matrix Cells in Distance Order Easy
1029 Two City Scheduling Easy
1028 Recover a Tree From Preorder Traversal Hard
1024 Video Stitching Medium
993 Cousins in Binary Tree java Easy
991 Broken Calculator Medium
990 Satisfiability of Equality Equations Medium
989 Add to Array-Form of Integer java_dream Easy
988 Smallest String Starting From Leaf Medium
987 Vertical Order Traversal of a Binary Tree Medium
986 Interval List Intersections Medium
985 Sum of Even Numbers After Queries Easy
984 String Without AAA or BBB java_dream Easy
983 Minimum Cost For Tickets Medium
982 Triples with Bitwise AND Equal To Zero Hard
981 Time Based Key-Value Store Medium
980 Unique Paths III Hard
979 Distribute Coins in Binary Tree Medium
978 Longest Turbulent Subarray Medium
977 Squares of a Sorted Array java_dream Easy
976 Largest Perimeter Triangle Easy
971 Flip Binary Tree To Match Preorder Traversal Medium
969 Pancake Sorting Medium
965 Univalued Binary Tree Java Easy
961 N-Repeated element in size 2N Array Easy
958 Check Completeness of a Binary Tree Medium
951 Flip Equivalent Binary Trees Medium
950 Reveal Cards In Increasing Order Medium
941 Valid Mountain Array Easy
933 Number of Recent Calls js Easy
931 Minimum Falling Path Sum Medium
929 Unique Email Addresses Easy
922 Sort Array By Parity II Easy
914 X of a Kind in a Deck of Cards Easy
905 Sort Array By Parity Easy
876 Middle of the Linked List js Easy
859 Buddy Strings Easy
858 Mirror Reflection Medium
852 Peak Index in a Mountain Array Easy
849 Maximize Distance to Closest Person Easy
844 Backspace String Compare Easy
837 Most Common Word Easy
830 Positions of Large Groups Easy
804 Unique Morse Code Words Easy
771 Jewels and Stones Easy
747 Largest Number At Least Twice of Others Easy
746 Min Cost Climbing Stairs Java_dream Easy
721 Accounts Merge Medium
717 1-bit and 2-bit Characters Easy
714 Best Time to Buy and Sell Stock with Transaction Fee Medium
712 Minimum ASCII Sum for Two Strings Medium
709 To Lower Case js
704 Binary Search Java
701 Insert Into A Binary Search Tree Java
700 Search In A Binary Search Tree Java
695 Max Area of Island Medium
687 Longest Univalue Path Easy
684 Redundant Connection Medium
674 Longest Continuous Increasing Subsequence Easy
671 Second Minimum Node In a Binary Tree Easy
665 Non-decreasing Array Java_dream Easy
662 Maximum Width of Binary Tree Medium
661 Image Smoother Easy
655 Print Binary Tree Medium
652 Find Duplicate Subtrees Medium
647 Palindromic Substrings Medium
643 Maximum Average Subarray I Java_dream Easy
628 Maximum Product of Three Numbers Easy
627 Swap Salary Mysql
626 Exchange Seats Mysql
623 Add One Row to Tree Medium
620 Not Boring Movies Mysql Easy
617 Merge Two Binary Trees Java Easy
595 Big Countries Mysql Easy
581 Shortest Unsorted Continuous Subarray Java_dream Easy
575 Distrubute Candies java Easy
572 Subtree of Another Tree Easy
563 Binary Tree Tilt java Easy
547 Friend Circles Medium
543 Diameter of Binary Tree Easy
538 Convert BST to Greater Tree Easy
532 K-diff Pairs in an Array Easy
520 Detect Capital Easy
518 Coin Change 2 Medium
509 Fibonacci Number java Easy
501 Find Mode In Binary Search Tree java Easy
477 Total Hamming Distance Medium
463 Island Perimeter Easy
455 Assign Cookies js Medium
450 NodeInABST Medium
449 Serialize and Deserialize BST Medium
438 Find all Anagrams in a string Medium
437 Path Sum III Medium
418 SentenceScreenFitting Easy
417 Pacific Atlantic Water Flow js Medium
416 Partition Equal Subset Sum Medium
415 Add Strings Easy
414 Third Maximum Number Easy
413 Arithmetic Slices Medium
412 Fizz Buzz Easy
410 Split Array Largest Sum Hard
409 Longest Palindrome Easy
406 Queue Reconstruction by Height Medium
405 Convert a Number to Hexadecimal Easy
404 Sum of Left Leaves Easy
403 Frog Jump Hard
402 Remove K Digits Medium
401 Binary Watch Easy
400 Nth Digit Medium
399 Evaluate Division Medium
398 Random Pick Index Medium
397 Integer Replacement Medium
396 Rotate Function Easy
395 Longest Substring with At Least K Repeating Characters Medium
394 Decode String Medium
393 UTF-8 Validation Medium
392 Is Subsequence Medium
391 Perfect Rectangle Hard
390 Elimination Game Medium
389 Find the Difference Easy
388 Longest Absolute File Path Medium
387 First Unique Character in a String js Easy
386 Lexicographical Numbers Medium
385 Mini Parser Medium
384 Shuffle an Array Medium
383 Ransom Note Easy
382 Linked List Random Node Medium
381 Insert GetRandom O(1) - Duplicates allowed Hard
380 Insert GetRandom O(1) Hard
377 Combination Sum IV Medium
376 Wiggle Subsequence Medium
374 Guess Number Higher Or Lower js Easy
371 Sum of Two Integers Easy
367 Valid Perfect Square Easy
357 Count Numbers with Unique Digits Medium
350 Intersection of Two Arrays II js Easy
349 Intersection of Two Arrays js Easy
347 Top K Frequent Elements js Medium
345 Reverse Vowels of a String Easy
344 Reverse String java, js Easy
343 Integer Break Medium
342 Power of Four Easy
341 Flatten Nested List Iterator Medium
338 Counting Bits Medium
337 House Robber III Medium
336 Palindrome Pairs Hard
334 Increasing Triplet Subsequence Medium
332 Reconstruct Itinerary Medium
331 Verify Preorder Serialization of a Binary Tree Medium
330 Patching Array Medium
329 Longest Increasing Path in a Matrix Medium
328 Odd Even Linked List Easy
327 Count of Range Sum Hard
326 Power of Three Easy
324 Wiggle Sort II Medium
322 Coin Change Medium
321 Create Maximum Number Hard
319 Bulb Switcher Medium
318 Maximum Product of Word Lengths Medium
316 Remove Duplicate Letters Hard
315 Count of Smaller Numbers After Self Hard
313 Super Ugly Number Medium
312 Burst Balloons Hard
310 Minimum Height Trees Medium
309 Best Time to Buy and Sell Stock with Cooldown Medium
307 Range Sum Query - Mutable Medium
306 Additive Number Medium
304 Range Sum Query 2D - Immutable Medium
303 Range Sum Query - Immutable Easy
301 Remove Invalid Parentheses Hard
300 Longest Increasing Subsequence Medium
299 Bulls and Cows Easy
297 Serialize and Deserialize Binary Tree Medium
295 Find Median from Data Stream Hard
292 Nim Game Easy
290 Word Pattern Easy
289 Game of Life Medium
287 Find the Duplicate Number Hard
285 Inorder Successor in BST Medium
284 Peeking Iterator Medium
283 Move Zeroes js Easy
282 Expression Add Operators Hard
279 Perfect Squares Medium
278 First Bad Version Easy
275 H-Index II Medium
274 H-Index Medium
273 Integer to English Words Medium
268 Missing Number Medium
264 Ugly Number II Medium
263 Ugly Number Easy
262 Trips and Users Mysql Hard
260 Single Number III Medium
258 Add Digits Easy
257 Binary Tree Paths Java Easy
242 Valid Anagram js Easy
241 Different Ways to Add Parentheses Medium
240 Search a 2D Matrix II Medium
239 Sliding Window Maximum Hard
238 Product of Array Except Self Medium
237 Node in a Linked List js,java Easy
236 Lowest Common Ancestor of a Binary Tree Medium
235 Lowest Common Ancestor of a Binary Search Tree java Easy
234 Palindrome Linked List java Easy
233 Number of Digit One Medium
232 Implement Queue using Stacks Easy
231 Power of Two java Easy
230 Kth Smallest Element in a BST Medium
229 Majority Element II Medium
228 Summary Ranges Easy
227 Basic Calculator II Medium
226 Invert Binary Tree java, js Easy
225 Implement Stack using Queues Medium
224 Basic Calculator Medium
223 Rectangle Area Easy
222 Count Complete Tree Nodes Medium
221 Maximal Square Medium
220 Contains Duplicate III Medium
219 Contains Duplicate II Easy
218 The Skyline Problem Hard
217 Contains Duplicate Easy
216 Combination Sum III Medium
215 Kth Largest Element in an Array js Medium
214 Shortest Palindrome Hard
213 House Robber II Medium
212 Word Search II Hard
211 Add and Search Word - Data structure design Medium
210 Course Schedule II Medium
209 Minimum Size Subarray Sum Medium
208 Implement Trie (Prefix Tree) Medium
207 Course Schedule Medium
206 Reverse Linked List java, js Easy
205 Isomorphic Strings java Easy
204 Count Primes Easy
203 Remove Linked List Elements js,java Easy
202 Happy Number Easy
201 Bitwise AND of Numbers Range Medium
200 Number of Islands Medium
199 Binary Tree Right Side View Medium
198 House Robber js Easy
197 Rising Temperature Mysql Easy
196 Delete Duplicate Emails Mysql Easy
191 Number of 1 Bits java, js Easy
190 Reverse Bits Easy
189 Rotate Array Easy
188 Best Time to Buy and Sell Stock IV Hard
187 Repeated DNA Sequences Medium
186 Reverse Words in a String II Medium
184 Department Highest Salary/ Mysql Medium
183 Customers Who Never Order Mysql Easy
182 Duplicate Email Mysql Easy
181 Employees Earning More Than Their Managers Mysql Easy
179 Largest Number Medium
178 Ranking Scores Mysql Easy
177 Nth Highest Salary Mysql Easy
176 Second Highest Salary Mysql Easy
175 Combine Two Tables Mysql Easy
174 Dungeon Game Hard
173 Binary Search Tree Iterator Medium
172 Factorial Trailing Zeroes Easy
171 Excel Sheet Column Number Java Easy
170 Two Sum III - Data structure design Easy
169 Majority Element java Easy
168 Excel Sheet Column Title Java, js Easy
167 Two Sum II - Input array is sorted Medium
166 Fraction to Recurring Decimal Medium
165 Compare Version Numbers Easy
164 Maximum Gap Hard
163 Missing Ranges Medium
162 Find Peak Element Medium
161 One Edit Distance Medium
160 Intersection of Two Linked Lists java, js Easy
159 Longest Substring with At Most Two Distinct Characters Hard
158 Read N Characters Given Read4 II - Call multiple times Hard
157 Read N Characters Given Read4 Easy
156 Binary Tree Upside Down Medium
155 Min Stack Easy
154 Find Minimum in Rotated Sorted Array II Hard
153 Find Minimum in Rotated Sorted Array Medium
152 Maximum Product Subarray Medium
151 Reverse Words in a String Medium
150 Evaluate Reverse Polish Notation Medium
149 Max Points on a Line Hard
148 Sort List Medium
147 Insertion Sort List Medium
146 LRU Cache Hard
145 Binary Tree Postorder Traversal js Hard
144 Binary Tree Preorder Traversal js Medium
143 Reorder List Medium
142 Linked List Cycle II js Medium
141 Linked List Cycle java, js Medium
140 Word Break II Hard
139 Word Break Medium
138 Copy List with Random Pointer Hard
137 Single Number II Medium
136 Single Number java Medium
135 Candy Hard
134 Gas Station Medium
133 Clone Graph js Medium
132 Palindrome Partitioning II Hard
131 Palindrome Partitioning Medium
130 Surrounded Regions Medium
129 Sum Root to Leaf Numbers Medium
128 Longest Consecutive Sequence Hard
127 Word Ladder Medium
126 Word Ladder II Hard
125 Valid Palindrome Easy
124 Binary Tree Maximum Path Sum Hard
123 Best Time to Buy and Sell Stock III Hard
122 Best Time to Buy and Sell Stock II js Medium
121 Best Time to Buy and Sell Stock java, js Medium
120 Triangle Medium
119 Pascal's Triangle II Easy
118 Pascal's Triangle Easy
117 Populating Next Right Pointers in Each Node II Hard
116 Populating Next Right Pointers in Each Node Medium
115 Distinct Subsequences Hard
114 Flatten Binary Tree to Linked List Medium
113 Path Sum II Medium
112 Path Sum js Easy
111 Minimum Depth of Binary Tree js Easy
110 Balanced Binary Tree java, js Easy
109 Convert Sorted List to Binary Search Tree Medium
108 Convert Sorted Array to Binary Search Tree Java, js Medium
107 Binary Tree Level Order Traversal II Easy
106 Construct Binary Tree from Inorder and Postorder Traversal Medium
105 Construct Binary Tree from Preorder and Inorder Traversal Medium
104 Maximum Depth of Binary Tree js java Easy
103 Binary Tree Zigzag Level Order Traversal Medium
102 Binary Tree Level Order Traversal js Easy
101 Symmetric Tree java, js Easy
100 Same Tree java, js Easy
99 Recover Binary Search Tree Hard
98 Validate Binary Search Tree Medium
97 Interleaving String Hard
96 Unique Binary Search Trees Medium
95 Unique Binary Search Trees II Medium
94 Binary Tree Inorder Traversal js Medium
93 Restore IP Addresses Medium
92 Reverse Linked List II Medium
91 Decode Ways Medium
90 Subsets II Medium
89 Gray Code Medium
88 Merge Sorted Array java, js Easy
87 Scramble String Hard
86 Partition List Medium
85 Maximal Rectangle Hard
84 Largest Rectangle in Histogram Hard
83 Remove Duplicates from Sorted List js Easy
82 Remove Duplicates from Sorted List II Medium
81 Search in Rotated Sorted Array II Medium
80 Remove Duplicates from Sorted Array II Medium
79 Word Search Medium
78 Subsets js Medium
77 Combinations Medium
76 Minimum Window Substring Hard
75 Sort Colors Medium
74 Search a 2D Matrix Medium
73 Set Matrix Zeroes Medium
72 Edit Distance Hard
71 Simplify Path Medium
70 Climbing Stairs js,java Easy
69 Sqrt(x) Medium
68 Text Justification Hard
67 Add Binary java, js Easy
66 Plus One js Easy
65 Valid Number js Easy
64 Minimum Path Sum Medium
63 Unique Paths II Medium
62 Unique Paths Medium
61 Rotate List js Medium
60 Permutation Sequence Medium
59 Spiral Matrix II Medium
58 Length of Last Word Easy
57 Insert Interval Hard
56 Merge Intervals Hard
55 Jump Game Medium
54 Spiral Matrix Medium
53 Maximum Subarray js Medium
52 N-Queens II Hard
51 N-Queens Hard
50 "Pow(x, n)" Medium
49 Group Anagrams js Medium
48 Rotate Image Medium
47 Permutations II Hard
46 Permutations js Medium
45 Jump Game II Hard
44 Wildcard Matching Hard
43 Multiply Strings Medium
42 Trapping Rain Water Hard
41 First Missing Positive Hard
40 Combination Sum II Medium
39 Combination Sum Medium
38 Count and Say Easy
37 Sudoku Solver Hard
36 Valid Sudoku Easy
35 Search Insert Position js Easy
34 Search for a Range Medium
33 Search in Rotated Sorted Array Hard
32 Longest Valid Parentheses Hard
31 Next Permutation Medium
30 Substring with Concatenation of All Words Hard
29 Divide Two Integers Medium
28 Implement strStr() js Easy
27 Remove Element js python Easy
26 Remove Duplicates from Sorted Array java, js Easy
25 Reverse Nodes in k-Group Hard
24 Swap Nodes in Pairs js Medium
23 Merge k Sorted Lists js Hard
22 Generate Parentheses js Medium
21 Merge Two Sorted Lists java, js Easy
20 Valid Parentheses js Easy
19 Remove Nth Node From End of List js Easy
18 4Sum js Medium
17 Letter Combinations of a Phone Number js Medium
16 3Sum Closest Medium
15 3Sum js Medium
14 Longest Common Prefix js Easy
13 Roman to Integer js Easy
12 Integer to Roman Medium
11 Container With Most Water js Medium
10 Regular Expression Matching Hard
9 Palindrome Number js Easy
8 String to Integer (atoi) Easy
7 Reverse Integer js,java Easy
6 ZigZag Conversion Easy
5 Longest Palindromic Substring Medium
4 Median of Two Sorted Arrays Hard
3 Longest Substring Without Repeating Characters js Medium
2 Add Two Numbers js Medium
1 Two Sum java, js, python Easy

面试题

# Title Solution Difficulty
面试题 08.06 汉诺塔问题 js Easy

剑指 Offer

# Title Solution Difficulty
53 - II 0~n-1中缺失的数字 js Easy

About

LeetCode Problems' Solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published