Skip to content

Latest commit

 

History

History
1019 lines (1014 loc) · 52.9 KB

README.md

File metadata and controls

1019 lines (1014 loc) · 52.9 KB

Build

LeetCode

my solution for LeetCode

Problem List

id title language difficulty
1 Two Sum cpp easy
2 Add Two Numbers cpp medium
3 Longest Substring Without Repeating Characters cpp medium
4 Median of Two Sorted Arrays cpp hard
5 Longest Palindromic Substring cpp medium
6 Zigzag Conversion cpp medium
7 Reverse Integer cpp medium
8 String to Integer (atoi) cpp medium
9 Palindrome Number cpp easy
10 Regular Expression Matching hard
11 Container With Most Water cpp medium
12 Integer to Roman cpp medium
13 Roman to Integer cpp easy
14 Longest Common Prefix cpp easy
15 3Sum cpp medium
16 3Sum Closest cpp medium
17 Letter Combinations of a Phone Number cpp medium
18 4Sum cpp medium
19 Remove Nth Node From End of List cpp medium
20 Valid Parentheses cpp easy
21 Merge Two Sorted Lists cpp easy
22 Generate Parentheses cpp medium
23 Merge k Sorted Lists cpp hard
24 Swap Nodes in Pairs cpp medium
25 Reverse Nodes in k-Group cpp hard
26 Remove Duplicates from Sorted Array cpp easy
27 Remove Element cpp easy
28 Find the Index of the First Occurrence in a String cpp easy
29 Divide Two Integers cpp medium
30 Substring with Concatenation of All Words cpp hard
31 Next Permutation cpp medium
32 Longest Valid Parentheses cpp hard
33 Search in Rotated Sorted Array cpp medium
34 Find First and Last Position of Element in Sorted Array cpp medium
35 Search Insert Position cpp easy
36 Valid Sudoku cpp medium
37 Sudoku Solver cpp hard
38 Count and Say cpp medium
39 Combination Sum cpp medium
40 Combination Sum II cpp medium
41 First Missing Positive cpp hard
42 Trapping Rain Water cpp hard
43 Multiply Strings cpp medium
44 Wildcard Matching cpp hard
45 Jump Game II cpp medium
46 Permutations cpp medium
47 Permutations II cpp medium
48 Rotate Image cpp medium
49 Group Anagrams cpp medium
50 Pow(x, n) cpp medium
51 N-Queens cpp hard
52 N-Queens II cpp hard
53 Maximum Subarray cpp medium
54 Spiral Matrix cpp medium
55 Jump Game cpp medium
56 Merge Intervals cpp medium
57 Insert Interval cpp medium
58 Length of Last Word cpp easy
59 Spiral Matrix II cpp medium
60 Permutation Sequence cpp hard
61 Rotate List cpp medium
62 Unique Paths cpp medium
63 Unique Paths II cpp medium
64 Minimum Path Sum cpp medium
65 Valid Number cpp hard
66 Plus One cpp easy
67 Add Binary cpp easy
68 Text Justification cpp hard
69 Sqrt(x) cpp easy
70 Climbing Stairs cpp easy
71 Simplify Path cpp medium
72 Edit Distance cpp medium
73 Set Matrix Zeroes cpp medium
74 Search a 2D Matrix cpp medium
75 Sort Colors cpp medium
76 Minimum Window Substring cpp hard
77 Combinations cpp medium
78 Subsets cpp medium
79 Word Search cpp medium
80 Remove Duplicates from Sorted Array II cpp medium
81 Search in Rotated Sorted Array II cpp medium
82 Remove Duplicates from Sorted List II cpp medium
83 Remove Duplicates from Sorted List cpp easy
84 Largest Rectangle in Histogram cpp hard
85 Maximal Rectangle hard
86 Partition List cpp medium
87 Scramble String hard
88 Merge Sorted Array cpp easy
89 Gray Code cpp medium
90 Subsets II cpp medium
91 Decode Ways cpp medium
92 Reverse Linked List II cpp medium
93 Restore IP Addresses cpp medium
94 Binary Tree Inorder Traversal cpp easy
95 Unique Binary Search Trees II cpp medium
96 Unique Binary Search Trees cpp medium
97 Interleaving String cpp medium
98 Validate Binary Search Tree cpp medium
99 Recover Binary Search Tree cpp medium
100 Same Tree cpp easy
101 Symmetric Tree cpp easy
102 Binary Tree Level Order Traversal cpp medium
103 Binary Tree Zigzag Level Order Traversal cpp medium
104 Maximum Depth of Binary Tree cpp easy
105 Construct Binary Tree from Preorder and Inorder Traversal cpp medium
106 Construct Binary Tree from Inorder and Postorder Traversal medium
107 Binary Tree Level Order Traversal II cpp medium
108 Convert Sorted Array to Binary Search Tree cpp easy
109 Convert Sorted List to Binary Search Tree cpp medium
110 Balanced Binary Tree cpp easy
111 Minimum Depth of Binary Tree cpp easy
112 Path Sum cpp easy
113 Path Sum II cpp medium
114 Flatten Binary Tree to Linked List cpp medium
115 Distinct Subsequences cpp hard
116 Populating Next Right Pointers in Each Node cpp medium
117 Populating Next Right Pointers in Each Node II cpp medium
118 Pascal's Triangle cpp easy
119 Pascal's Triangle II cpp easy
120 Triangle cpp medium
121 Best Time to Buy and Sell Stock cpp easy
122 Best Time to Buy and Sell Stock II cpp medium
123 Best Time to Buy and Sell Stock III hard
124 Binary Tree Maximum Path Sum cpp hard
125 Valid Palindrome cpp easy
126 Word Ladder II hard
127 Word Ladder cpp hard
128 Longest Consecutive Sequence cpp medium
129 Sum Root to Leaf Numbers cpp medium
130 Surrounded Regions cpp medium
131 Palindrome Partitioning cpp medium
132 Palindrome Partitioning II cpp hard
133 Clone Graph cpp medium
134 Gas Station cpp medium
135 Candy hard
136 Single Number cpp easy
137 Single Number II cpp medium
138 Copy List with Random Pointer cpp medium
139 Word Break cpp medium
140 Word Break II cpp hard
141 Linked List Cycle cpp easy
142 Linked List Cycle II cpp medium
143 Reorder List cpp medium
144 Binary Tree Preorder Traversal cpp easy
145 Binary Tree Postorder Traversal cpp easy
146 LRU Cache cpp medium
147 Insertion Sort List cpp medium
148 Sort List cpp medium
149 Max Points on a Line cpp hard
150 Evaluate Reverse Polish Notation cpp medium
151 Reverse Words in a String cpp medium
152 Maximum Product Subarray cpp medium
153 Find Minimum in Rotated Sorted Array cpp medium
154 Find Minimum in Rotated Sorted Array II hard
155 Min Stack cpp medium
156 Binary Tree Upside Down medium
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 medium
160 Intersection of Two Linked Lists cpp easy
161 One Edit Distance medium
162 Find Peak Element cpp medium
163 Missing Ranges easy
164 Maximum Gap cpp medium
165 Compare Version Numbers cpp medium
166 Fraction to Recurring Decimal cpp medium
167 Two Sum II - Input Array Is Sorted cpp medium
168 Excel Sheet Column Title cpp easy
169 Majority Element cpp easy
170 Two Sum III - Data structure design easy
171 Excel Sheet Column Number cpp easy
172 Factorial Trailing Zeroes cpp medium
173 Binary Search Tree Iterator cpp medium
174 Dungeon Game hard
175 Combine Two Tables sql easy
176 Second Highest Salary sql medium
177 Nth Highest Salary sql medium
178 Rank Scores medium
179 Largest Number cpp medium
180 Consecutive Numbers medium
181 Employees Earning More Than Their Managers sql easy
182 Duplicate Emails sql easy
183 Customers Who Never Order sql easy
184 Department Highest Salary sql medium
185 Department Top Three Salaries hard
186 Reverse Words in a String II medium
187 Repeated DNA Sequences cpp medium
188 Best Time to Buy and Sell Stock IV hard
189 Rotate Array cpp medium
190 Reverse Bits cpp easy
191 Number of 1 Bits cpp easy
192 Word Frequency medium
193 Valid Phone Numbers easy
194 Transpose File medium
195 Tenth Line easy
196 Delete Duplicate Emails sql easy
197 Rising Temperature sql easy
198 House Robber cpp medium
199 Binary Tree Right Side View cpp medium
200 Number of Islands cpp medium
201 Bitwise AND of Numbers Range cpp medium
202 Happy Number cpp easy
203 Remove Linked List Elements cpp easy
204 Count Primes cpp medium
205 Isomorphic Strings cpp easy
206 Reverse Linked List cpp easy
207 Course Schedule cpp medium
208 Implement Trie (Prefix Tree) cpp medium
209 Minimum Size Subarray Sum cpp medium
210 Course Schedule II medium
211 Design Add and Search Words Data Structure cpp medium
212 Word Search II cpp hard
213 House Robber II cpp medium
214 Shortest Palindrome hard
215 Kth Largest Element in an Array cpp medium
216 Combination Sum III cpp medium
217 Contains Duplicate cpp easy
218 The Skyline Problem hard
219 Contains Duplicate II cpp easy
220 Contains Duplicate III cpp hard
221 Maximal Square cpp medium
222 Count Complete Tree Nodes cpp easy
223 Rectangle Area cpp medium
224 Basic Calculator hard
225 Implement Stack using Queues cpp easy
226 Invert Binary Tree cpp easy
227 Basic Calculator II medium
228 Summary Ranges cpp easy
229 Majority Element II cpp medium
230 Kth Smallest Element in a BST cpp medium
231 Power of Two cpp easy
232 Implement Queue using Stacks cpp easy
233 Number of Digit One hard
234 Palindrome Linked List cpp easy
235 Lowest Common Ancestor of a Binary Search Tree cpp medium
236 Lowest Common Ancestor of a Binary Tree cpp medium
237 Delete Node in a Linked List cpp medium
238 Product of Array Except Self cpp medium
239 Sliding Window Maximum cpp hard
240 Search a 2D Matrix II cpp medium
241 Different Ways to Add Parentheses cpp medium
242 Valid Anagram cpp easy
243 Shortest Word Distance easy
244 Shortest Word Distance II medium
245 Shortest Word Distance III medium
246 Strobogrammatic Number easy
247 Strobogrammatic Number II medium
248 Strobogrammatic Number III hard
249 Group Shifted Strings medium
250 Count Univalue Subtrees medium
251 Flatten 2D Vector medium
252 Meeting Rooms easy
253 Meeting Rooms II medium
254 Factor Combinations medium
255 Verify Preorder Sequence in Binary Search Tree medium
256 Paint House medium
257 Binary Tree Paths cpp easy
258 Add Digits cpp easy
259 3Sum Smaller medium
260 Single Number III cpp medium
261 Graph Valid Tree medium
262 Trips and Users hard
263 Ugly Number cpp easy
264 Ugly Number II cpp medium
265 Paint House II hard
266 Palindrome Permutation easy
267 Palindrome Permutation II medium
268 Missing Number cpp easy
269 Alien Dictionary hard
270 Closest Binary Search Tree Value easy
271 Encode and Decode Strings medium
272 Closest Binary Search Tree Value II hard
273 Integer to English Words hard
274 H-Index cpp medium
275 H-Index II cpp medium
276 Paint Fence medium
277 Find the Celebrity medium
278 First Bad Version cpp easy
279 Perfect Squares cpp medium
280 Wiggle Sort medium
281 Zigzag Iterator medium
282 Expression Add Operators hard
283 Move Zeroes cpp easy
284 Peeking Iterator cpp medium
285 Inorder Successor in BST medium
286 Walls and Gates medium
287 Find the Duplicate Number cpp medium
288 Unique Word Abbreviation medium
289 Game of Life cpp medium
290 Word Pattern cpp easy
291 Word Pattern II medium
292 Nim Game cpp easy
293 Flip Game easy
294 Flip Game II medium
295 Find Median from Data Stream cpp hard
296 Best Meeting Point hard
297 Serialize and Deserialize Binary Tree cpp hard
298 Binary Tree Longest Consecutive Sequence medium
299 Bulls and Cows cpp medium
300 Longest Increasing Subsequence cpp medium
301 Remove Invalid Parentheses cpp hard
302 Smallest Rectangle Enclosing Black Pixels hard
303 Range Sum Query - Immutable cpp easy
304 Range Sum Query 2D - Immutable cpp medium
305 Number of Islands II hard
306 Additive Number cpp medium
307 Range Sum Query - Mutable cpp medium
308 Range Sum Query 2D - Mutable medium
309 Best Time to Buy and Sell Stock with Cooldown medium
310 Minimum Height Trees medium
311 Sparse Matrix Multiplication medium
312 Burst Balloons hard
313 Super Ugly Number cpp medium
314 Binary Tree Vertical Order Traversal medium
315 Count of Smaller Numbers After Self hard
316 Remove Duplicate Letters cpp medium
317 Shortest Distance from All Buildings hard
318 Maximum Product of Word Lengths cpp medium
319 Bulb Switcher cpp medium
320 Generalized Abbreviation medium
321 Create Maximum Number hard
322 Coin Change cpp medium
323 Number of Connected Components in an Undirected Graph medium
324 Wiggle Sort II cpp medium
325 Maximum Size Subarray Sum Equals k medium
326 Power of Three cpp easy
327 Count of Range Sum hard
328 Odd Even Linked List cpp medium
329 Longest Increasing Path in a Matrix cpp hard
330 Patching Array hard
331 Verify Preorder Serialization of a Binary Tree cpp medium
332 Reconstruct Itinerary hard
333 Largest BST Subtree medium
334 Increasing Triplet Subsequence cpp medium
335 Self Crossing hard
336 Palindrome Pairs cpp hard
337 House Robber III cpp medium
338 Counting Bits cpp easy
339 Nested List Weight Sum medium
340 Longest Substring with At Most K Distinct Characters medium
341 Flatten Nested List Iterator medium
342 Power of Four cpp easy
343 Integer Break cpp medium
344 Reverse String cpp easy
345 Reverse Vowels of a String cpp easy
346 Moving Average from Data Stream easy
347 Top K Frequent Elements cpp medium
348 Design Tic-Tac-Toe medium
349 Intersection of Two Arrays cpp easy
350 Intersection of Two Arrays II cpp easy
351 Android Unlock Patterns medium
352 Data Stream as Disjoint Intervals hard
353 Design Snake Game medium
354 Russian Doll Envelopes hard
355 Design Twitter cpp medium
356 Line Reflection medium
357 Count Numbers with Unique Digits cpp medium
358 Rearrange String k Distance Apart hard
359 Logger Rate Limiter easy
360 Sort Transformed Array medium
361 Bomb Enemy medium
362 Design Hit Counter medium
363 Max Sum of Rectangle No Larger Than K hard
364 Nested List Weight Sum II medium
365 Water and Jug Problem cpp medium
366 Find Leaves of Binary Tree medium
367 Valid Perfect Square cpp easy
368 Largest Divisible Subset medium
369 Plus One Linked List medium
370 Range Addition medium
371 Sum of Two Integers cpp medium
372 Super Pow medium
373 Find K Pairs with Smallest Sums medium
374 Guess Number Higher or Lower cpp easy
375 Guess Number Higher or Lower II medium
376 Wiggle Subsequence cpp medium
377 Combination Sum IV cpp medium
378 Kth Smallest Element in a Sorted Matrix cpp medium
379 Design Phone Directory medium
380 Insert Delete GetRandom O(1) cpp medium
381 Insert Delete GetRandom O(1) - Duplicates allowed hard
382 Linked List Random Node cpp medium
383 Ransom Note cpp easy
384 Shuffle an Array cpp medium
385 Mini Parser medium
386 Lexicographical Numbers cpp medium
387 First Unique Character in a String cpp easy
388 Longest Absolute File Path cpp medium
389 Find the Difference cpp easy
390 Elimination Game cpp medium
391 Perfect Rectangle hard
392 Is Subsequence cpp easy
393 UTF-8 Validation cpp medium
394 Decode String cpp medium
395 Longest Substring with At Least K Repeating Characters cpp medium
396 Rotate Function cpp medium
397 Integer Replacement cpp medium
398 Random Pick Index cpp medium
399 Evaluate Division cpp medium
400 Nth Digit cpp medium
401 Binary Watch cpp easy
402 Remove K Digits cpp medium
403 Frog Jump cpp hard
404 Sum of Left Leaves cpp easy
405 Convert a Number to Hexadecimal cpp easy
406 Queue Reconstruction by Height cpp medium
407 Trapping Rain Water II hard
408 Valid Word Abbreviation easy
409 Longest Palindrome cpp easy
410 Split Array Largest Sum cpp hard
411 Minimum Unique Word Abbreviation hard
412 Fizz Buzz cpp easy
413 Arithmetic Slices cpp medium
414 Third Maximum Number cpp easy
415 Add Strings cpp easy
416 Partition Equal Subset Sum cpp medium
417 Pacific Atlantic Water Flow medium
418 Sentence Screen Fitting medium
419 Battleships in a Board cpp medium
420 Strong Password Checker hard
421 Maximum XOR of Two Numbers in an Array cpp medium
422 Valid Word Square easy
423 Reconstruct Original Digits from English cpp medium
424 Longest Repeating Character Replacement cpp medium
425 Word Squares hard
432 All O`one Data Structure hard
433 Minimum Genetic Mutation medium
434 Number of Segments in a String cpp easy
435 Non-overlapping Intervals medium
436 Find Right Interval medium
437 Path Sum III cpp medium
438 Find All Anagrams in a String cpp medium
439 Ternary Expression Parser medium
440 K-th Smallest in Lexicographical Order hard
441 Arranging Coins cpp easy
442 Find All Duplicates in an Array cpp medium
443 String Compression cpp medium
444 Sequence Reconstruction medium
445 Add Two Numbers II cpp medium
446 Arithmetic Slices II - Subsequence hard
447 Number of Boomerangs cpp medium
448 Find All Numbers Disappeared in an Array cpp easy
449 Serialize and Deserialize BST cpp medium
450 Delete Node in a BST cpp medium
451 Sort Characters By Frequency cpp medium
452 Minimum Number of Arrows to Burst Balloons medium
453 Minimum Moves to Equal Array Elements cpp medium
454 4Sum II cpp medium
455 Assign Cookies cpp easy
456 132 Pattern cpp medium
457 Circular Array Loop cpp medium
458 Poor Pigs hard
459 Repeated Substring Pattern cpp easy
460 LFU Cache cpp hard
461 Hamming Distance cpp easy
462 Minimum Moves to Equal Array Elements II cpp medium
463 Island Perimeter cpp easy
464 Can I Win cpp medium
465 Optimal Account Balancing hard
466 Count The Repetitions hard
467 Unique Substrings in Wraparound String medium
468 Validate IP Address medium
469 Convex Polygon medium
471 Encode String with Shortest Length hard
472 Concatenated Words hard
473 Matchsticks to Square cpp medium
474 Ones and Zeroes medium
475 Heaters cpp medium
476 Number Complement cpp easy
477 Total Hamming Distance cpp medium
479 Largest Palindrome Product hard
480 Sliding Window Median hard
481 Magical String medium
482 License Key Formatting cpp easy
483 Smallest Good Base hard
484 Find Permutation medium
485 Max Consecutive Ones cpp easy
486 Predict the Winner medium
487 Max Consecutive Ones II medium
488 Zuma Game hard
489 Kth Smallest Instructions hard
490 The Maze medium
491 Non-decreasing Subsequences cpp medium
492 Construct the Rectangle cpp easy
493 Reverse Pairs hard
494 Target Sum cpp medium
495 Teemo Attacking cpp easy
496 Next Greater Element I cpp easy
498 Diagonal Traverse cpp medium
499 The Maze III hard
500 Keyboard Row cpp easy
501 Find Mode in Binary Search Tree cpp easy
502 IPO hard
503 Next Greater Element II medium
504 Base 7 cpp easy
505 The Maze II medium
506 Relative Ranks cpp easy
507 Perfect Number cpp easy
508 Most Frequent Subtree Sum cpp medium
509 Inorder Successor in BST II cpp medium
510 Count Subarrays With More Ones Than Zeros medium
511 All Paths from Source Lead to Destination medium
512 Maximum Alternating Subarray Sum medium
513 Find Bottom Left Tree Value cpp medium
514 Freedom Trail hard
515 Find Largest Value in Each Tree Row cpp medium
516 Longest Palindromic Subsequence medium
517 Super Washing Machines hard
518 Coin Change II medium
519 Widest Pair of Indices With Equal Range Sum medium
520 Detect Capital cpp easy
521 Longest Uncommon Subsequence I cpp easy
522 Longest Uncommon Subsequence II medium
523 Continuous Subarray Sum cpp medium
524 Longest Word in Dictionary through Deleting cpp medium
525 Contiguous Array cpp medium
526 Beautiful Arrangement cpp medium
527 Word Abbreviation hard
528 Swapping Nodes in a Linked List medium
529 Minesweeper cpp medium
530 Minimum Absolute Difference in BST cpp easy
531 Lonely Pixel I medium
532 K-diff Pairs in an Array cpp medium
533 Lonely Pixel II medium
535 Encode and Decode TinyURL medium
536 Construct Binary Tree from String medium
537 Complex Number Multiplication cpp medium
538 Convert BST to Greater Tree cpp medium
539 Minimum Time Difference cpp medium
540 Single Element in a Sorted Array cpp medium
541 Reverse String II cpp easy
542 01 Matrix cpp medium
543 Diameter of Binary Tree cpp easy
544 Output Contest Matches medium
545 Boundary of Binary Tree medium
546 Remove Boxes hard
547 Number of Provinces cpp medium
548 Split Array with Equal Sum hard
549 Binary Tree Longest Consecutive Sequence II medium
550 Shortest Path to Get Food medium
551 Student Attendance Record I cpp easy
552 Student Attendance Record II hard
553 Optimal Division cpp medium
554 Brick Wall cpp medium
555 Split Concatenated Strings medium
556 Next Greater Element III medium
557 Reverse Words in a String III cpp easy
560 Subarray Sum Equals K cpp medium
561 Array Partition cpp easy
562 Longest Line of Consecutive One in Matrix medium
563 Binary Tree Tilt cpp easy
564 Find the Closest Palindrome hard
565 Array Nesting cpp medium
566 Reshape the Matrix cpp easy
567 Permutation in String cpp medium
568 Maximum Vacation Days hard
569 Median Employee Salary hard
570 Managers with at Least 5 Direct Reports medium
571 Find Median Given Frequency of Numbers hard
572 Subtree of Another Tree cpp easy
573 Squirrel Simulation medium
574 Winning Candidate medium
575 Distribute Candies cpp easy
576 Out of Boundary Paths medium
577 Employee Bonus easy
578 Get Highest Answer Rate Question medium
579 Find Cumulative Salary of an Employee hard
580 Count Student Number in Departments medium
581 Shortest Unsorted Continuous Subarray cpp medium
582 Kill Process medium
583 Delete Operation for Two Strings cpp medium
584 Find Customer Referee easy
585 Investments in 2016 medium
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 cpp medium
593 Valid Square cpp medium
594 Longest Harmonious Subsequence cpp easy
595 Big Countries easy
596 Classes More Than 5 Students easy
597 Friend Requests I: Overall Acceptance Rate easy
598 Range Addition II cpp easy
599 Minimum Index Sum of Two Lists cpp easy
600 Non-negative Integers without Consecutive Ones hard
601 Human Traffic of Stadium hard
602 Friend Requests II: Who Has the Most Friends medium
603 Consecutive Available Seats easy
604 Design Compressed String Iterator cpp easy
605 Can Place Flowers cpp easy
606 Construct String from Binary Tree cpp medium
607 Sales Person easy
608 Tree Node medium
609 Find Duplicate File in System cpp medium
610 Triangle Judgement easy
611 Valid Triangle Number medium
612 Shortest Distance in a Plane medium
613 Shortest Distance in a Line easy
614 Second Degree Follower medium
615 Average Salary: Departments VS Company hard
616 Add Bold Tag in String medium
617 Merge Two Binary Trees cpp easy
618 Students Report By Geography hard
619 Biggest Single Number easy
620 Not Boring Movies easy
621 Task Scheduler cpp medium
623 Add One Row to Tree cpp medium
624 Maximum Distance in Arrays medium
625 Minimum Factorization medium
626 Exchange Seats medium
627 Swap Salary easy
628 Maximum Product of Three Numbers cpp easy
629 K Inverse Pairs Array hard
630 Course Schedule III hard
631 Design Excel Sum Formula hard
632 Smallest Range Covering Elements from K Lists hard
633 Sum of Square Numbers cpp medium
634 Find the Derangement of An Array medium
635 Design Log Storage System medium
636 Exclusive Time of Functions cpp medium
637 Average of Levels in Binary Tree cpp easy
638 Shopping Offers medium
639 Decode Ways II hard
640 Solve the Equation medium
642 Design Search Autocomplete System hard
643 Maximum Average Subarray I cpp easy
644 Maximum Average Subarray II hard
645 Set Mismatch cpp easy
646 Maximum Length of Pair Chain medium
647 Palindromic Substrings cpp medium
648 Replace Words cpp medium
649 Dota2 Senate medium
650 2 Keys Keyboard cpp medium
651 4 Keys Keyboard medium
652 Find Duplicate Subtrees medium
653 Two Sum IV - Input is a BST cpp easy
654 Maximum Binary Tree cpp medium
655 Print Binary Tree cpp medium
656 Coin Path hard
657 Robot Return to Origin cpp easy
658 Find K Closest Elements medium
659 Split Array into Consecutive Subsequences medium
660 Remove 9 hard
661 Image Smoother cpp easy
662 Maximum Width of Binary Tree medium
663 Equal Tree Partition medium
664 Strange Printer hard
665 Non-decreasing Array cpp medium
666 Path Sum IV medium
667 Beautiful Arrangement II medium
668 Kth Smallest Number in Multiplication Table hard
669 Trim a Binary Search Tree cpp medium
670 Maximum Swap cpp medium
671 Second Minimum Node In a Binary Tree cpp easy
672 Bulb Switcher II medium
673 Number of Longest Increasing Subsequence medium
674 Longest Continuous Increasing Subsequence cpp easy
675 Cut Off Trees for Golf Event hard
676 Implement Magic Dictionary cpp medium
677 Map Sum Pairs cpp medium
678 Valid Parenthesis String medium
679 24 Game hard
680 Valid Palindrome II cpp easy
681 Next Closest Time medium
682 Baseball Game cpp easy
683 K Empty Slots hard
684 Redundant Connection medium
685 Redundant Connection II hard
686 Repeated String Match cpp medium
687 Longest Univalue Path cpp medium
688 Knight Probability in Chessboard medium
689 Maximum Sum of 3 Non-Overlapping Subarrays hard
690 Employee Importance cpp medium
691 Stickers to Spell Word hard
692 Top K Frequent Words cpp medium
693 Binary Number with Alternating Bits easy
694 Number of Distinct Islands medium
695 Max Area of Island cpp medium
696 Count Binary Substrings cpp easy
697 Degree of an Array cpp easy
698 Partition to K Equal Sum Subsets cpp medium
699 Falling Squares hard
711 Number of Distinct Islands II hard
712 Minimum ASCII Delete Sum for Two Strings cpp medium
713 Subarray Product Less Than K medium
714 Best Time to Buy and Sell Stock with Transaction Fee medium
715 Range Module hard
716 Max Stack hard
717 1-bit and 2-bit Characters cpp easy
718 Maximum Length of Repeated Subarray cpp medium
719 Find K-th Smallest Pair Distance hard
720 Longest Word in Dictionary cpp medium
721 Accounts Merge medium
722 Remove Comments cpp medium
723 Candy Crush medium
724 Find Pivot Index cpp easy
725 Split Linked List in Parts medium
726 Number of Atoms hard
727 Minimum Window Subsequence hard
728 Self Dividing Numbers cpp easy
729 My Calendar I medium
730 Count Different Palindromic Subsequences hard
731 My Calendar II medium
732 My Calendar III hard
733 Flood Fill cpp easy
734 Sentence Similarity cpp easy
735 Asteroid Collision medium
736 Parse Lisp Expression hard
737 Sentence Similarity II medium
738 Monotone Increasing Digits medium
739 Daily Temperatures cpp medium
740 Delete and Earn cpp medium
741 Cherry Pickup hard
742 To Lower Case easy
743 Closest Leaf in a Binary Tree medium
744 Network Delay Time cpp medium
745 Find Smallest Letter Greater Than Target easy
746 Prefix and Suffix Search cpp hard
747 Min Cost Climbing Stairs cpp easy
748 Largest Number At Least Twice of Others cpp easy
749 Shortest Completing Word easy
750 Contain Virus hard
751 Number Of Corner Rectangles medium
752 IP to CIDR medium
753 Open the Lock medium
754 Cracking the Safe hard
755 Reach a Number medium
756 Pour Water medium
757 Pyramid Transition Matrix medium
758 Convert Binary Search Tree to Sorted Doubly Linked List medium
759 Set Intersection Size At Least Two hard
760 Bold Words in String medium
761 Employee Free Time hard
762 Find Anagram Mappings cpp easy
763 Special Binary String cpp hard
764 N-ary Tree Level Order Traversal medium
765 Serialize and Deserialize N-ary Tree hard
766 Flatten a Multilevel Doubly Linked List cpp medium
767 Prime Number of Set Bits in Binary Representation easy
768 Partition Labels medium
769 Largest Plus Sign medium
770 Couples Holding Hands hard
771 Encode N-ary Tree to Binary Tree cpp hard
772 Construct Quad Tree medium
773 Logical OR of Two Binary Grids Represented as Quad-Trees medium
774 Maximum Depth of N-ary Tree easy
775 N-ary Tree Preorder Traversal easy
776 N-ary Tree Postorder Traversal easy
777 Toeplitz Matrix easy
778 Reorganize String medium
779 Max Chunks To Make Sorted II hard
780 Max Chunks To Make Sorted medium
781 Basic Calculator IV hard
782 Jewels and Stones easy
783 Search in a Binary Search Tree cpp easy
784 Insert into a Binary Search Tree cpp medium
785 Basic Calculator III hard
786 Search in a Sorted Array of Unknown Size medium
787 Sliding Puzzle hard
788 Minimize Max Distance to Gas Station cpp hard
789 Kth Largest Element in a Stream easy
790 Global and Local Inversions medium
791 Split BST cpp medium
792 Binary Search easy
793 Swap Adjacent in LR String medium
794 Swim in Rising Water hard
795 K-th Symbol in Grammar medium
796 Reaching Points cpp hard
797 Rabbits in Forest cpp medium
798 Transform to Chessboard hard
799 Minimum Distance Between BST Nodes easy
800 Letter Case Permutation medium
801 Is Graph Bipartite? medium
802 K-th Smallest Prime Fraction medium
803 Cheapest Flights Within K Stops medium
804 Rotated Digits cpp medium
805 Escape The Ghosts medium
806 Domino and Tromino Tiling cpp medium
807 Custom Sort String medium
808 Number of Matching Subsequences medium
809 Preimage Size of Factorial Zeroes Function hard
810 Valid Tic-Tac-Toe State medium
811 Number of Subarrays with Bounded Maximum cpp medium
812 Rotate String cpp easy
813 All Paths From Source to Target medium
814 Smallest Rotation with Highest Score cpp hard
815 Champagne Tower medium
816 Design HashSet easy
817 Design HashMap easy
818 Similar RGB Color easy
819 Minimum Swaps To Make Sequences Increasing cpp hard
820 Find Eventual Safe States medium
821 Bricks Falling When Hit cpp hard
822 Unique Morse Code Words easy
823 Split Array With Same Average hard
824 Number of Lines To Write String cpp easy
825 Max Increase to Keep City Skyline medium
826 Soup Servings medium
827 Expressive Words medium
828 Chalkboard XOR Game hard
829 Subdomain Visit Count medium
830 Largest Triangle Area easy
831 Largest Sum of Averages medium
832 Binary Tree Pruning cpp medium
833 Bus Routes hard
834 Ambiguous Coordinates medium
835 Linked List Components medium
836 Race Car hard
837 Most Common Word easy
838 Design Linked List medium
839 Short Encoding of Words medium
841 Shortest Distance to a Character cpp easy
842 Card Flipping Game medium
843 Binary Trees With Factors medium
850 Insert into a Sorted Circular Linked List medium
851 Goat Latin easy
852 Friends Of Appropriate Ages cpp medium
853 Most Profit Assigning Work medium
854 Making A Large Island hard
855 Count Unique Characters of All Substrings of a Given String hard
856 Consecutive Numbers Sum hard
857 Positions of Large Groups easy
858 Masking Personal Information medium
859 Design Circular Deque medium
860 Design Circular Queue cpp medium
861 Flipping an Image easy
862 Find And Replace in String medium
863 Sum of Distances in Tree hard
864 Image Overlap medium
865 Robot Room Cleaner hard
866 Rectangle Overlap easy
867 New 21 Game cpp medium
868 Push Dominoes medium
869 Similar String Groups hard
870 Magic Squares In Grid medium
871 Keys and Rooms medium
872 Split Array into Fibonacci Sequence medium
873 Guess the Word cpp hard
874 Backspace String Compare easy
875 Longest Mountain in Array medium
876 Hand of Straights cpp medium
877 Shortest Path Visiting All Nodes cpp hard
878 Shifting Letters medium
879 Maximize Distance to Closest Person medium
880 Rectangle Area II hard
881 Loud and Rich medium
882 Peak Index in a Mountain Array medium
883 Car Fleet medium
884 K-Similar Strings cpp hard
885 Exam Room cpp medium
886 Score of Parentheses medium
887 Minimum Cost to Hire K Workers hard
888 Mirror Reflection medium
889 Buddy Strings easy
890 Lemonade Change easy
891 Score After Flipping Matrix medium
892 Shortest Subarray with Sum at Least K cpp hard
893 All Nodes Distance K in Binary Tree medium
894 Random Pick with Blacklist cpp hard
895 Shortest Path to Get All Keys hard
896 Smallest Subtree with all the Deepest Nodes cpp medium
897 Prime Palindrome cpp medium
898 Transpose Matrix easy
899 Binary Gap easy
900 Reordered Power of 2 medium
901 Advantage Shuffle medium
902 Minimum Number of Refueling Stops hard
903 Implement Rand10() Using Rand7() medium
904 Leaf-Similar Trees easy
905 Length of Longest Fibonacci Subsequence cpp medium
906 Walking Robot Simulation medium
907 Koko Eating Bananas medium
908 Middle of the Linked List cpp easy
909 Stone Game medium
910 Nth Magical Number hard
911 Profitable Schemes hard
912 Random Pick with Weight cpp medium
913 Random Flip Matrix medium
914 Random Point in Non-overlapping Rectangles medium
915 Generate Random Point in a Circle medium
916 Decoded String at Index medium
917 Boats to Save People cpp medium
918 Reachable Nodes In Subdivided Graph hard
919 Projection Area of 3D Shapes easy
920 Uncommon Words from Two Sentences easy
921 Spiral Matrix III medium
922 Possible Bipartition cpp medium
923 Super Egg Drop hard
924 Fair Candy Swap easy
925 Construct Binary Tree from Preorder and Postorder Traversal cpp medium
926 Find and Replace Pattern medium
927 Sum of Subsequence Widths hard
928 Surface Area of 3D Shapes easy
929 Groups of Special-Equivalent Strings cpp medium
930 All Possible Full Binary Trees medium
931 Maximum Frequency Stack hard
932 Monotonic Array easy
933 Increasing Order Search Tree cpp easy
934 Bitwise ORs of Subarrays medium
935 Orderly Queue hard
936 RLE Iterator medium
937 Online Stock Span medium
938 Numbers At Most N Given Digit Set cpp hard
939 Valid Permutations for DI Sequence hard
940 Fruit Into Baskets medium
941 Sort Array By Parity easy
942 Super Palindromes hard
943 Sum of Subarray Minimums medium
944 Smallest Range I easy
945 Snakes and Ladders medium
946 Smallest Range II medium
947 Online Election medium
948 Sort an Array medium
949 Cat and Mouse hard
950 X of a Kind in a Deck of Cards easy
951 Partition Array into Disjoint Intervals cpp medium
952 Word Subsets medium
953 Reverse Only Letters cpp easy
954 Maximum Sum Circular Subarray medium
955 Complete Binary Tree Inserter medium
956 Number of Music Playlists hard
957 Minimum Add to Make Parentheses Valid medium
958 Sort Array By Parity II easy
959 3Sum With Multiplicity medium
960 Minimize Malware Spread hard
961 Long Pressed Name cpp easy
962 Flip String to Monotone Increasing medium
963 Three Equal Parts hard
964 Minimize Malware Spread II hard
965 Unique Email Addresses cpp easy
966 Binary Subarrays With Sum medium
967 Minimum Falling Path Sum medium
968 Beautiful Array medium
969 Number of Recent Calls easy
971 Shortest Bridge medium
972 Knight Dialer medium
973 Stamping The Sequence cpp hard
974 Reorder Data in Log Files medium
975 Range Sum of BST easy
976 Minimum Area Rectangle medium
977 Distinct Subsequences II cpp hard
978 Valid Mountain Array easy
979 DI String Match cpp easy
980 Find the Shortest Superstring hard
981 Delete Columns to Make Sorted easy
982 Minimum Increment to Make Array Unique medium
983 Validate Stack Sequences cpp medium
984 Most Stones Removed with Same Row or Column medium
985 Bag of Tokens medium
986 Largest Time for Given Digits cpp medium
987 Reveal Cards In Increasing Order medium
988 Flip Equivalent Binary Trees medium
989 Largest Component Size by Common Factor hard
990 Verifying an Alien Dictionary easy
991 Array of Doubled Pairs medium
992 Delete Columns to Make Sorted II medium
993 Tallest Billboard cpp hard
994 Prison Cells After N Days medium
998 Check Completeness of a Binary Tree medium
999 Regions Cut By Slashes cpp medium
1000 Delete Columns to Make Sorted III hard
1001 N-Repeated Element in Size 2N Array easy
1002 Maximum Width Ramp cpp medium
1003 Minimum Area Rectangle II medium
1004 Least Operators to Express Number hard
1005 Univalued Binary Tree easy
1006 Vowel Spellchecker medium
1007 Numbers With Same Consecutive Differences medium
1008 Binary Tree Cameras cpp hard
1009 Pancake Sorting cpp medium
1010 Powerful Integers medium
1011 Flip Binary Tree To Match Preorder Traversal medium
1012 Equal Rational Numbers hard
1013 Fibonacci Number easy
1014 K Closest Points to Origin medium
1016 Subarray Sums Divisible by K medium
1017 Odd Even Jump hard
1018 Largest Perimeter Triangle easy
1019 Squares of a Sorted Array easy
1020 Longest Turbulent Subarray medium
1021 Distribute Coins in Binary Tree cpp medium
1022 Unique Paths III cpp hard
1023 Time Based Key-Value Store medium
1024 Triples with Bitwise AND Equal To Zero hard
1025 Minimum Cost For Tickets cpp medium
1026 String Without AAA or BBB cpp medium
1027 Sum of Even Numbers After Queries medium
1028 Interval List Intersections medium
1029 Vertical Order Traversal of a Binary Tree cpp hard
1030 Smallest String Starting From Leaf cpp medium
1031 Add to Array-Form of Integer easy
1032 Satisfiability of Equality Equations medium
1033 Broken Calculator medium
1034 Subarrays with K Different Integers hard
1035 Cousins in Binary Tree easy
1036 Rotting Oranges medium
1037 Minimum Number of K Consecutive Bit Flips hard
1038 Number of Squareful Arrays cpp hard
1039 Find the Town Judge easy
1040 Maximum Binary Tree II medium
1041 Available Captures for Rook easy
1042 Minimum Cost to Merge Stones hard
1043 Grid Illumination hard
1044 Find Common Characters easy
1045 Check If Word Is Valid After Substitutions medium
1046 Max Consecutive Ones III cpp medium
1047 Maximize Sum Of Array After K Negations cpp easy