leetcode排序 发表于 2019-05-29 | 分类于 leetcode | 阅读次数: leetcode刷过的题 # Title(跳转到网站) Difficulty(刷过的) 0001 Two Sum Easy 0002 Add Two Numbers Medium 0003 Longest Substring Without Repeating Characters Medium 0004 Median of Two Sorted Arrays Hard 0005 Longest Palindromic Substring Medium 0006 ZigZag Conversion Medium 0007 Reverse Integer Easy 0008 String to Integer (atoi) Medium 0009 Palindrome Number Easy 0010 Regular Expression Matching Hard 0011 Container With Most Water Medium 0012 Integer to Roman Medium 0013 Roman to Integer Easy 0014 Longest Common Prefix Easy 0015 3Sum Medium 0016 3Sum Closest Medium 0017 Letter Combinations of a Phone Number Medium 0018 4Sum Medium 0019 Remove Nth Node From End of List Medium 0020 Valid Parentheses Easy 0021 Merge Two Sorted Lists Easy 0022 Generate Parentheses Medium 0023 Merge k Sorted Lists Hard 0024 Swap Nodes in Pairs Medium 0026 Remove Duplicates from Sorted Array Easy 0027 Remove Element Easy 0028 Implement strStr() Easy 0029 Divide Two Integers Medium 0030 Substring with Concatenation of All Words Hard 0031 Next Permutation Medium 0032 Longest Valid Parentheses Hard 0033 Search in Rotated Sorted Array Medium 0034 Find First and Last Position of Element in Sorted Array Medium 0035 Search Insert Position Easy 0036 Valid Sudoku Medium 0037 Sudoku Solver Hard 0038 Count and Say Easy 0039 Combination Sum Medium 0040 Combination Sum II Medium 0041 First Missing Positive Hard 0042 Trapping Rain Water Hard 0043 Multiply Strings Medium 0044 Wildcard Matching Hard 0045 Jump Game II Hard 0046 Permutations Medium 0047 Permutations II Medium 0048 Rotate Image Medium 0049 Group Anagrams Medium 0050 Pow(x, n) Medium 0051 N-Queens Hard 0052 N-Queens II Hard 0053 Maximum Subarray Easy 0054 Spiral Matrix Medium 0055 Jump Game Medium 0056 Merge Intervals Medium 0057 Insert Interval Hard 0058 Length of Last Word Easy 0059 Spiral Matrix II Hard 0060 Permutation Sequence Medium 0061 Rotate List Medium 0062 Unique Paths Medium 0063 Unique Paths II Medium 0064 Minimum Path Sum Medium 0065 Valid Number Hard 0066 Plus One Easy 0068 Text Justification Hard 0069 Sqrt(x) Easy 0070 Climbing Stairs Easy 0071 Simplify Path Medium 0072 Edit Distance Hard 0073 Set Matrix Zeroes Medium 0074 Search a 2D Matrix Medium 0075 Sort Colors Medium 0076 Minimum Window Substring Easy 0077 Combinations Medium 0078 Subsets Medium 0079 Word Search Medium 0080 Remove Duplicates from Sorted Array II Medium 0081 Search in Rotated Sorted Array II Medium 0082 Remove Duplicates from Sorted List II Medium 0083 Remove Duplicates from Sorted List Easy 0084 Largest Rectangle in Histogram Hard 0085 Maximal Rectangle Hard 0086 Partition List Medium 0087 Scramble String Hard 0088 Merge Sorted Array Easy 0089 Gray Code Medium 0090 Subsets II Medium 0091 Decode Ways Medium 0092 Reverse Linked List II Medium 0093 Restore IP Addresses Medium 0094 Binary Tree Inorder Traversal Medium 0095 Unique Binary Search Trees II Medium 0096 Unique Binary Search Trees Medium 0097 Interleaving String Medium 0098 Validate Binary Search Tree Medium 0099 Recover Binary Search Tree Hard 0100 Same Tree Tree、Easy 0101 Symmetric Tree Tree、Easy 0102 Binary Tree Level Order Traversal Medium 0103 Binary Tree Zigzag Level Order Traversal Medium 0104 Maximum Depth of Binary Tree Tree、Easy 0105 Construct Binary Tree from Preorder and Inorder Traversal Medium 0106 Construct Binary Tree from Inorder and Postorder Traversal Medium 0107 Binary Tree Level Order Traversal II Easy 0108 Convert Sorted Array to Binary Search Tree Easy 0109 Convert Sorted List to Binary Search Tree Medium 0110 Balanced Binary Tree Easy 0111 Minimum Depth of Binary Tree Easy 0112 Path Sum Easy 0113 Path Sum II Medium 0114 Flatten Binary Tree to Linked List Medium 0115 Distinct Subsequences Hard 0116 Populating Next Right Pointers in Each Node Medium 0117 Populating Next Right Pointers in Each Node II Medium 0118 Pascal’s Triangle Easy 0119 Pascal’s Triangle II Easy 0120 Triangle Medium 0121 Best Time to Buy and Sell Stock Easy 0122 Best Time to Buy and Sell Stock II Easy 0123 Best Time to Buy and Sell Stock III Hard 0124 Binary Tree Maximum Path Sum Hard 0125 Valid Palindrome Easy 0126 Word Ladder II Hard 0127 Word Ladder Medium 0128 Longest Consecutive Sequence Hard 0129 Sum Root to Leaf Numbers Medium 0130 Surrounded Regions Medium 0131 Palindrome Partitioning Medium 0132 Palindrome Partitioning II Hard 0133 Clone Graph Medium 0134 Gas Station Medium 0135 Candy Hard 0136 Single Number Easy 0137 Single Number II Medium 0138 Copy List with Random Pointer Medium 0139 Word Break Medium 0140 Word Break II Hard 0141 Linked List Cycle Easy 0142 Linked List Cycle II Medium 0143 Reorder-List Medium 0144 Binary Tree Preorder Traversal Medium 0145 Binary Tree Postorder Traversal Hard 0146 LRU Cache Hard 0147 Insertion Sort List Medium 0148 Sort List Medium 0149 Max Points on a Line Hard 0150 Evaluate Reverse Polish Notation Medium 0151 Reverse Words in a String Medium 0152 Maximum Product Subarray Medium 0153 Find Minimum in Rotated Sorted Array Medium 0154 Find Minimum in Rotated Sorted Array II Hard 0155 Min Stack Easy 0160 Intersection of Two Linked Lists Easy 0162 Find Peak Element Medium 0165 Compare Version Numbers Medium 0166 Fraction to Recurring Decimal Medium 0167 Two Sum II - Input array is sorted Easy 0168 Excel Sheet Column Title Easy 0169 Majority Element Easy 0171 Excel Sheet Column Number Easy 0172 Factorial Trailing Zeroes Easy 0173 Binary Search Tree Iterator Medium 0174 Dungeon Game Hard 0187 Repeated-DNA-Sequences Medium 0188 Best Time to Buy and Sell Stock IV Hard 0189 Rotate Array Easy 0190 Reverse Bits Easy 0191 Number of 1 Bits Easy 0198 House Robber Easy 0199 Binary Tree Right Side View Medium 0200 Number of Islands Medium 0201 Bitwise AND of Numbers Range Medium 0202 Happy Number Easy 0203 Remove Linked List Elements Easy 0204 Count Primes Easy 0205 Isomorphic Strings Easy 0206 Reverse Linked List Easy 0208 Implement Trie (Prefix Tree) Easy 0209 Minimum Size Subarray Sum Medium 0211 Add and Search Word - Data structure design Medium 0213 House Robber II Medium 0215 Kth Largest Element in an Array Medium 0216 Combination Sum III Medium 0217 Contains Duplicate Easy 0219 Contains Duplicate II Easy 0222 Count Complete Tree Nodes Medium 0226 Invert Binary Tree Tree、Easy 0228 Summary Ranges Medium 0229 Majority Element II Medium 0230 Kth Smallest Element in a BST Medium 0234 Palindrome Linked List Medium 0235 Lowest Common Ancestor of a Binary Search Tree Easy 0236 Lowest Common Ancestor of a Binary Tree Medium 0237 Delete Node in a Linked List Easy 0238 Product of Array Except Self Medium 0239 Sliding Window Maximum Medium 0241 Different Ways to Add Parentheses Medium 0242 Valid Anagram Easy 0242 Binary Tree Paths Easy 0260 Single Number III Medium 0268 Missing Number Easy 0279 Perfect Squares Medium 0283 Move Zeroes Easy 0287 Find the Duplicate Number Medium 0289 Game of Life Medium 0290 Word Pattern Easy 0300 Longest Increasing Subsequence Medium 0303 Range Sum Query - Immutable Easy 0307 Range Sum Query - Mutable Medium 0309 Best Time to Buy and Sell Stock with Cooldown Medium 0322 Coin-Change Medium 0325 Maximum Size Subarray Sum Equals k Medium 0328 Odd Even Linked List Medium 0337 House Robber III Medium 0341 Flatten Nested List Iterator Medium 0343 Integer Break Medium 0344 Reverse String Easy 0345 Reverse Vowels of a String Easy 0347 Top K Frequent Elements Medium 0349 Intersection of Two Arrays Easy 0350 Intersection of Two Arrays II Easy 0377 Combination Sum IV Medium 0389 Find the Difference Easy 0392 Is Subsequence Medium 0401 Binary Watch Easy 0404 Sum of Left Leaves Easy 0416 Partition Equal Subset Sum Medium 0435 Non-overlapping Intervals Medium 0437 Path Sum III Easy 0438 Find All Anagrams in a String Easy 0445 Add Two Numbers II Medium 0447 Number of Boomerangs Easy 0450 Delete Node in a BST Medium 0451 Sort Characters By Frequency Easy 0454 4Sum II Medium 0455 Assign Cookies Easy 0474 Ones and Zeroes Medium 0494 Target Sum Medium 0496 Next Greater Element I Easy 0503 Next Greater Element II Medium 0525 Contiguous Array Medium 0560 Subarray Sum Equals K Medium 0704 Binary Search Easy 0705 Design HashSet Easy 0739 Daily Temperatures Medium 0852 Peak Index in a Mountain Array Easy 0901 Online-Stock-Span Medium 0907 Sum-of-Subarray-Minimums Medium 0917 Reverse Only Letters Easy 0918 Maximum Sum Circular Subarray Medium 0919 Complete Binary Tree Inserter Medium 0920 Number of Music Playlists Medium 0921 Minimum Add to Make Parentheses Valid Medium 0922 Sort Array By Parity II Easy 0923 3Sum With Multiplicity Medium 0925 Long Pressed Name Easy 0926 Flip String to Monotone Increasing Medium 0927 Three Equal Parts Medium 0929 Unique Email Addresses Easy 0930 Binary Subarrays With Sum Medium 0931 Minimum Falling Path Sum Medium 0932 Beautiful Array Medium 0933 Number of Recent Calls Easy 0934 Shortest Bridge Medium 0935 Knight Dialer Medium 0936 Stamping The Sequence Hard 0937 Reorder Log Files Easy 0938 Range Sum of BST Medium 0939 Minimum Area Rectangle Medium 0940 Distinct Subsequences II Hard 0941 Valid Mountain Array Easy 0942 DI String Match Easy 0943 Find the Shortest Superstring Hard 0944 Delete Columns to Make Sorted Easy 0945 Minimum Increment to Make Array Unique Medium 0946 Validate Stack Sequences Medium 0947 Most Stones Removed with Same Row or Column Medium 0948 Bag of Tokens Medium 0949 Largest Time for Given Digits Easy 0950 Reveal Cards In Increasing Order Medium 0951 Flip Equivalent Binary Trees Medium 0953 Verifying an Alien Dictionary Easy 0954 Array of Doubled Pairs Medium 0955 Delete Columns to Make Sorted II Medium 0956 Tallest Billboard Hard 0957 Prison Cells After N Days Medium 0958 Check Completeness of a Binary Tree Medium 0959 Regions Cut By Slashes Medium 0960 Delete Columns to Make Sorted III Hard 0961 N-Repeated Element in Size 2N Array Easy 0962 Maximum Width Ramp Medium 0963 Minimum Area Rectangle II Medium 0965 Univalued Binary Tree Easy 0966 Vowel Spellchecker Medium 0967 Numbers With Same Consecutive Differences Medium 0969 Pancake Sorting Medium 0970 Powerful Integers Easy 0971 Flip Binary Tree To Match Preorder Traversal Medium 0972 Equal Rational Numbers Hard 0973 K Closest Points to Origin Easy 0974 Subarray Sums Divisible by K Medium 0975 Odd Even Jump Hard 0976 Largest Perimeter Triangle Easy 0977 Squares of a Sorted Array Easy