状态

#

解题报告

分类

难度


494  Target sum  Algorithms  Medium  
492  Construct the rectangle  Algorithms  Easy  
491  Increasing Subsequences  Algorithms  Medium  
488  Zuma Game  Algorithms  Hard  
487  Max Consecutive Ones II  Algorithms  Medium  
486  Predict the Winner  Algorithms  Medium  
485  Max Consecutive Ones  Algorithms  Easy  
484  Find Permutation  Algorithms  Medium  
483  Smallest Good Base  Algorithms  Hard  
482  License Key Formatting  Algorithms  Medium  
481  Magical String  Algorithms  Medium  
480  Sliding Window Median  Algorithms  Hard  
479  Largest Palindrome Product  Draft  Easy  
477  Total Hamming Distance  Algorithms  Medium  
476  Number Complement  Algorithms  Easy  
475  Heaters  Algorithms  Easy  
474  Ones and Zeroes  Algorithms  Medium  
473  Matchsticks to Square  Algorithms  Medium  
471  Encode String with Shortest Length  Algorithms  Hard  
469  Convex Polygon  Algorithms  Medium  
468  Validate IP Address  Algorithms  Medium  
467  Unique Substrings in Wraparound String  Algorithms  Medium  
466  Count The Repetitions  Algorithms  Hard  
465  Optimal Account Balancing  Algorithms  Hard  
464  Can I Win  Algorithms  Medium  
463  Island Perimeter  Algorithms  Easy  
462  Minimum Moves to Equal Array Elements II  Algorithms  Medium  
461  Hamming Distance  Algorithms  Easy  
460  LFU Cache  Draft  Hard  
459  Repeated Substring Pattern  Algorithms  Easy  
458  Poor Pigs  Draft  Easy  
457  Circular Array Loop  Draft  Medium  
456  132 Pattern  Algorithms  Medium  
455  Assign Cookies  Algorithms  Easy  
454  4Sum II  Algorithms  Medium  
453  Minimum Moves to Equal Array Elements  Algorithms  Easy  
452  Minimum Number of Arrows to Burst Balloons  Algorithms  Medium  
451  Sort Characters By Frequency  Draft  Medium  
450  Delete Node in a BST  Draft  Medium  
449  Serialize and Deserialize BST  Draft  Medium  
448  Find All Numbers Disappeared in an Array  Draft  Medium  
447  Number of Boomerangs  Algorithms  Easy  
446  Arithmetic Slices II  Subsequence  Algorithms  Hard  
445  Add Two Numbers II  Draft  Medium  
444  Sequence Reconstruction  Algorithms  Medium  
442  Find All Duplicates in an Array  Draft  Medium  
441  Arranging Coins  Algorithms  Easy  
440  Kth Smallest in Lexicographical Order  Algorithms  Hard  
439  Ternary Expression Parser  Algorithms  Medium  
438  Find All Anagrams in a String  Algorithms  Easy  
437  Path Sum III  Algorithms  Easy  
436  Find Right Interval  Algorithms  Medium  
435  Nonoverlapping Intervals  Algorithms  Medium  
434  Number of Segments in a String  Algorithms  Easy  
433  Minimum Genetic Mutation  Draft  Medium  
432  All O`one Data Structure  Draft  Hard  
425  Word Squares  Algorithms  Hard  
424  Longest Repeating Character Replacement  Algorithms  Medium  
423  Reconstruct Original Digits from English  Algorithms  Easy  
422  Valid Word Square  Algorithms  Easy  
421  Maximum XOR of Two Numbers in an Array  Algorithms  Medium  
420  Strong Password Checker  Algorithms  Hard  
419  Battleships in a board  Algorithms  Medium  
418  Sentence Screen Fitting  Algorithms  Hard  
417  Pacific Atlantic Water Flow  Algorithms  Medium  
416  Partition Equal Subset Sum  Algorithms  Medium  
415  Add Strings  Algorithms  Easy  
414  Third Maximum Number  Algorithms  Easy  
413  Arithmetic Slices  Algorithms  Easy  
412  Fizz Buzz  Algorithms  Easy  
411  Minimum Unique Word Abbreviation  Algorithms  Medium  
410  Split Array Largest Sum  Algorithms  Medium  
409  Longest Palindrome  Algorithms  Easy  
408  Valid Word Abbreviation  Algorithms  Easy  
407  Trapping Rain Water II  Algorithms  Hard  
406  Queue Reconstruction by Height  Algorithms  Medium  
405  Convert a Number to Hexadecimal  Algorithms  Easy  
404  Sum of Left Leaves  Algorithms  Easy  
403  Frog Jump  Algorithms  Hard  
402  Remove K Digits  Algorithms  Medium  
401  Binary Watch  Algorithms  Easy  
400  Nth Digit  Algorithms  Easy  
399  Evaluate Division  Algorithms  Medium  
398  Random Pick Index  Algorithms  Medium  
397  Integer Replacement  Algorithms  Easy  
396  Rotate Function  Algorithms  Easy  
395  Longest Substring with At Least K Repeating Characters  Algorithms  Medium  
394  Decode String  Algorithms  Medium  
393  UTF8 Validation  Algorithms  Medium  
392  Is Subsequence  Algorithms  Medium  
391  Perfect Rectangle  Algorithms  Hard  
390  Elimination Game  Algorithms  Medium  
389  Find the Difference  Algorithms  Easy  
388  Longest Absolute File Path  Algorithms  Medium  
387  First Unique Character in a String  Algorithms  Easy  
386  Lexicographical Numbers  Algorithms  Medium  
385  Mini Parser  Algorithms  Medium  
384  Shuffle an Array  Algorithms  Easy  
383  Ransom Note  Algorithms  Easy  
382  Linked List Random Node  Algorithms  Medium  
381  Insert Delete GetRandom O(1)  Duplicates allowed  Algorithms  Medium  
380  Insert Delete GetRandom O(1)  Algorithms  Medium  
378  Kth Smallest Element in a Sorted Matrix  Algorithms  Medium  
377  Combination Sum IV  Algorithms  Medium  
376  Wiggle Subsequence  Algorithms  Medium  
375  Guess Number Higher or Lower II  Algorithms  Medium  
374  Guess Number Higher or Lower  Algorithms  Easy  
373  Find K Pairs with Smallest Sums  Algorithms  Medium  
372  Super Pow  Algorithms  Medium  
371  Sum of Two Integers  Algorithms  Easy  
368  Largest Divisible Subset  Algorithms  Medium  
367  Valid Perfect Square  Algorithms  Medium  
365  Water and Jug Problem  Algorithms  Medium  
363  Max Sum of Rectangle No Larger Than K  Algorithms  Medium  
357  Count Numbers with Unique Digits  Algorithms  Medium  
355  Design Twitter designtwitter  Algorithms  Hard  
354  Russian Doll Envelopes  Algorithms  Hard  
352  Data Stream as Disjoint Intervals  Algorithms  Hard  
350  Intersection of Two Arrays II  Algorithms  Easy  
349  Intersection of Two Arrays  Algorithms  Easy  
347  Top K Frequent Elements  Algorithms  Medium  
345  Reverse Vowels of a String  Algorithms  Easy  
344  Reverse String  Algorithms  Easy  
343  Integer Break  Algorithms  Medium  
342  Power of Four  Algorithms  Easy  
341  Flatten Nested List Iterator  Algorithms  Medium  
338  Counting Bits  Algorithms  Medium  
337  House Robber III  Algorithms  Medium  
336  Palindrome Pairs  Algorithms  Hard  
335  Self Crossing  Algorithms  Medium  
334  Increasing Triplet Subsequence  Algorithms  Medium  
332  Reconstruct Itinerary  Algorithms  Hard  
331  Verify Preorder Serialization of a Binary Tree  Algorithms  Medium  
330  Patching Array  Algorithms  Hard  
329  Longest Increasing Path in a Matrix  Algorithms  Medium  
328  Odd Even Linked List  Algorithms  Easy  
327  Count of Range Sum  Algorithms  Hard  
326  Power of Three  Algorithms  Easy  
324  Wiggle Sort II  Algorithms  Medium  
322  Coin Change  Algorithms  Medium  
321  Create Maximum Number  Algorithms  Hard  
319  Bulb Switcher  Algorithms  Medium  
318  Maximum Product of Word Lengths  Algorithms  Medium  
316  Remove Duplicate Letters  Algorithms  Medium  
315  Count of Smaller Numbers After Self  Algorithms  Hard  
313  Super Ugly Number  Algorithms  Medium  
312  Burst Balloons  Algorithms  Medium  
310  Minimum Height Trees  Algorithms  Medium  
309  Best Time to Buy and Sell Stock with Cooldown  Algorithms  Medium  
307  Range Sum Query  Mutable  Algorithms  Medium  
306  Additive Number  Algorithms  Medium  
304  Range Sum Query 2D  Immutable  Algorithms  Medium  
303  Range Sum Query  Immutable  Algorithms  Easy  
301  Remove Invalid Parentheses  Algorithms  Medium  
300  Longest Increasing Subsequence  Algorithms  Medium  
299  Bulls and Cows  Algorithms  Easy  
297  Serialize and Deserialize Binary Tree  Algorithms  Medium  
295  Find Median from Data Stream  Algorithms  Hard  
292  Nim Game  Algorithms  Easy  
290  Word Pattern  Algorithms  Easy  
289  Game of Life  Algorithms  Medium  
287  Find the Duplicate Number  Algorithms  Hard  
284  Peeking Iterator peekingiterator  Algorithms  Medium  
283  Move Zeroes  Algorithms  Easy  
282  Expression Add Operators  Algorithms  Hard  
279  Perfect Squares  Algorithms  Medium  
278  First Bad Version  Algorithms  Easy  
275  HIndex II  Algorithms  Medium  
274  HIndex  Algorithms  Medium  
273  Integer to English Words  Algorithms  Medium  
268  Missing Number  Algorithms  Medium  
264  Ugly Number II  Algorithms  Medium  
263  Ugly Number  Algorithms  Easy  
262  Trips and Users  Database  Hard  
260  Single Number III  Algorithms  Medium  
258  Add Digits  Algorithms  Easy  
257  Binary Tree Paths  Algorithms  Easy  
242  Valid Anagram  Algorithms  Easy  
241  Different Ways to Add Parentheses  Algorithms  Medium  
240  Search a 2D Matrix II  Algorithms  Medium  
239  Sliding Window Maximum  Algorithms  Hard  
238  Product of Array Except Self  Algorithms  Medium  
237  Delete Node in a Linked List  Algorithms  Easy  
236  Lowest Common Ancestor of a Binary Tree  Algorithms  Medium  
235  Lowest Common Ancestor of a Binary Search Tree  Algorithms  Easy  
234  Palindrome Linked List  Algorithms  Easy  
233  Number of Digit One  Algorithms  Medium  
232  Implement Queue using Stacks  Algorithms  Easy  
231  Power of Two  Algorithms  Easy  
230  Kth Smallest Element in a BST  Algorithms  Medium  
229  Majority Element II  Algorithms  Medium  
228  Summary Ranges  Algorithms  Easy  
227  Basic Calculator II  Algorithms  Medium  
226  Invert Binary Tree  Algorithms  Easy  
225  Implement Stack using Queues  Algorithms  Easy  
224  Basic Calculator  Algorithms  Medium  
223  Rectangle Area  Algorithms  Easy  
222  Count Complete Tree Nodes  Algorithms  Medium  
221  Maximal Square  Algorithms  Medium  
220  Contains Duplicate III  Algorithms  Medium  
219  Contains Duplicate II  Algorithms  Easy  
218  The Skyline Problem  Algorithms  Hard  
217  Contains Duplicate  Algorithms  Easy  
216  Combination Sum III  Algorithms  Medium  
215  Kth Largest Element in an Array  Algorithms  Medium  
214  Shortest Palindrome  Algorithms  Hard  
213  House Robber II  Algorithms  Medium  
212  Word Search II  Algorithms  Hard  
211  Add and Search Word  Data structure design  Algorithms  Medium  
210  Course Schedule II  Algorithms  Medium  
209  Minimum Size Subarray Sum  Algorithms  Medium  
208  Implement Trie (Prefix Tree)  Algorithms  Medium  
207  Course Schedule  Algorithms  Medium  
206  Reverse Linked List  Algorithms  Easy  
205  Isomorphic Strings  Algorithms  Easy  
204  Count Primes  Algorithms  Easy  
203  Remove Linked List Elements  Algorithms  Easy  
202  Happy Number  Algorithms  Easy  
201  Bitwise AND of Numbers Range  Algorithms  Medium  
200  Number of Islands  Algorithms  Medium  
199  Binary Tree Right Side View  Algorithms  Medium  
198  House Robber  Algorithms  Easy  
197  Rising Temperature  Database  Easy  
196  Delete Duplicate Emails  Database  Easy  
195  Tenth Line  Shell  Easy  
194  Transpose File  Shell  Medium  
193  Valid Phone Numbers  Shell  Easy  
192  Word Frequency  Shell  Medium  
191  Number of 1 Bits  Algorithms  Easy  
190  Reverse Bits  Algorithms  Easy  
189  Rotate Array  Algorithms  Easy  
188  Best Time to Buy and Sell Stock IV  Algorithms  Hard  
187  Repeated DNA Sequences  Algorithms  Medium  
185  Department Top Three Salaries  Database  Hard  
184  Department Highest Salary  Database  Medium  
183  Customers Who Never Order  Database  Easy  
182  Duplicate Emails  Database  Easy  
181  Employees Earning More Than Their Managers  Database  Easy  
180  Consecutive Numbers  Database  Medium  
179  Largest Number  Algorithms  Medium  
178  Rank Scores  Database  Medium  
177  Nth Highest Salary  Database  Medium  
176  Second Highest Salary  Database  Easy  
175  Combine Two Tables  Database  Easy  
174  Dungeon Game  Algorithms  Hard  
173  Binary Search Tree Iterator  Algorithms  Medium  
172  Factorial Trailing Zeroes  Algorithms  Easy  
171  Excel Sheet Column Number  Algorithms  Easy  
169  Majority Element  Algorithms  Easy  
168  Excel Sheet Column Title  Algorithms  Easy  
166  Fraction to Recurring Decimal  Algorithms  Medium  
165  Compare Version Numbers  Algorithms  Easy  
164  Maximum Gap  Algorithms  Hard  
162  Find Peak Element  Algorithms  Medium  
160  Intersection of Two Linked Lists  Algorithms  Easy  
155  Min Stack  Algorithms  Easy  
154  Find Minimum in Rotated Sorted Array II  Algorithms  Hard  
153  Find Minimum in Rotated Sorted Array  Algorithms  Medium  
152  Maximum Product Subarray  Algorithms  Medium  
151  Reverse Words in a String  Algorithms  Medium  
150  Evaluate Reverse Polish Notation  Algorithms  Medium  
149  Max Points on a Line  Algorithms  Easy  
148  Sort List  Algorithms  Medium  
147  Insertion Sort List  Algorithms  Medium  
146  LRU Cache  Algorithms  Hard  
145  Binary Tree Postorder Traversal  Algorithms  Hard  
144  Binary Tree Preorder Traversal  Algorithms  Medium  
143  Reorder List  Algorithms  Medium  
142  Linked List Cycle II  Algorithms  Medium  
141  Linked List Cycle  Algorithms  Medium  
140  Word Break II  Algorithms  Hard  
139  Word Break  Algorithms  Medium  
138  Copy List with Random Pointer  Algorithms  Hard  
136  Single Number  Algorithms  Medium  
135  Candy  Algorithms  Hard  
134  Gas Station  Algorithms  Medium  
133  Clone Graph  Algorithms  Medium  
129  Sum Root to Leaf Numbers  Algorithms  Medium  
127  Word Ladder  Algorithms  Medium  
124  Binary Tree Maximum Path Sum  Algorithms  Hard  
122  Best Time to Buy and Sell Stock II  Algorithms  Medium  
114  Flatten Binary Tree to Linked List  Algorithms  Medium  
111  Minimum Depth of Binary Tree  Algorithms  Easy  
100  Same Tree  Algorithms  Easy  
94  Binary Tree Inorder Traversal  Algorithms  Medium  
92  Reverse Linked List II  Algorithms  Medium  
79  Word Search  Algorithms  Medium  
70  Climbing Stairs  Algorithms  Easy  
69  Sqrt(x)  Algorithms  Medium  
62  Unique Paths  Algorithms  Medium  
49  Anagrams  Algorithms  Medium  
46  Permutations  Algorithms  Medium  
41  First Missing Positive  Algorithms  Hard  
31  Next Permutation  Algorithms  Medium  
30  Substring with Concatenation of All Words  Algorithms  Hard  
8  String to Integer (atoi)  Algorithms  Easy  
6  ZigZag Conversion  Algorithms  Easy  
4  Median of Two Sorted Arrays  Algorithms  Hard  
3  Longest Substring Without Repeating Characters  Algorithms  Medium  
2  Add Two Numbers  Algorithms  Medium  
1  Two Sum  Algorithms  Medium 