Skip to content

maligh/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

Number Title Solution Hard
1 Two Sum Swift Python Easy
2 Add Two Numbers Middle
3 Longest Substring Without Repeating Characters Middle
4 Median of Two Sorted Arrays Hard
5 Longest Palindromic Substring Middle
6 ZigZag Conversion Middle
7 Reverse Integer Swift Python Easy
8 String to Integer (atoi) Middle
9 Palindrome Number Swift Python Easy
10 Regular Expression Matching Hard
11 Container With Most Water Middle
12 Integer to Roman Middle
13 Roman to Integer Easy
14 Longest Common Prefix Easy
15 3Sum Middle
16 3Sum Closest Middle
17 Letter Combinations of a Phone Number Middle
18 4Sum Middle
19 Remove Nth Node From End of List Middle
20 Valid Parentheses Easy
21 Merge Two Sorted Lists Easy
22 Generate Parentheses Middle
23 Merge k Sorted Lists Hard
24 Swap Nodes in Pairs Middle
25 Reverse Nodes in k-Group Hard
26 Remove Duplicates from Sorted Array Easy
27 Remove Element Easy
28 Implement strStr() Easy
29 Divide Two Integers Middle
30 Substring with Concatenation of All Words Hard
31 Next Permutation Middle
32 Longest Valid Parentheses Hard
33 Search in Rotated Sorted Array Middle
34 Search for a Range Middle
35 Search Insert Position Easy
36 Valid Sudoku Middle
37 Sudoku Solver Hard
38 Count and Say Easy
39 Combination Sum Middle
40 Combination Sum II Middle
41 First Missing Positive Hard
42 Trapping Rain Water Hard
43 Multiply Strings Middle
44 Wildcard Matching Hard
45 Jump Game II Hard
46 Permutations Middle
47 Permutations II Middle
48 Rotate Image Middle
49 Group Anagrams Middle
50 Pow(x, n) Middle
51 N-Queens Hard
52 N-Queens II Hard
53 Maximum Subarray Easy
54 Spiral Matrix Middle
55 Jump Game Middle
56 Merge Intervals Middle
57 Insert Interval Hard
58 Length of Last Word Easy
59 Spiral Matrix II Middle
60 Permutation Sequence Middle
61 Rotate List Middle
62 Unique Paths Middle
63 Unique Paths II Middle
64 Minimum Path Sum Middle
65 Valid Number Hard
66 Plus One Easy
67 Add Binary Easy
68 Text Justification Hard
69 Sqrt(x) Easy
70 Climbing Stairs Easy
71 Simplify Path Middle
72 Edit Distance Hard
73 Set Matrix Zeroes Middle
74 Search a 2D Matrix Middle
75 Sort Colors Middle
76 Minimum Window Substring Hard
77 Combinations Middle
78 Subsets Middle
79 Word Search Middle
80 Remove Duplicates from Sorted Array II Middle
81 Search in Rotated Sorted Array II Middle
82 Remove Duplicates from Sorted List II Middle
83 Remove Duplicates from Sorted List Easy
84 Largest Rectangle in Histogram Hard
85 Maximal Rectangle Hard
86 Partition List Middle
87 Scramble String Hard
88 Merge Sorted Array Easy
89 Gray Code Middle
90 Subsets II Middle
91 Decode Ways Middle
92 Reverse Linked List II Middle
93 Restore IP Addresses Middle
94 Binary Tree Inorder Traversal Middle
95 Unique Binary Search Trees II Middle
96 Unique Binary Search Trees Middle
97 Interleaving String Hard
98 Validate Binary Search Tree Middle
99 Recover Binary Search Tree Hard
100 Same Tree Easy
101 Symmetric Tree Easy
102 Binary Tree Level Order Traversal Middle
103 Binary Tree Zigzag Level Order Traversal Middle
104 Maximum Depth of Binary Tree Easy
105 Construct Binary Tree from Preorder and Inorder Traversal Middle
106 Construct Binary Tree from Inorder and Postorder Traversal Middle
107 Binary Tree Level Order Traversal II Easy
108 Convert Sorted Array to Binary Search Tree Easy
109 Convert Sorted List to Binary Search Tree Middle
110 Balanced Binary Tree Easy
111 Minimum Depth of Binary Tree Easy
112 Path Sum Easy
113 Path Sum II Middle
114 Flatten Binary Tree to Linked List Middle
115 Distinct Subsequences Hard
116 Populating Next Right Pointers in Each Node Middle
117 Populating Next Right Pointers in Each Node II Middle
118 Pascal's Triangle Easy
119 Pascal's Triangle II Easy
120 Triangle Middle
121 Best Time to Buy and Sell Stock Easy
122 Best Time to Buy and Sell Stock II Easy
123 Best Time to Buy and Sell Stock III Hard
124 Binary Tree Maximum Path Sum Hard
125 Valid Palindrome Easy
126 Word Ladder II Hard
127 Word Ladder Middle
128 Longest Consecutive Sequence Hard
129 Sum Root to Leaf Numbers Middle
130 Surrounded Regions Middle
131 Palindrome Partitioning Middle
132 Palindrome Partitioning II Hard
133 Clone Graph Middle
134 Gas Station Middle
135 Candy Hard
136 Single Number Easy
137 Single Number II Middle
138 Copy List with Random Pointer Middle
139 Word Break Middle
140 Word Break II Hard
141 Linked List Cycle Easy
142 Linked List Cycle II Middle
143 Reorder List Middle
144 Binary Tree Preorder Traversal Middle
145 Binary Tree Postorder Traversal Hard
146 LRU Cache Hard
147 Insertion Sort List Middle
148 Sort List Middle
149 Max Points on a Line Hard
150 Evaluate Reverse Polish Notation Middle
151 Reverse Words in a String Middle
152 Maximum Product Subarray Middle
153 Find Minimum in Rotated Sorted Array Middle
154 Find Minimum in Rotated Sorted Array II Hard
155 Min Stack Easy
156 Binary Tree Upside Down Middle
157 Read N Characters Given Read4 Easy
158 Read N Characters Given Read4 II - Call multiple times Hard
159 Longest Substring with At Most Two Distinct Characters Hard
160 Intersection of Two Linked Lists Easy
161 One Edit Distance Middle
162 Find Peak Element Middle
163 Missing Ranges Middle
164 Maximum Gap Hard
165 Compare Version Numbers Middle
166 Fraction to Recurring Decimal Middle
167 Two Sum II - Input array is sorted Easy
168 Excel Sheet Column Title Easy
169 Majority Element Easy
170 Two Sum III - Data structure design Easy
171 Excel Sheet Column Number Easy
172 Factorial Trailing Zeroes Easy
173 Binary Search Tree Iterator Middle
174 Dungeon Game Hard
175 Combine Two Tables Easy
176 Second Highest Salary Easy
177 Nth Highest Salary Middle
178 Rank Scores Middle
179 Largest Number Middle
180 Consecutive Numbers Middle
181 Employees Earning More Than Their Managers Easy
182 Duplicate Emails Easy
183 Customers Who Never Order Easy
184 Department Highest Salary Middle
185 Department Top Three Salaries Hard
186 Reverse Words in a String II Middle
187 Repeated DNA Sequences Middle
188 Best Time to Buy and Sell Stock IV Hard
189 Rotate Array Easy
190 Reverse Bits Easy
191 Number of 1 Bits Easy
192 Word Frequency Middle
193 Valid Phone Numbers Easy
194 Transpose File Middle
195 Tenth Line Easy
196 Delete Duplicate Emails Easy
197 Rising Temperature Easy
198 House Robber Easy
199 Binary Tree Right Side View Middle
200 Number of Islands Middle
201 Bitwise AND of Numbers Range Middle
202 Happy Number Easy
203 Remove Linked List Elements Easy
204 Count Primes Easy
205 Isomorphic Strings Easy
206 Reverse Linked List Easy
207 Course Schedule Middle
208 Implement Trie (Prefix Tree) Middle
209 Minimum Size Subarray Sum Middle
210 Course Schedule II Middle
211 Add and Search Word - Data structure design Middle
212 Word Search II Hard
213 House Robber II Middle
214 Shortest Palindrome Hard
215 Kth Largest Element in an Array Middle
216 Combination Sum III Middle
217 Contains Duplicate Easy
218 The Skyline Problem Hard
219 Contains Duplicate II Easy
220 Contains Duplicate III Middle
221 Maximal Square Middle
222 Count Complete Tree Nodes Middle
223 Rectangle Area Middle
224 Basic Calculator Hard
225 Implement Stack using Queues Easy
226 Invert Binary Tree Easy
227 Basic Calculator II Middle
228 Summary Ranges Middle
229 Majority Element II Middle
230 Kth Smallest Element in a BST Middle
231 Power of Two Easy
232 Implement Queue using Stacks Easy
233 Number of Digit One Hard
234 Palindrome Linked List Easy
235 Lowest Common Ancestor of a Binary Search Tree Easy
236 Lowest Common Ancestor of a Binary Tree Middle
237 Delete Node in a Linked List Easy
238 Product of Array Except Self Middle
239 Sliding Window Maximum Hard
240 Search a 2D Matrix II Middle
241 Different Ways to Add Parentheses Middle
242 Valid Anagram Easy
243 Shortest Word Distance Easy
244 Shortest Word Distance II Middle
245 Shortest Word Distance III Middle
246 Strobogrammatic Number Easy
247 Strobogrammatic Number II Middle
248 Strobogrammatic Number III Hard
249 Group Shifted Strings Middle
250 Count Univalue Subtrees Middle
251 Flatten 2D Vector Middle
252 Meeting Rooms Easy
253 Meeting Rooms II Middle
254 Factor Combinations Middle
255 Verify Preorder Sequence in Binary Search Tree Middle
256 Paint House Easy
257 Binary Tree Paths Easy
258 Add Digits Easy
259 3Sum Smaller Middle
260 Single Number III Middle
261 Graph Valid Tree Middle
262 Trips and Users Hard
263 Ugly Number Easy
264 Ugly Number II Middle
265 Paint House II Hard
266 Palindrome Permutation Easy
267 Palindrome Permutation II Middle
268 Missing Number Easy
269 Alien Dictionary Hard
270 Closest Binary Search Tree Value Easy
271 Encode and Decode Strings Middle
272 Closest Binary Search Tree Value II Hard
273 Integer to English Words Hard
274 H-Index Middle
275 H-Index II Middle
276 Paint Fence Easy
277 Find the Celebrity Middle
278 First Bad Version Easy
279 Perfect Squares Middle
280 Wiggle Sort Middle
281 Zigzag Iterator Middle
282 Expression Add Operators Hard
283 Move Zeroes Easy
284 Peeking Iterator Middle
285 Inorder Successor in BST Middle
286 Walls and Gates Middle
287 Find the Duplicate Number Middle
288 Unique Word Abbreviation Middle
289 Game of Life Middle
290 Word Pattern Easy
291 Word Pattern II Hard
292 Nim Game Easy
293 Flip Game Easy
294 Flip Game II Middle
295 Find Median from Data Stream Hard
296 Best Meeting Point Hard
297 Serialize and Deserialize Binary Tree Hard
298 Binary Tree Longest Consecutive Sequence Middle
299 Bulls and Cows Middle
300 Longest Increasing Subsequence Middle
301 Remove Invalid Parentheses Hard
302 Smallest Rectangle Enclosing Black Pixels Hard
303 Range Sum Query - Immutable Easy
304 Range Sum Query 2D - Immutable Middle
305 Number of Islands II Hard
306 Additive Number Middle
307 Range Sum Query - Mutable Middle
308 Range Sum Query 2D - Mutable Hard
309 Best Time to Buy and Sell Stock with Cooldown Middle
310 Minimum Height Trees Middle
311 Sparse Matrix Multiplication Middle
312 Burst Balloons Hard
313 Super Ugly Number Middle
314 Binary Tree Vertical Order Traversal Middle
315 Count of Smaller Numbers After Self Hard
316 Remove Duplicate Letters Hard
317 Shortest Distance from All Buildings Hard
318 Maximum Product of Word Lengths Middle
319 Bulb Switcher Middle
320 Generalized Abbreviation Middle
321 Create Maximum Number Hard
322 Coin Change Middle
323 Number of Connected Components in an Undirected Graph Middle
324 Wiggle Sort II Middle
325 Maximum Size Subarray Sum Equals k Middle
326 Power of Three Easy
327 Count of Range Sum Hard
328 Odd Even Linked List Middle
329 Longest Increasing Path in a Matrix Hard
330 Patching Array Hard
331 Verify Preorder Serialization of a Binary Tree Middle
332 Reconstruct Itinerary Middle
333 Largest BST Subtree Middle
334 Increasing Triplet Subsequence Middle
335 Self Crossing Hard
336 Palindrome Pairs Hard
337 House Robber III Middle
338 Counting Bits Middle
339 Nested List Weight Sum Easy
340 Longest Substring with At Most K Distinct Characters Hard
341 Flatten Nested List Iterator Middle
342 Power of Four Easy
343 Integer Break Middle
344 Reverse String Easy
345 Reverse Vowels of a String Easy
346 Moving Average from Data Stream Easy
347 Top K Frequent Elements Middle
348 Design Tic-Tac-Toe Middle
349 Intersection of Two Arrays Easy
350 Intersection of Two Arrays II Easy
351 Android Unlock Patterns Middle
352 Data Stream as Disjoint Intervals Hard
353 Design Snake Game Middle
354 Russian Doll Envelopes Hard
355 Design Twitter Middle
356 Line Reflection Middle
357 Count Numbers with Unique Digits Middle
358 Rearrange String k Distance Apart Hard
359 Logger Rate Limiter Easy
360 Sort Transformed Array Middle
361 Bomb Enemy Middle
362 Design Hit Counter Middle
363 Max Sum of Rectangle No Larger Than K Hard
364 Nested List Weight Sum II Middle
365 Water and Jug Problem Middle
366 Find Leaves of Binary Tree Middle
367 Valid Perfect Square Easy
368 Largest Divisible Subset Middle
369 Plus One Linked List Middle
370 Range Addition Middle
371 Sum of Two Integers Easy
372 Super Pow Middle
373 Find K Pairs with Smallest Sums Middle
374 Guess Number Higher or Lower Easy
375 Guess Number Higher or Lower II Middle
376 Wiggle Subsequence Middle
377 Combination Sum IV Middle
378 Kth Smallest Element in a Sorted Matrix Middle
379 Design Phone Directory Middle
380 Insert Delete GetRandom O(1) Middle
381 Insert Delete GetRandom O(1) - Duplicates allowed Hard
382 Linked List Random Node Middle
383 Ransom Note Easy
384 Shuffle an Array Middle
385 Mini Parser Middle
386 Lexicographical Numbers Middle
387 First Unique Character in a String Easy
388 Longest Absolute File Path Middle
389 Find the Difference Easy
390 Elimination Game Middle
391 Perfect Rectangle Hard
392 Is Subsequence Middle
393 UTF-8 Validation Middle
394 Decode String Middle
395 Longest Substring with At Least K Repeating Characters Middle
396 Rotate Function Middle
397 Integer Replacement Middle
398 Random Pick Index Middle
399 Evaluate Division Middle
400 Nth Digit Easy
401 Binary Watch Easy
402 Remove K Digits Middle
403 Frog Jump Hard
404 Sum of Left Leaves Easy
405 Convert a Number to Hexadecimal Easy
406 Queue Reconstruction by Height Middle
407 Trapping Rain Water II Hard
408 Valid Word Abbreviation Easy
409 Longest Palindrome Easy
410 Split Array Largest Sum Hard
411 Minimum Unique Word Abbreviation Hard
412 Fizz Buzz Easy
413 Arithmetic Slices Middle
414 Third Maximum Number Easy
415 Add Strings Easy
416 Partition Equal Subset Sum Middle
417 Pacific Atlantic Water Flow Middle
418 Sentence Screen Fitting Middle
419 Battleships in a Board Middle
420 Strong Password Checker Hard
421 Maximum XOR of Two Numbers in an Array Middle
422 Valid Word Square Easy
423 Reconstruct Original Digits from English Middle
424 Longest Repeating Character Replacement Middle
425 Word Squares Hard
432 All O`one Data Structure Hard
433 Minimum Genetic Mutation Middle
434 Number of Segments in a String Easy
435 Non-overlapping Intervals Middle
436 Find Right Interval Middle
437 Path Sum III Easy
438 Find All Anagrams in a String Easy
439 Ternary Expression Parser Middle
440 K-th Smallest in Lexicographical Order Hard
441 Arranging Coins Easy
442 Find All Duplicates in an Array Middle
443 String Compression Easy
444 Sequence Reconstruction Middle
445 Add Two Numbers II Middle
446 Arithmetic Slices II - Subsequence Hard
447 Number of Boomerangs Easy
448 Find All Numbers Disappeared in an Array Easy
449 Serialize and Deserialize BST Middle
450 Delete Node in a BST Middle
451 Sort Characters By Frequency Middle
452 Minimum Number of Arrows to Burst Balloons Middle
453 Minimum Moves to Equal Array Elements Easy
454 4Sum II Middle
455 Assign Cookies Easy
456 132 Pattern Middle
457 Circular Array Loop Middle
458 Poor Pigs Easy
459 Repeated Substring Pattern Easy
460 LFU Cache Hard
461 Hamming Distance Easy
462 Minimum Moves to Equal Array Elements II Middle
463 Island Perimeter Easy
464 Can I Win Middle
465 Optimal Account Balancing Hard
466 Count The Repetitions Hard
467 Unique Substrings in Wraparound String Middle
468 Validate IP Address Middle
469 Convex Polygon Middle
471 Encode String with Shortest Length Hard
472 Concatenated Words Hard
473 Matchsticks to Square Middle
474 Ones and Zeroes Middle
475 Heaters Easy
476 Number Complement Easy
477 Total Hamming Distance Middle
479 Largest Palindrome Product Easy
480 Sliding Window Median Hard
481 Magical String Middle
482 License Key Formatting Easy
483 Smallest Good Base Hard
484 Find Permutation Middle
485 Max Consecutive Ones Easy
486 Predict the Winner Middle
487 Max Consecutive Ones II Middle
488 Zuma Game Hard
490 The Maze Middle
491 Increasing Subsequences Middle
492 Construct the Rectangle Easy
493 Reverse Pairs Hard
494 Target Sum Middle
495 Teemo Attacking Middle
496 Next Greater Element I Easy
498 Diagonal Traverse Middle
499 The Maze III Hard
500 Keyboard Row Easy
501 Find Mode in Binary Search Tree Easy
502 IPO Hard
503 Next Greater Element II Middle
504 Base 7 Easy
505 The Maze II Middle
506 Relative Ranks Easy
507 Perfect Number Easy
508 Most Frequent Subtree Sum Middle
513 Find Bottom Left Tree Value Middle
514 Freedom Trail Hard
515 Find Largest Value in Each Tree Row Middle
516 Longest Palindromic Subsequence Middle
517 Super Washing Machines Hard
518 Coin Change 2 Middle
520 Detect Capital Easy
521 Longest Uncommon Subsequence I Easy
522 Longest Uncommon Subsequence II Middle
523 Continuous Subarray Sum Middle
524 Longest Word in Dictionary through Deleting Middle
525 Contiguous Array Middle
526 Beautiful Arrangement Middle
527 Word Abbreviation Hard
529 Minesweeper Middle
530 Minimum Absolute Difference in BST Easy
531 Lonely Pixel I Middle
532 K-diff Pairs in an Array Easy
533 Lonely Pixel II Middle
535 Encode and Decode TinyURL Middle
536 Construct Binary Tree from String Middle
537 Complex Number Multiplication Middle
538 Convert BST to Greater Tree Easy
539 Minimum Time Difference Middle
540 Single Element in a Sorted Array Middle
541 Reverse String II Easy
542 01 Matrix Middle
543 Diameter of Binary Tree Easy
544 Output Contest Matches Middle
545 Boundary of Binary Tree Middle
546 Remove Boxes Hard
547 Friend Circles Middle
548 Split Array with Equal Sum Middle
549 Binary Tree Longest Consecutive Sequence II Middle
551 Student Attendance Record I Easy
552 Student Attendance Record II Hard
553 Optimal Division Middle
554 Brick Wall Middle
555 Split Concatenated Strings Middle
556 Next Greater Element III Middle
557 Reverse Words in a String III Easy
560 Subarray Sum Equals K Middle
561 Array Partition I Easy
562 Longest Line of Consecutive One in Matrix Middle
563 Binary Tree Tilt Easy
564 Find the Closest Palindrome Hard
565 Array Nesting Middle
566 Reshape the Matrix Easy
567 Permutation in String Middle
568 Maximum Vacation Days Hard
569 Median Employee Salary Hard
570 Managers with at Least 5 Direct Reports Middle
571 Find Median Given Frequency of Numbers Hard
572 Subtree of Another Tree Easy
573 Squirrel Simulation Middle
574 Winning Candidate Middle
575 Distribute Candies Easy
576 Out of Boundary Paths Middle
577 Employee Bonus Easy
578 Get Highest Answer Rate Question Middle
579 Find Cumulative Salary of an Employee Hard
580 Count Student Number in Departments Middle
581 Shortest Unsorted Continuous Subarray Easy
582 Kill Process Middle
583 Delete Operation for Two Strings Middle
584 Find Customer Referee Easy
585 Investments in 2016 Middle
586 Customer Placing the Largest Number of Orders Easy
587 Erect the Fence Hard
588 Design In-Memory File System Hard
591 Tag Validator Hard
592 Fraction Addition and Subtraction Middle
593 Valid Square Middle
594 Longest Harmonious Subsequence Easy
595 Big Countries Easy
596 Classes More Than 5 Students Easy
597 Friend Requests I: Overall Acceptance Rate Easy
598 Range Addition II Easy
599 Minimum Index Sum of Two Lists Easy
600 Non-negative Integers without Consecutive Ones Hard
601 Human Traffic of Stadium Hard
602 Friend Requests II: Who Has the Most Friends Middle
603 Consecutive Available Seats Easy
604 Design Compressed String Iterator Easy
605 Can Place Flowers Easy
606 Construct String from Binary Tree Easy
607 Sales Person Easy
608 Tree Node Middle
609 Find Duplicate File in System Middle
610 Triangle Judgement Easy
611 Valid Triangle Number Middle
612 Shortest Distance in a Plane Middle
613 Shortest Distance in a Line Easy
614 Second Degree Follower Middle
615 Average Salary: Departments VS Company Hard
616 Add Bold Tag in String Middle
617 Merge Two Binary Trees Easy
618 Students Report By Geography Hard
619 Biggest Single Number Easy
620 Not Boring Movies Easy
621 Task Scheduler Middle
623 Add One Row to Tree Middle
624 Maximum Distance in Arrays Easy
625 Minimum Factorization Middle
626 Exchange Seats Middle
627 Swap Salary Easy
628 Maximum Product of Three Numbers Easy
629 K Inverse Pairs Array Hard
630 Course Schedule III Hard
631 Design Excel Sum Formula Hard
632 Smallest Range Hard
633 Sum of Square Numbers Easy
634 Find the Derangement of An Array Middle
635 Design Log Storage System Middle
636 Exclusive Time of Functions Middle
637 Average of Levels in Binary Tree Easy
638 Shopping Offers Middle
639 Decode Ways II Hard
640 Solve the Equation Middle
642 Design Search Autocomplete System Hard
643 Maximum Average Subarray I Easy
644 Maximum Average Subarray II Hard
645 Set Mismatch Easy
646 Maximum Length of Pair Chain Middle
647 Palindromic Substrings Middle
648 Replace Words Middle
649 Dota2 Senate Middle
650 2 Keys Keyboard Middle
651 4 Keys Keyboard Middle
652 Find Duplicate Subtrees Middle
653 Two Sum IV - Input is a BST Easy
654 Maximum Binary Tree Middle
655 Print Binary Tree Middle
656 Coin Path Hard
657 Judge Route Circle Easy
658 Find K Closest Elements Middle
659 Split Array into Consecutive Subsequences Middle
660 Remove 9 Hard
661 Image Smoother Easy
662 Maximum Width of Binary Tree Middle
663 Equal Tree Partition Middle
664 Strange Printer Hard
665 Non-decreasing Array Easy
666 Path Sum IV Middle
667 Beautiful Arrangement II Middle
668 Kth Smallest Number in Multiplication Table Hard
669 Trim a Binary Search Tree Easy
670 Maximum Swap Middle
671 Second Minimum Node In a Binary Tree Easy
672 Bulb Switcher II Middle
673 Number of Longest Increasing Subsequence Middle
674 Longest Continuous Increasing Subsequence Easy
675 Cut Off Trees for Golf Event Hard
676 Implement Magic Dictionary Middle
677 Map Sum Pairs Middle
678 Valid Parenthesis String Middle
679 24 Game Hard
680 Valid Palindrome II Easy
681 Next Closest Time Middle
682 Baseball Game Easy
683 K Empty Slots Hard
684 Redundant Connection Middle
685 Redundant Connection II Hard
686 Repeated String Match Easy
687 Longest Univalue Path Easy
688 Knight Probability in Chessboard Middle
689 Maximum Sum of 3 Non-Overlapping Subarrays Hard
690 Employee Importance Easy
691 Stickers to Spell Word Hard
692 Top K Frequent Words Middle
693 Binary Number with Alternating Bits Easy
694 Number of Distinct Islands Middle
695 Max Area of Island Easy
696 Count Binary Substrings Easy
697 Degree of an Array Easy
698 Partition to K Equal Sum Subsets Middle
699 Falling Squares Hard
711 Number of Distinct Islands II Hard
712 Minimum ASCII Delete Sum for Two Strings Middle
713 Subarray Product Less Than K Middle
714 Best Time to Buy and Sell Stock with Transaction Fee Middle
715 Range Module Hard
716 Max Stack Hard
717 1-bit and 2-bit Characters Easy
718 Maximum Length of Repeated Subarray Middle
719 Find K-th Smallest Pair Distance Hard
720 Longest Word in Dictionary Easy
721 Accounts Merge Middle
722 Remove Comments Middle
723 Candy Crush Middle
724 Find Pivot Index Easy
725 Split Linked List in Parts Middle
726 Number of Atoms Hard
727 Minimum Window Subsequence Hard
728 Self Dividing Numbers Easy
729 My Calendar I Middle
730 Count Different Palindromic Subsequences Hard
731 My Calendar II Middle
732 My Calendar III Hard
733 Flood Fill Easy
734 Sentence Similarity Easy
735 Asteroid Collision Middle
736 Parse Lisp Expression Hard
737 Sentence Similarity II Middle
738 Monotone Increasing Digits Middle
739 Daily Temperatures Middle
740 Delete and Earn Middle
741 Cherry Pickup Hard
742 Closest Leaf in a Binary Tree Middle
743 Network Delay Time Middle
744 Find Smallest Letter Greater Than Target Easy
745 Prefix and Suffix Search Hard
746 Min Cost Climbing Stairs Easy
747 Largest Number At Least Twice of Others Easy
748 Shortest Completing Word Middle
749 Contain Virus Hard
750 Number Of Corner Rectangles Middle
751 IP to CIDR Easy
752 Open the Lock Middle
753 Cracking the Safe Hard
754 Reach a Number Middle
755 Pour Water Middle
756 Pyramid Transition Matrix Middle
757 Set Intersection Size At Least Two Hard
758 Bold Words in String Easy
759 Employee Free Time Hard
760 Find Anagram Mappings Easy
761 Special Binary String Hard
762 Prime Number of Set Bits in Binary Representation Easy
763 Partition Labels Middle
764 Largest Plus Sign Middle
765 Couples Holding Hands Hard
766 Toeplitz Matrix Easy
767 Reorganize String Middle
768 Max Chunks To Make Sorted II Hard
769 Max Chunks To Make Sorted Middle
770 Basic Calculator IV Hard
771 Jewels and Stones Easy
772 Basic Calculator III Hard
773 Sliding Puzzle Hard
774 Minimize Max Distance to Gas Station Hard
775 Global and Local Inversions Middle
776 Split BST Middle
777 Swap Adjacent in LR String Middle
778 Swim in Rising Water Hard
779 K-th Symbol in Grammar Middle
780 Reaching Points Hard
781 Rabbits in Forest Middle
782 Transform to Chessboard Hard
783 Minimum Distance Between BST Nodes Easy
784 Letter Case Permutation Easy
785 Is Graph Bipartite? Middle
786 K-th Smallest Prime Fraction Hard
787 Cheapest Flights Within K Stops Middle
788 Rotated Digits Easy
789 Escape The Ghosts Middle
790 Domino and Tromino Tiling Middle
791 Custom Sort String Middle
792 Number of Matching Subsequences Middle
793 Preimage Size of Factorial Zeroes Function Hard
794 Valid Tic-Tac-Toe State Middle
795 Number of Subarrays with Bounded Maximum Middle
796 Rotate String Easy
797 All Paths From Source to Target Middle
798 Smallest Rotation with Highest Score Hard
799 Champagne Tower Middle
800 Similar RGB Color Easy
801 Minimum Swaps To Make Sequences Increasing Middle
802 Find Eventual Safe States Middle
803 Bricks Falling When Hit Hard
804 Unique Morse Code Words Easy
805 Split Array With Same Average Hard
806 Number of Lines To Write String Easy
807 Max Increase to Keep City Skyline Middle

About

用Swift5、Python3 刷LeetCode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •