Skip to content

Latest commit

 

History

History
executable file
·
350 lines (348 loc) · 63.5 KB

Favorite.md

File metadata and controls

executable file
·
350 lines (348 loc) · 63.5 KB

我收藏的 345 题

题号 题目 通过率 难度 收藏
0085 Maximal Rectangle 35% Hard
0087 Scramble String 32% Hard
0093 Restore IP Addresses 32% Medium
0095 Unique Binary Search Trees II 37% Medium
0097 Interleaving String 29% Hard
0098 Validate Binary Search Tree 26% Medium
0099 Recover Binary Search Tree 36% Hard
0101 Symmetric Tree 44% Easy
0105 Construct Binary Tree from Preorder and Inorder Traversal 43% Medium
0106 Construct Binary Tree from Inorder and Postorder Traversal 41% Medium
0114 Flatten Binary Tree to Linked List 44% Medium
0115 Distinct Subsequences 36% Hard
0120 Triangle 41% Medium
0124 Binary Tree Maximum Path Sum 31% Hard
0126 Word Ladder II 19% Hard
0127 Word Ladder 26% Medium
0130 Surrounded Regions 24% Medium
0131 Palindrome Partitioning 43% Medium
0132 Palindrome Partitioning II 28% Hard
0134 Gas Station 35% Medium
0139 Word Break 37% Medium
0140 Word Break II 28% Hard
0142 Linked List Cycle II 34% Medium
0143 Reorder List 32% Medium
0144 Binary Tree Preorder Traversal 53% Medium
0146 LRU Cache 28% Medium
0147 Insertion Sort List 38% Medium
0148 Sort List 37% Medium
0149 Max Points on a Line 16% Hard
0152 Maximum Product Subarray 30% Medium
0166 Fraction to Recurring Decimal 20% Medium
0168 Excel Sheet Column Title 29% Easy
0169 Majority Element 54% Easy
0173 Binary Search Tree Iterator 51% Medium
0174 Dungeon Game 28% Hard
0179 Largest Number 26% Medium
0188 Best Time to Buy and Sell Stock IV 27% Hard
0198 House Robber 41% Easy
0201 Bitwise AND of Numbers Range 36% Medium
0204 Count Primes 30% Easy
0205 Isomorphic Strings 38% Easy
0207 Course Schedule 39% Medium
0208 Implement Trie (Prefix Tree) 41% Medium
0211 Add and Search Word - Data structure design 32% Medium
0212 Word Search II 30% Hard
0214 Shortest Palindrome 28% Hard
0215 Kth Largest Element in an Array 50% Medium
0218 The Skyline Problem 32% Hard
0220 Contains Duplicate III 20% Medium
0221 Maximal Square 34% Medium
0229 Majority Element II 33% Medium
0233 Number of Digit One 30% Hard
0235 Lowest Common Ancestor of a Binary Search Tree 46% Easy
0236 Lowest Common Ancestor of a Binary Tree 40% Medium
0237 Delete Node in a Linked List 56% Easy
0239 Sliding Window Maximum 39% Hard
0240 Search a 2D Matrix II 41% Medium
0260 Single Number III 58% Medium
0264 Ugly Number II 37% Medium
0273 Integer to English Words 25% Hard
0275 H-Index II 35% Medium
0279 Perfect Squares 43% Medium
0282 Expression Add Operators 34% Hard
0287 Find the Duplicate Number 51% Medium
0289 Game of Life 49% Medium
0292 Nim Game 55% Easy
0295 Find Median from Data Stream 39% Hard
0300 Longest Increasing Subsequence 41% Medium
0301 Remove Invalid Parentheses 40% Hard
0309 Best Time to Buy and Sell Stock with Cooldown 45% Medium
0312 Burst Balloons 48% Hard
0313 Super Ugly Number 42% Medium
0316 Remove Duplicate Letters 33% Hard
0318 Maximum Product of Word Lengths 49% Medium
0319 Bulb Switcher 44% Medium
0321 Create Maximum Number 25% Hard
0322 Coin Change 32% Medium
0326 Power of Three 41% Easy
0327 Count of Range Sum 33% Hard
0328 Odd Even Linked List 50% Medium
0329 Longest Increasing Path in a Matrix 41% Hard
0331 Verify Preorder Serialization of a Binary Tree 39% Medium
0332 Reconstruct Itinerary 33% Medium
0334 Increasing Triplet Subsequence 39% Medium
0336 Palindrome Pairs 32% Hard
0337 House Robber III 49% Medium
0350 Intersection of Two Arrays II 49% Easy
0354 Russian Doll Envelopes 34% Hard
0355 Design Twitter 28% Medium
0357 Count Numbers with Unique Digits 47% Medium
0363 Max Sum of Rectangle No Larger Than K 35% Hard
0365 Water and Jug Problem 29% Medium
0368 Largest Divisible Subset 35% Medium
0371 Sum of Two Integers 50% Easy
0373 Find K Pairs with Smallest Sums 34% Medium
0376 Wiggle Subsequence 38% Medium
0378 Kth Smallest Element in a Sorted Matrix 51% Medium
0380 Insert Delete GetRandom O(1) 44% Medium
0381 Insert Delete GetRandom O(1) - Duplicates allowed 32% Hard
0384 Shuffle an Array 51% Medium
0385 Mini Parser 32% Medium
0390 Elimination Game 43% Medium
0392 Is Subsequence 47% Easy
0393 UTF-8 Validation 36% Medium
0396 Rotate Function 35% Medium
0397 Integer Replacement 32% Medium
0399 Evaluate Division 49% Medium
0400 Nth Digit 30% Medium
0402 Remove K Digits 27% Medium
0403 Frog Jump 37% Hard
0406 Queue Reconstruction by Height 61% Medium
0416 Partition Equal Subset Sum 41% Medium
0420 Strong Password Checker 16% Hard
0421 Maximum XOR of Two Numbers in an Array 52% Medium
0424 Longest Repeating Character Replacement 44% Medium
0432 All O`one Data Structure 30% Hard
0435 Non-overlapping Intervals 41% Medium
0437 Path Sum III 44% Easy
0440 K-th Smallest in Lexicographical Order 27% Hard
0443 String Compression 38% Easy
0445 Add Two Numbers II 51% Medium
0446 Arithmetic Slices II - Subsequence 31% Hard
0450 Delete Node in a BST 40% Medium
0456 132 Pattern 27% Medium
0459 Repeated Substring Pattern 40% Easy
0464 Can I Win 28% Medium
0466 Count The Repetitions 27% Hard
0467 Unique Substrings in Wraparound String 34% Medium
0470 Implement Rand10() Using Rand7() 45% Medium
0473 Matchsticks to Square 36% Medium
0477 Total Hamming Distance 49% Medium
0480 Sliding Window Median 34% Hard
0483 Smallest Good Base 34% Hard
0488 Zuma Game 40% Hard
0491 Increasing Subsequences 43% Medium
0492 Construct the Rectangle 48% Easy
0494 Target Sum 45% Medium
0501 Find Mode in Binary Search Tree 40% Easy
0503 Next Greater Element II 52% Medium
0516 Longest Palindromic Subsequence 49% Medium
0517 Super Washing Machines 37% Hard
0518 Coin Change 2 44% Medium
0523 Continuous Subarray Sum 24% Medium
0525 Contiguous Array 43% Medium
0526 Beautiful Arrangement 55% Medium
0530 Minimum Absolute Difference in BST 51% Easy
0542 01 Matrix 37% Medium
0546 Remove Boxes 39% Hard
0547 Friend Circles 55% Medium
0552 Student Attendance Record II 34% Hard
0560 Subarray Sum Equals K 43% Medium
0572 Subtree of Another Tree 42% Easy
0576 Out of Boundary Paths 33% Medium
0581 Shortest Unsorted Continuous Subarray 30% Easy
0583 Delete Operation for Two Strings 46% Medium
0587 Erect the Fence 34% Hard
0591 Tag Validator 33% Hard
0600 Non-negative Integers without Consecutive Ones 33% Hard
0605 Can Place Flowers 31% Easy
0611 Valid Triangle Number 46% Medium
0621 Task Scheduler 46% Medium
0628 Maximum Product of Three Numbers 46% Easy
0630 Course Schedule III 32% Hard
0636 Exclusive Time of Functions 49% Medium
0638 Shopping Offers 50% Medium
0641 Design Circular Deque 50% Medium
0645 Set Mismatch 41% Easy
0647 Palindromic Substrings 58% Medium
0649 Dota2 Senate 38% Medium
0654 Maximum Binary Tree 77% Medium
0658 Find K Closest Elements 39% Medium
0659 Split Array into Consecutive Subsequences 42% Medium
0664 Strange Printer 38% Hard
0670 Maximum Swap 41% Medium
0673 Number of Longest Increasing Subsequence 34% Medium
0675 Cut Off Trees for Golf Event 32% Hard
0677 Map Sum Pairs 52% Medium
0678 Valid Parenthesis String 33% Medium
0679 24 Game 44% Hard
0685 Redundant Connection II 31% Hard
0686 Repeated String Match 31% Easy
0691 Stickers to Spell Word 40% Hard
0695 Max Area of Island 59% Medium
0698 Partition to K Equal Sum Subsets 43% Medium
0707 Design Linked List 20% Medium
0710 Random Pick with Blacklist 32% Hard
0712 Minimum ASCII Delete Sum for Two Strings 55% Medium
0713 Subarray Product Less Than K 37% Medium
0714 Best Time to Buy and Sell Stock with Transaction Fee 52% Medium
0718 Maximum Length of Repeated Subarray 47% Medium
0719 Find K-th Smallest Pair Distance 30% Hard
0721 Accounts Merge 43% Medium
0722 Remove Comments 32% Medium
0726 Number of Atoms 46% Hard
0730 Count Different Palindromic Subsequences 40% Hard
0731 My Calendar II 46% Medium
0736 Parse Lisp Expression 45% Hard
0739 Daily Temperatures 61% Medium
0740 Delete and Earn 47% Medium
0752 Open the Lock 47% Medium
0753 Cracking the Safe 48% Hard
0754 Reach a Number 33% Easy
0756 Pyramid Transition Matrix 52% Medium
0770 Basic Calculator IV 46% Hard
0784 Letter Case Permutation 59% Easy
0785 Is Graph Bipartite? 45% Medium
0786 K-th Smallest Prime Fraction 41% Hard
0787 Cheapest Flights Within K Stops 36% Medium
0790 Domino and Tromino Tiling 37% Medium
0792 Number of Matching Subsequences 45% Medium
0793 Preimage Size of Factorial Zeroes Function 39% Hard
0795 Number of Subarrays with Bounded Maximum 44% Medium
0798 Smallest Rotation with Highest Score 41% Hard
0799 Champagne Tower 34% Medium
0801 Minimum Swaps To Make Sequences Increasing 36% Medium
0802 Find Eventual Safe States 45% Medium
0803 Bricks Falling When Hit 29% Hard
0805 Split Array With Same Average 25% Hard
0810 Chalkboard XOR Game 45% Hard
0813 Largest Sum of Averages 47% Medium
0815 Bus Routes 41% Hard
0818 Race Car 37% Hard
0820 Short Encoding of Words 48% Medium
0826 Most Profit Assigning Work 37% Medium
0827 Making A Large Island 44% Hard
0828 Unique Letter String 41% Hard
0829 Consecutive Numbers Sum 35% Hard
0834 Sum of Distances in Tree 41% Hard
0837 New 21 Game 32% Medium
0838 Push Dominoes 45% Medium
0839 Similar String Groups 36% Hard
0843 Guess the Word 45% Hard
0846 Hand of Straights 50% Medium
0847 Shortest Path Visiting All Nodes 48% Hard
0849 Maximize Distance to Closest Person 41% Easy
0850 Rectangle Area II 46% Hard
0851 Loud and Rich 49% Medium
0852 Peak Index in a Mountain Array 70% Easy
0854 K-Similar Strings 35% Hard
0857 Minimum Cost to Hire K Workers 48% Hard
0862 Shortest Subarray with Sum at Least K 22% Hard
0863 All Nodes Distance K in Binary Tree 50% Medium
0864 Shortest Path to Get All Keys 38% Hard
0866 Prime Palindrome 21% Medium
0879 Profitable Schemes 37% Hard
0895 Maximum Frequency Stack 58% Hard
0896 Monotonic Array 56% Easy
0897 Increasing Order Search Tree 66% Easy
0898 Bitwise ORs of Subarrays 35% Medium
0901 Online Stock Span 51% Medium
0903 Valid Permutations for DI Sequence 46% Hard
0904 Fruit Into Baskets 41% Medium
0907 Sum of Subarray Minimums 29% Medium
0909 Snakes and Ladders 36% Medium
0910 Smallest Range II 24% Medium
0911 Online Election 48% Medium
0913 Cat and Mouse 29% Hard
0915 Partition Array into Disjoint Intervals 43% Medium
0918 Maximum Sum Circular Subarray 33% Medium
0919 Complete Binary Tree Inserter 55% Medium
0920 Number of Music Playlists 44% Hard
0921 Minimum Add to Make Parentheses Valid 70% Medium
0923 3Sum With Multiplicity 34% Medium
0932 Beautiful Array 54% Medium
0936 Stamping The Sequence 35% Hard
0939 Minimum Area Rectangle 51% Medium
0940 Distinct Subsequences II 40% Hard
0943 Find the Shortest Superstring 40% Hard
0945 Minimum Increment to Make Array Unique 44% Medium
0947 Most Stones Removed with Same Row or Column 54% Medium
0948 Bag of Tokens 39% Medium
0949 Largest Time for Given Digits 34% Easy
0952 Largest Component Size by Common Factor 27% Hard
0955 Delete Columns to Make Sorted II 32% Medium
0956 Tallest Billboard 38% Hard
0960 Delete Columns to Make Sorted III 52% Hard
0962 Maximum Width Ramp 43% Medium
0964 Least Operators to Express Number 41% Hard
0971 Flip Binary Tree To Match Preorder Traversal 43% Medium
0972 Equal Rational Numbers 40% Hard
0974 Subarray Sums Divisible by K 47% Medium
0975 Odd Even Jump 45% Hard
0976 Largest Perimeter Triangle 57% Easy
0978 Longest Turbulent Subarray 45% Medium
0979 Distribute Coins in Binary Tree 67% Medium
0980 Unique Paths III 71% Hard
0982 Triples with Bitwise AND Equal To Zero 54% Hard
0983 Minimum Cost For Tickets 57% Medium
0986 Interval List Intersections 64% Medium
0991 Broken Calculator 42% Medium
0992 Subarrays with K Different Integers 45% Hard
0996 Number of Squareful Arrays 47% Hard
1000 Minimum Cost to Merge Stones 36% Hard
1001 Grid Illumination 34% Hard
1004 Max Consecutive Ones III 55% Medium
1009 Complement of Base 10 Integer 59% Easy
1011 Capacity To Ship Packages Within D Days 55% Medium
1012 Numbers With Repeated Digits 35% Hard
1015 Smallest Integer Divisible by K 30% Medium
1019 Next Greater Node In Linked List 56% Medium
1022 Sum of Root To Leaf Binary Numbers 61% Easy
1024 Video Stitching 47% Medium
1025 Divisor Game 65% Easy
1026 Maximum Difference Between Node and Ancestor 61% Medium
1027 Longest Arithmetic Sequence 51% Medium
1028 Recover a Tree From Preorder Traversal 69% Hard
1030 Matrix Cells in Distance Order 64% Easy
1031 Maximum Sum of Two Non-Overlapping Subarrays 55% Medium
1032 Stream of Characters 45% Hard
1035 Uncrossed Lines 52% Medium
1039 Minimum Score Triangulation of Polygon 44% Medium
1040 Moving Stones Until Consecutive II 49% Medium
1042 Flower Planting With No Adjacent 47% Easy
1043 Partition Array for Maximum Sum 62% Medium
1044 Longest Duplicate Substring 23% Hard
1048 Longest String Chain 51% Medium
1049 Last Stone Weight II 41% Medium
1054 Distant Barcodes 40% Medium
1071 Greatest Common Divisor of Strings 53% Easy
1072 Flip Columns For Maximum Number of Equal Rows 59% Medium
1073 Adding Two Negabinary Numbers 32% Medium
1074 Number of Submatrices That Sum to Target 58% Hard
1079 Letter Tile Possibilities 74% Medium
1080 Insufficient Nodes in Root to Leaf Paths 45% Medium
1089 Duplicate Zeros 58% Easy
1092 Shortest Common Supersequence 49% Hard
1105 Filling Bookcase Shelves 56% Medium
1125 Smallest Sufficient Team 44% Hard
1129 Shortest Path with Alternating Colors 37% Medium
1130 Minimum Cost Tree From Leaf Values 62% Medium
1131 Maximum of Absolute Value Expression 52% Medium
1137 N-th Tribonacci Number 57% Easy
1138 Alphabet Board Path 44% Medium
1139 Largest 1-Bordered Square 44% Medium
1140 Stone Game II 60% Medium
1145 Binary Tree Coloring Game 49% Medium
1146 Snapshot Array 34% Medium
1155 Number of Dice Rolls With Target Sum 48% Medium
1157 Online Majority Element In Subarray 33% Hard
1163 Last Substring in Lexicographical Order 30% Hard
1172 Dinner Plate Stacks 40% Hard
1177 Can Make Palindrome from Substring 32% Medium
1178 Number of Valid Words for Each Puzzle 35% Hard
1186 Maximum Subarray Sum with One Deletion 33% Medium
1190 Reverse Substrings Between Each Pair of Parentheses 57% Medium