当前位置:   article > 正文

LeetCode题解_653 unique trees found with 2035 total matches

653 unique trees found with 2035 total matches

转载:LeetCode

763Partition Labels64.10%Medium
762Prime Number of Set Bits in Binary Representation55.00%Easy
761Special Binary String 41.00%Hard
760Find Anagram Mappings $75.60%Easy
759Employee Free Time $51.90%Hard
758Bold Words in String $37.90%Easy
757Set Intersection Size At Least Two34.60%Hard
756Pyramid Transition Matrix 45.50%Medium
755Pour Water $34.00%Medium
754Reach a Number26.10%Medium
753Cracking the Safe  39.70%Hard
752Open the Lock
38.20%Medium
751IP to CIDR $54.80%Easy
750Number Of Corner Rectangles $51.00% Medium
749Contain Virus39.60%Hard
748Shortest Completing Word53.50%Medium
747Largest Number At Least Twice of Others 42.60%Easy
746Min Cost Climbing Stairs43.60%Easy 
745Prefix and Suffix Search24.50%Hard
744Find Smallest Letter Greater Than Target
45.30%Easy
743Network Delay Time34.30%Medium
742Closest Leaf in a Binary Tree $33.20%Medium
741Cherry Pickup22.50%Hard
740Delete and Earn 42.60%Medium
739Daily Temperatures53.50%Medium
738Monotone Increasing Digits 41.80% Medium
737Sentence Similarity II $41.20% Medium
736Parse Lisp Expression 42.00%Hard
735Asteroid Collision37.60%Medium
734Sentence Similarity $38.60% Easy
733Flood Fill49.30%Easy
732My Calendar III51.30%Hard
731My Calendar II35.00%Medium
730Count Different Palindromic Subsequences32.40%Hard
729My Calendar I40.10%Medium
728Self Dividing Numbers68.50%Easy
727Minimum Window Subsequence30.10%Hard
726Number of Atoms45.00%Hard
725Split Linked List in Parts50.00%Medium
724Find Pivot Index41.00%Easy
723Candy Crush $56.10%Medium
722Remove Comments26.30%Medium
721Accounts Merge29.60%Medium
720Longest Word in Dictionary40.60%Easy
719Find K-th Smallest Pair Distance26.10%Hard
718Maximum Length of Repeated Subarray39.90%Medium
7171-bit and 2-bit Characters50.90%Easy
716Max Stack $35.50%Hard
715Range Module31.00%Hard
714Best Time to Buy and Sell Stock with Transaction Fee41.60%Medium
713Subarray Product Less Than K32.90%Medium
712Minimum ASCII Delete Sum for Two Strings 50.90%Medium
711Number of Distinct Islands II $39.40%Hard
699Falling Squares36.80%Hard
698Partition to K Equal Sum Subsets35.60%Medium
697Degree of an Array47.90%Easy
696Count Binary Substrings51.90%Easy
695Max Area of Island 53.30%Easy
694Number of Distinct Islands $43.90%Medium
693Binary Number with Alternating Bits54.20%Easy
692Top K Frequent Words41.70%Medium
691Stickers to Spell Word32.30%Hard
690Employee Importance53.60%Easy
689Maximum Sum of 3 Non-Overlapping Subarrays41.70%Hard
688Knight Probability in Chessboard 38.90%Medium
687Longest Univalue Path 32.90%Easy
686Repeated String Match 31.70%Easy
685Redundant Connection II28.40%Hard
684Redundant Connection37.40%Medium
683K Empty Slots 37.00%Hard
682Baseball Game58.60%Easy
681Next Closest Time $43.00%Medium
680Valid Palindrome II31.10%Easy
67924 Game38.30% Hard
678Valid Parenthesis String28.30%Medium
677Map Sum Pairs 53.80%Medium
676Implement Magic Dictionary50.70%Medium
675Cut Off Trees for Golf Event27.20%Hard
674Longest Continuous Increasing Subsequence43.20%Easy
673Number of Longest Increasing Subsequence30.80%Medium
672Bulb Switcher II47.60%Medium
671Second Minimum Node In a Binary Tree 42.30%Easy
670Maximum Swap38.40%Medium
669Trim a Binary Search Tree58.70%Easy
668Kth Smallest Number in Multiplication Table 36.30%Hard
667Beautiful Arrangement II51.50%Medium
666Path Sum IV $48.90%Medium
665Non-decreasing Array21.20% Easy
664Strange Printer31.10%Hard
663Equal Tree Partition $36.70%Medium
662Maximum Width of Binary Tree37.00%Medium
661Image Smoother46.60%Easy
660Remove 9 $46.10%Hard
659Split Array into Consecutive Subsequences39.40%Medium
658Find K Closest Elements36.30%Medium
657Judge Route Circle69.30%Easy
656Coin Path $24.60%Hard
655Print Binary Tree50.80%Medium
654Maximum Binary Tree70.80%Medium
653Two Sum IV - Input is a BST50.60%Easy
652Find Duplicate Subtrees33.20%Medium
6514 Keys Keyboard $46.70%Medium
6502 Keys Keyboard42.70%Medium
649Dota2 Senate 35.60%Medium
648Replace Words48.40%Medium
647Palindromic Substrings55.70%Medium
646Maximum Length of Pair Chain47.40%Medium
645Set Mismatch40.40%Easy
644Maximum Average Subarray II $20.30%Hard
643Maximum Average Subarray I38.40%Easy
642Design Search Autocomplete System $29.40%Hard
640Solve the Equation39.00%Medium
639Decode Ways II22.80%Hard
638Shopping Offers41.50%Medium
637Average of Levels in Binary Tree55.60%Easy
636Exclusive Time of Functions40.30%Medium
635Design Log Storage System $47.70%Medium
634Find the Derangement of An Array $32.70%Medium
633Sum of Square Numbers31.60% Easy
632Smallest Range42.80%Hard
631Design Excel Sum Formula $25.60%Hard
630Course Schedule III20.50%Medium
629K Inverse Pairs Array23.90%Hard 
628Maximum Product of Three Numbers45.40%Easy
625Minimum Factorization29.50%Medium
624Maximum Distance in Arrays $32.70%Easy 
623Add One Row to Tree48.70% Medium
621Task Scheduler 41.40%Medium
617Merge Two Binary Trees69.60%Easy
616Add Bold Tag in String $37.30%Medium
611Valid Triangle Number38.90%Medium
609Find Duplicate File in System52.50%Medium
606Construct String from Binary Tree51.80%Easy
605Can Place Flowers30.00%Easy
604Design Compressed String Iterator $31.60%Easy
600Non-negative Integers without Consecutive Ones27.40%Hard
599Minimum Index Sum of Two Lists48.00%Easy
598Range Addition II48.30%Easy
594Longest Harmonious Subsequence40.00%Easy
593Valid Square39.20%Medium
592Fraction Addition and Subtraction47.00%Medium
591Tag Validator26.40%Hard
588Design In-Memory File System $32.40% Hard
587Erect the Fence29.90%Hard
583Delete Operation for Two Strings44.00%Medium
582Kill Process $47.70%Medium
581Shortest Unsorted Continuous Subarray30.10%Easy
576Out of Boundary Paths33.10%Medium
575Distribute Candies 59.50%Easy
573Squirrel Simulation51.00%Medium
572Subtree of Another Tree41.00%Easy
568Maximum Vacation Days $39.90%Hard
567Permutation in String36.30%Medium
566Reshape the Matrix59.80%Easy
565Array Nesting50.00%Medium
564Find the Closest Palindrome16.60%Hard
563Binary Tree Tilt47.00%Easy
562Longest Line of Consecutive One in Matrix $38.80%Medium
561Array Partition I69.80%Easy
560Subarray Sum Equals K 41.80%Medium
557Reverse Words in a String III61.20%Easy
556Next Greater Element III27.70%Medium
555Split Concatenated Strings $30.00%Medium
554Brick Wall 42.70%Medium
553Optimal Division 55.20%Medium
552Student Attendance Record II28.50%Hard
551Student Attendance Record I43.90%Easy
549Binary Tree Longest Consecutive Sequence II $38.10%Medium
548Split Array with Equal Sum $30.80%Medium
547Friend Circles49.00%Medium
546Remove Boxes29.60%Hard
545Boundary of Binary Tree $29.10%Medium
544Output Contest Matches $73.20%Medium
543Diameter of Binary Tree42.70%Easy
54201 Matrix32.50%Medium
541Reverse String II44.40%Easy
540Single Element in a Sorted Array55.90%Medium
539Minimum Time Difference 44.70%Medium
538Convert BST to Greater Tree52.70%Medium
537Complex Number Multiplication65.90%Medium
536Construct Binary Tree from String $36.30%Medium
535Encode and Decode TinyURL76.10%Medium
534Design TinyURLN/AMedium
533Lonely Pixel II $38.90%Medium
532K-diff Pairs in an Array27.20%Easy
531Lonely Pixel I $50.20%Medium
530Minimum Absolute Difference in BST48.00%Easy
529Minesweeper52.00%Medium
527Word Abbreviation $33.90%Hard
526Beautiful Arrangement53.50%Medium
525Contiguous Array  34.40%Medium
524Longest Word in Dictionary through Deleting40.20%Medium
523Continuous Subarray Sum21.30Medium
522Longest Uncommon Subsequence II28.10%Medium
521Longest Uncommon Subsequence I50.70%Easy
520Detect Capital54.20%Easy
518Coin Change 233.20%Medium
517Super Washing Machines34.60%Hard
516Longest Palindromic Subsequence42.00%Medium
515Find Largest Value in Each Tree Row52.70%Medium
514Freedom Trail27.20%Hard
513Find Bottom Left Tree Value55.60%Medium
508Most Frequent Subtree Sum52.00%Medium
507Perfect Number32.70%Easy
506Relative Ranks48.50%Easy
505The Maze II34.80%Medium
504Base 746.40%Easy
503Next Greater Element II46.20%Medium
502IPO32.40%Hard
501Find Mode in Binary Search Tree39.40%Easy
500Keyboard Row 60.20%Easy
499The Maze III32.00%Hard
498Diagonal Traverse46.20%Medium
496Next Greater Element I 58.80%Easy
495Teemo Attacking51.90%Medium
494Target Sum44.40%Medium
493Reverse Pairs17.10%Hard
492Construct the Rectangle49.70%Easy
491Increasing Subsequences39.30% Medium
490The Maze42.80%Medium
488Zuma Game 38.00%Hard
487Max Consecutive Ones II $42.70%Medium
486Predict the Winner43.60%Medium
485Max Consecutive Ones 55.30%Easy
484Find Permutation $50.50%Medium
483Smallest Good Base   30.60%Hard
482License Key Formatting41.20%Medium
481Magical String46.20%Medium
480Sliding Window Median31.00%Hard
479Largest Palindrome Product23.90%Easy
477Total Hamming Distance44.10%Medium
476Number Complement61.20%Easy
475Heaters 30.20%Easy
474Ones and Zeroes 34.90%Medium
473Matchsticks to Square 31.80%Medium
472Concatenated Words29.20%Hard
471Encode String with Shortest Length $43.50%Hard
469Convex Polygon $27.20%Medium
468Validate IP Address22.10%Medium
467Unique Substrings in Wraparound String29.90%Medium
466Count The Repetitions 24.20%Hard
465Optimal Account Balancing $29.20%Hard
464Can I Win 22.20%Medium
463Island Perimeter 56.70%Easy
462Minimum Moves to Equal Array Elements II50.90%Medium
461Hamming Distance 73.20%Easy
460LFU Cache18.30%Hard
459Repeated Substring Pattern 39.70%Easy
458Poor Pigs40.70%Easy
457Circular Array Loop20.60%Medium
456132 Pattern 28.00%Medium
455Assign Cookies48.10%Easy
4544Sum II42.80%Medium
453Minimum Moves to Equal Array Elements46.30%Easy
452Minimum Number of Arrows to Burst Balloons 42.10%Medium
451Sort Characters By Frequency50.90%Medium
450Delete Node in a BST34.50%Medium
449Serialize and Deserialize BST 41.20%Medium
448Find All Numbers Disappeared in an Array58.30%Easy
447Number of Boomerangs  42.20%Easy 
446Arithmetic Slices II - Subsequence 22.30%Hard 
445Add Two Numbers II  45.40%Medium
444Sequence Reconstruction $20.50%Medium
442Find All Duplicates in an Array46.40%Medium
441Arranging Coins36.20%Easy 
440K-th Smallest in Lexicographical Order 21.50%Hard 
439Ternary Expression Parser $49.40%Medium
438Find All Anagrams in a String 33.50%Easy 
437Path Sum III  38.60%Easy
436Find Right Interval 42.30%Medium
435Non-overlapping Intervals 39.80%Medium
434Number of Segments in a String  38.40%Easy 
433Minimum Genetic Mutation33.50%Medium
432All O`one Data Structure28.30%Hard 
425Word Squares40.10%Hard
424Longest Repeating Character Replacement38.10%Medium
423Reconstruct Original Digits from English40.80%Medium
422Valid Word Square $36.40%Easy
421Maximum XOR of Two Numbers in an Array36.40%Medium
420Strong Password Checker 22.10%Hard
419Battleships in a Board 59.30%Medium
418Sentence Screen Fitting $25.10%Medium
417Pacific Atlantic Water Flow31.10%Medium
416Partition Equal Subset Sum36.80%Medium
415Add Strings 41.50%Easy
414Third Maximum Number  26.50%Easy
413Arithmetic Slices 53.50%Medium
412Fizz Buzz57.50%Easy 
411Minimum Unique Word Abbreviation $25.60%Hard
410Split Array Largest Sum 25.00%Hard
409Longest Palindrome 44.90%Easy
408Valid Word Abbreviation $26.20%Easy
407Trapping Rain Water II 33.10%Hard
406Queue Reconstruction by Height54.10%Medium
405Convert a Number to Hexadecimal41.80%Easy
404Sum of Left Leaves 46.20%Easy
403Frog Jump31.70%Hard
402Remove K Digits 25.90%Medium
401Binary Watch 43.00%Easy
400Nth Digit30.70%Easy
399Evaluate Division34.60%Medium
398Random Pick Index30.40%Medium
397Integer Replacement25.90%Easy
396Rotate Function 28.40%Easy
395Longest Substring with At Least K Repeating Characters32.50%Medium
394Decode String38.60%Medium
393UTF-8 Validation 33.00%Medium
392Is Subsequence  44.10%Medium
391Perfect Rectangle13.30%Hard 
390Elimination Game12.50% Medium
389Find the Difference49.90%Easy 
388Longest Absolute File Path 28.30% Medium
387First Unique Character in a String 43.10% Easy 
386Lexicographical Numbers31.00% Medium
385Mini Parser 26.90% Medium
384Shuffle an Array 45.50% Medium
383Ransom Note44.60% Easy 
382Linked List Random Node 48.60%Medium
381Insert Delete GetRandom O(1) - Duplicates allowed30.90%Hard
380Insert Delete GetRandom O(1)33.80%Medium
379Design Phone Directory $ 25.80% Medium
378Kth Smallest Element in a Sorted Matrix40.20%Medium
377Combination Sum IV 37.50%Medium
376Wiggle Subsequence35.80%Medium
375Guess Number Higher or Lower II 28.30%Medium
374Guess Number Higher or Lower 31.70%Easy
373Find K Pairs with Smallest Sums 25.50%Medium
372Super Pow30.10%Medium
371Sum of Two Integers 54.00%Easy
370Range Addition $49.90%Medium
369Plus One Linked List $50.10%Medium
368Largest Divisible Subset 32.00%Medium
367Valid Perfect Square 36.60%Medium
366Find Leaves of Binary Tree $53.60%Medium
365Water and Jug Problem 20.10%Medium
364Nested List Weight Sum II $47.20%Medium
363Max Sum of Rectangle No Larger Than K27.00%Hard
362Design Hit Counter $48.30%Medium
361Bomb Enemy $32.60%Medium
360Sort Transformed Array $40.80%Medium
359Logger Rate Limiter $56.00%Easy
358Rearrange String k Distance Apart $26.90%Hard
357Count Numbers with Unique Digits 42.50%Medium
356Line Reflection $28.70%Medium
355Design Twitter22.20%Medium
354Russian Doll Envelopes 27.10%Hard
353Design Snake Game $19.80%Medium
352Data Stream as Disjoint Intervals 34.40%Hard
351Android Unlock Patterns $32.00%Medium
350Intersection of Two Arrays II41.50%Easy
349Intersection of Two Arrays47.80% Easy 
348Design Tic-Tac-Toe  $45.60%Medium
347Top K Frequent Elements 44.50%Medium
346Moving Average from Data Stream  $69.20%Easy
345Reverse Vowels of a String 35.30%Easy
344Reverse String58.90%Easy
343Integer Break43.60%Medium
342Power of Four34.10%Easy
341Flatten Nested List Iterator $18.70%Medium
340Longest Substring with At Most K Distinct Characters $36.30%Hard
339Nested List Weight Sum $54.60%Easy
338Counting Bits 55.40%Medium
337House Robber III 37.00%Medium
336Palindrome Pairs 18.70%Hard
335Self Crossing 18.00%Medium
334Increasing Triplet Subsequence33.20%Medium
333Largest BST Subtree $26.50%Medium
332Reconstruct Itinerary23.40%Medium
331Verify Preorder Serialization of a Binary Tree31.50%Medium
330Patching Array28.80%Medium
329Longest Increasing Path in a Matrix29.50%Medium
328Odd Even Linked List37.80%Easy
327Count of Range Sum24.30%Hard
326Power of Three35.30%Easy
325Maximum Size Subarray Sum Equals k $39.60%Easy
324Wiggle Sort II20.10%Medium
323Number of Connected Components in an Undirected Graph $43.30%Medium
322Coin Change24.90%Medium
321Create Maximum Number19.10%Hard
320Generalized Abbreviation $40.40%Medium
319Bulb Switcher39.20%Medium
318Maximum Product of Word Lengths38.70%Medium
317Shortest Distance from All Buildings $29.10%Hard 
316Remove Duplicate Letters23.00%Medium
315Count of Smaller Numbers After Self28.20%Hard 
314Binary Tree Vertical Order Traversal $30.10%Medium
313Super Ugly Number31.20%Medium
312Burst Balloons24.50%Medium
311Sparse Matrix Multiplication $40.00%Medium
310Minimum Height Trees 20.20%Medium
309Best Time to Buy and Sell Stock with Cooldown 32.60%Medium
308Range Sum Query 2D - Mutable $20.30%Hard
307Range Sum Query - Mutable 14.50%Medium
306Additive Number23.30%Medium
305Number of Islands II $26.70%Hard
304Range Sum Query 2D - Immutable21.50%Medium
303Range Sum Query - Immutable25.70%Easy
302Smallest Rectangle Enclosing Black Pixels $36.70%Hard
301Remove Invalid Parentheses27.00%Hard
300Longest Increasing Subsequence31.50%Medium
299Bulls and Cows23.80%Easy
298Binary Tree Longest Consecutive Sequence $32.20%Medium
297Serialize and Deserialize Binary Tree23.80%Medium
296Best Meeting Point $41.40%Hard
295Find Median from Data Stream18.60%Hard
294Flip Game II $38.10%Medium
293Flip Game $47.60%Easy
292Nim Game 49.50%Easy
291Word Pattern II $31.50%Hard
290Word Pattern26.50%Easy
289Game of Life32.60%Medium
288Unique Word Abbreviation $16.80%Easy
287Find the Duplicate Number32.80%Hard
286Walls and Gates $29.90%Medium
285Inorder Successor in BST $32.50%Medium
284Peeking Iterator31.00%Medium
283Move Zeroes41.40%Easy
282Expression Add Operators18.90%Hard
281Zigzag Iterator $37.20%Medium
280Wiggle Sort $43.30%Medium
279Perfect Squares28.80%Medium
278First Bad Version19.80%Easy
277Find the Celebrity $31.70%Medium
276Paint Fence $25.00%Easy
275H-Index II31.40%Medium
274H-Index25.30%Medium
273Integer to English Words15.50%Medium
272Closest Binary Search Tree Value II $26.90%Hard
271Encode and Decode Strings $25.40%Medium
270Closest Binary Search Tree Value $29.40%Easy
269Alien Dictionary $16.50%Hard
268Missing Number34.70%Medium
267Palindrome Permutation II $22.50%Medium
266Palindrome Permutation $45.80%Easy
265Paint House II $30.00%Hard
264Ugly Number II21.60%Medium
263Ugly Number32.6%Easy
262Trips and Users *16.10%Hard
261Graph Valid Tree $25.40%Medium
260Single Number III37.60%Medium
2593Sum Smaller $34.20%Medium
258Add Digits46.50%Easy
257Binary Tree Paths21.90%Easy
256Paint House $38.40%Medium
255Verify Preorder Sequence in Binary Search Tree $32.30%Medium
254Factor Combinations $29.00%Medium
253Meeting Rooms II $28.80%Medium
252Meeting Rooms $35.40%Easy
251Flatten 2D Vector $28.30%Medium
250Count Univalue Subtrees $32.70%Medium
249Group Shifted Strings $25.20%Easy
248Strobogrammatic Number III $21.80%Hard
247Strobogrammatic Number II $26.70%Medium
246Strobogrammatic Number $31.60%Easy
245Shortest Word Distance III $43.20%Medium
244Shortest Word Distance II $33.70%Medium
243Shortest Word Distance $41.80%Easy
242Valid Anagram39.30%Easy
241Different Ways to Add Parentheses27.10%Medium
240Search a 2D Matrix II31.40%Medium
239Sliding Window Maximum24.30%Hard 
238Product of Array Except Self42.40%Medium
237Delete Node in a Linked List50.90%Easy
236Lowest Common Ancestor of a Binary Tree28.30%Medium
235Lowest Common Ancestor of a Binary Search Tree38.90%Medium
234Palindrome Linked List23.80%Easy
233Number of Digit One16.10%Medium
232Implement Queue using Stacks37.40%Easy
231Power of Two31.30%Easy
230Kth Smallest Element in a BST30.50%Medium
229Majority Element II30.50%Medium
228Summary Ranges21.10%Easy
227Basic Calculator II18.00%Medium
226Invert Binary Tree35.40%Easy
225Implement Stack using Queues29.60%Medium
224Basic Calculator15.80%Medium
223Rectangle Area25.60%Easy
222Count Complete Tree Nodes19.40%Medium
221Maximal Square20.30%Medium
220Contains Duplicate III15.30%Medium
219Contains Duplicate II25.60%Easy
218The Skyline Problem16.20%Hard
217Contains Duplicate35.90%Easy
216Combination Sum III27.70%Medium
215Kth Largest Element in an Array27.30%Medium
214Shortest Palindrome16.80%Hard
213House Robber II26.30%Medium
212Word Search II15.00%Hard
211Add and Search Word - Data structure design20.70%Medium
210Course Schedule II19.30%Medium
209Minimum Size Subarray Sum22.90%Medium
208Implement Trie (Prefix Tree)24.80%Medium
207Course Schedule21.70%Medium
206Reverse Linked List31.50%Easy
205Isomorphic Strings24.20%Easy
204Count Primes19.00%Easy
203Remove Linked List Elements25.80%Easy
202Happy Number31.40%Easy
201Bitwise AND of Numbers Range23.30%Medium
200Number of Islands21.90%Medium
199Binary Tree Right Side View27.10%Medium
198House Robber28.80%Easy
197Rising Temperature *25.90%Easy
196Delete Duplicate Emails *19.00%Easy
195Tenth Line #32.20%Easy
194Transpose File #21.40%Medium
193Valid Phone Numbers #24.40%Easy
192Word Frequency #26.10%Medium
191Number of 1 Bits37.30%Easy
190Reverse Bits28.40%Easy
189Rotate Array17.80%Easy
188Best Time to Buy and Sell Stock IV17.30%Hard
187Repeated DNA Sequences19.50%Medium
186Reverse Words in a String II $31.10%Medium
185Department Top Three Salaries *15.20%Hard
184Department Highest Salary *19.00%Medium
183Customers Who Never Order *33.70%Easy
182Duplicate Emails *38.10%Easy
181Employees Earning More Than Their Managers *41.00%Easy
180Consecutive Numbers *26.60%Medium
179Largest Number15.70%Medium
178Rank Scores *24.60%Medium
177Nth Highest Salary *16.30%Medium
176Second Highest Salary *25.00%Easy
175Combine Two Tables *34.40%Easy
174Dungeon Game17.70%Hard
173Binary Search Tree Iterator29.30%Medium
172Factorial Trailing Zeroes28.40%Easy
171Excel Sheet Column Number36.50%Easy
170Two Sum III - Data structure design $24.70%Easy
169Majority Element35.00%Easy
168Excel Sheet Column Title18.10%Easy
167Two Sum II - Input array is sorted $43.30%Medium
166Fraction to Recurring Decimal12.70%Medium
165Compare Version Numbers15.20%Easy
164Maximum Gap24.40%Hard
163Missing Ranges $24.10%Medium
162Find Peak Element31.50%Medium
161One Edit Distance $24.00%Medium
160Intersection of Two Linked Lists28.70%Easy
159Longest Substring with At Most Two Distinct Characters $30.20%Hard
158Read N Characters Given Read4 II - Call multiple times $22.30%Hard
157Read N Characters Given Read4 $29.80%Easy
156Binary Tree Upside Down $34.30%Medium
155Min Stack18.50%Easy
154Find Minimum in Rotated Sorted Array II31.90%Hard
153Find Minimum in Rotated Sorted Array33.30%Medium
152Maximum Product Subarray19.40%Medium
151Reverse Words in a String15.10%Medium
150Evaluate Reverse Polish Notation21.10%Medium
149Max Points on a Line12.60%Hard
148Sort List22.00%Medium
147Insertion Sort List26.40%Medium
146LRU Cache15.00%Hard
145Binary Tree Postorder Traversal32.40%Hard
144Binary Tree Preorder Traversal36.30%Medium
143Reorder List21.00%Medium
142Linked List Cycle II31.40%Medium
141Linked List Cycle36.30%Medium
140Word Break II17.70%Hard
139Word Break23.00%Medium
138Copy List with Random Pointer25.10%Hard
137Single Number II35.00%Medium
136Single Number45.10%Medium
135Candy20.50%Hard
134Gas Station25.70%Medium
133Clone Graph24.00%Medium
132Palindrome Partitioning II19.70%Hard
131Palindrome Partitioning26.70%Medium
130Surrounded Regions14.60%Medium
129Sum Root to Leaf Numbers30.30%Medium
128Longest Consecutive Sequence29.40%Hard
127Word Ladder19.30%Medium
126Word Ladder II12.90%Hard
125Valid Palindrome22.00%Easy
124Binary Tree Maximum Path Sum21.50%Hard
123Best Time to Buy and Sell Stock III23.90%Hard
122Best Time to Buy and Sell Stock II38.30%Medium
121Best Time to Buy and Sell Stock32.60%Medium
120Triangle27.40%Medium
119Pascal’s Triangle II29.40%Easy
118Pascal’s Triangle30.10%Easy
117Populating Next Right Pointers in Each Node II32.00%Hard
116Populating Next Right Pointers in Each Node36.20%Medium
115Distinct Subsequences26.30%Hard
114Flatten Binary Tree to Linked List28.80%Medium
113Path Sum II26.60%Medium
112Path Sum29.80%Easy
111Minimum Depth of Binary Tree29.10%Easy
110Balanced Binary Tree32.00%Easy
109Convert Sorted List to Binary Search Tree27.90%Medium
108Convert Sorted Array to Binary Search Tree34.00%Medium
107Binary Tree Level Order Traversal II31.10%Easy
106Construct Binary Tree from Inorder and Postorder Traversal26.80%Medium
105Construct Binary Tree from Preorder and Inorder Traversal26.40%Medium
104Maximum Depth of Binary Tree45.10%Easy
103Binary Tree Zigzag Level Order Traversal26.40%Medium
102Binary Tree Level Order Traversal29.30%Easy
101Symmetric Tree31.60%Easy
100Same Tree41.80%Easy
99Recover Binary Search Tree24.30%Hard
98Validate Binary Search Tree20.60%Medium
97Interleaving String20.80%Hard
96Unique Binary Search Trees36.00%Medium
95Unique Binary Search Trees II28.00%Medium
94Binary Tree Inorder Traversal36.20%Medium
93Restore IP Addresses21.00%Medium
92Reverse Linked List II26.10%Medium
91Decode Ways16.40%Medium
90Subsets II27.70%Medium
89Gray Code32.80%Medium
88Merge Sorted Array29.70%Easy
87Scramble String24.20%Hard
86Partition List27.50%Medium
85Maximal Rectangle22.00%Hard
84Largest Rectangle in Histogram22.60%Hard
83Remove Duplicates from Sorted List34.50%Easy
82Remove Duplicates from Sorted List II25.00%Medium
81Search in Rotated Sorted Array II31.40%Medium
80Remove Duplicates from Sorted Array II30.50%Medium
79Word Search20.30%Medium
78Subsets28.20%Medium
77Combinations30.90%Medium
76Minimum Window Substring18.90%Hard
75Sort Colors32.60%Medium
74Search a 2D Matrix31.60%Medium
73Set Matrix Zeroes31.40%Medium
72Edit Distance26.20%Hard
71Simplify Path20.00%Medium
70Climbing Stairs34.40%Easy
69Sqrt(x)23.10%Medium
68Text Justification14.60%Hard
67Add Binary24.70%Easy
66Plus One30.40%Easy
65Valid Number11.40%Hard
64Minimum Path Sum32.20%Medium
63Unique Paths II28.00%Medium
62Unique Paths32.80%Medium
61Rotate List21.70%Medium
60Permutation Sequence22.80%Medium
59Spiral Matrix II31.80%Medium
58Length of Last Word28.00%Easy
57Insert Interval21.40%Hard
56Merge Intervals22.40%Hard
55Jump Game27.00%Medium
54Spiral Matrix20.80%Medium
53Maximum Subarray34.50%Medium
52N-Queens II35.80%Hard
51N-Queens26.50%Hard
50Pow(x, n)26.70%Medium
49Anagrams24.30%Medium
48Rotate Image31.90%Medium
47Permutations II25.80%Hard
46Permutations31.90%Medium
45Jump Game II24.20%Hard
44Wildcard Matching15.00%Hard
43Multiply Strings21.00%Medium
42Trapping Rain Water30.00%Hard
41First Missing Positive22.90%Hard
40Combination Sum II25.20%Medium
39Combination Sum27.90%Medium
38Count and Say25.20%Easy
37Sudoku Solver21.80%Hard
36Valid Sudoku27.20%Easy
35Search Insert Position35.40%Medium
34Search for a Range27.50%Medium
33Search in Rotated Sorted Array28.80%Hard
32Longest Valid Parentheses20.90%Hard
31Next Permutation25.00%Medium
30Substring with Concatenation of All Words19.40%Hard
29Divide Two Integers15.00%Medium
28Implement strStr()22.20%Easy
27Remove Element32.10%Easy
26Remove Duplicates from Sorted Array31.30%Easy
25Reverse Nodes in k-Group25.50%Hard
24Swap Nodes in Pairs32.50%Medium
23Merge k Sorted Lists21.10%Hard
22Generate Parentheses32.60%Medium
21Merge Two Sorted Lists32.70%Easy
20Valid Parentheses26.50%Easy
19Remove Nth Node From End of List27.10%Easy
184Sum21.70%Medium
17Letter Combinations of a Phone Number25.80%Medium
163Sum Closest26.90%Medium
153Sum16.90%Medium
14Longest Common Prefix25.50%Easy
13Roman to Integer34.00%Easy
12Integer to Roman33.80%Medium
11Container With Most Water32.00%Medium
10Regular Expression Matching20.70%Hard
9Palindrome Number28.30%Easy
8String to Integer (atoi)13.00%Easy
7Reverse Integer25.10%Easy
6ZigZag Conversion21.80%Easy
5Longest Palindromic Substring20.70%Medium
4Median of Two Sorted Arrays17.40%Hard
3Longest Substring Without Repeating Characters20.60%Medium
2Add Two Numbers21.10%Medium
1Two Sum17.70%Medium
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/122933
推荐阅读
相关标签
  

闽ICP备14008679号