LeetCode题目难度频率分布
来源:互联网 发布:河北华讯科技知乎 编辑:程序博客网 时间:2024/04/29 17:01
1Two Sum25arraysort setTwo Pointers2Add Two Numbers34linked listTwo Pointers Math3Longest Substring Without Repeating Characters32stringTwo Pointers hashtable 4Median of Two Sorted Arrays53arrayBinary Search5Longest Palindromic Substring42string 6ZigZag Conversion31string 7Reverse Integer23 Math8String to Integer (atoi)25stringMath9Palindrome Number22 Math10Regular Expression Matching53stringRecursion DP11Container With Most Water32arrayTwo Pointers12Integer to Roman34 Math13Roman to Integer24 Math14Longest Common Prefix21string 153Sum35arrayTwo Pointers163Sum Closest31arrayTwo Pointers17Letter Combinations of a Phone Number33stringDFS184Sum32array 19Remove Nth Node From End of List23linked listTwo Pointers20Valid Parentheses25stringStack21Merge Two Sorted Lists25linked listsort Two Pointers merge22Generate Parentheses34stringDFS23Merge k Sorted Lists34linked listsort heapTwo Pointers merge24Swap Nodes in Pairs24linked list 25Reverse Nodes in k-Group42linked listRecursion Two Pointers26Remove Duplicates from Sorted Array13arrayTwo Pointers27Remove Element14arrayTwo Pointers28Implement strStr()45stringTwo Pointers KMP rolling hash29Divide Two Integers43 Binary Search Math30Substring with Concatenation of All Words31stringTwo Pointers31Next Permutation52arraypermutation32Longest Valid Parentheses41stringDP33Search in Rotated Sorted Array43arrayBinary Search34Search for a Range43arrayBinary Search35Search Insert Position22array 36Valid Sudoku22array 37Sudoku Solver42arrayDFS38Count and Say22stringTwo Pointers39Combination Sum33arraycombination40Combination Sum II42arraycombination41First Missing Positive52arraysort42Trapping Rain Water42arrayTwo Pointers Stack43Multiply Strings43stringTwo Pointers Math44Wildcard Matching53stringRecursion DP greedy45Jump Game II42array 46Permutations34arraypermutation47Permutations II42arraypermutation48Rotate Image42array 49Anagrams34string hashtable 50Pow(x, n)35 Binary Search Math51N-Queens43arrayDFS52N-Queens II43arrayDFS53Maximum Subarray33arrayDP54Spiral Matrix42array 55Jump Game32array 56Merge Intervals45arraysort linked listmerge red-black tree 57Insert Interval45arraysort linked listmerge red-black tree 58Length of Last Word11string 59Spiral Matrix II32array 60Permutation Sequence51 permutation Math61Rotate List32linked listTwo Pointers62Unique Paths23arrayDP63Unique Paths II33arrayDP64Minimum Path Sum33arrayDP65Valid Number25stringMath66Plus One12arrayMath67Add Binary24stringTwo Pointers Math68Text Justification42string 69Sqrt(x)44 Binary Search70Climbing Stairs25 DP71Simplify Path31stringStack72Edit Distance43stringDP73Set Matrix Zeroes35array 74Search a 2D Matrix33arrayBinary Search75Sort Colors42arraysort Two Pointers76Minimum Window Substring42stringTwo Pointers77Combinations34 combination78Subsets34arrayRecursion combination79Word Search34arrayDFS80Remove Duplicates from Sorted Array II22arrayTwo Pointers81Search in Rotated Sorted Array II53arrayBinary Search82Remove Duplicates from Sorted List II33linked listRecursion Two Pointers83Remove Duplicates from Sorted List13linked list 84Largest Rectangle in Histogram52arrayStack85Maximal Rectangle51arrayDP Stack86Partition List33linked listTwo Pointers87Scramble String52stringRecursion DP88Merge Sorted Array25arrayTwo Pointers merge89Gray Code42 combination90Subsets II42arrayRecursion combination91Decode Ways34stringRecursion DP92Reverse Linked List II32linked listTwo Pointers93Restore IP Addresses33stringDFS94Binary Tree Inorder Traversal43treeRecursion hashtablemorris Stack95Unique Binary Search Trees II41treeDP DFS96Unique Binary Search Trees31treeDP97Interleaving String52stringRecursion DP98Validate Binary Search Tree35treeDFS99Recover Binary Search Tree42treeDFS100Same Tree11treeDFS101Symmetric Tree12treeDFS102Binary Tree Level Order Traversal34treeBFS103Binary Tree Zigzag Level Order Traversal43queueBFS treeStack104Maximum Depth of Binary Tree11treeDFS105Construct Binary Tree from Preorder and Inorder Tr33arrayDFS tree 106Construct Binary Tree from Inorder and Postorder T33arrayDFS tree 107Binary Tree Level Order Traversal II31treeBFS108Convert Sorted Array to Binary Search Tree23treeDFS109Convert Sorted List to Binary Search Tree43linked listRecursion Two Pointers110Balanced Binary Tree12treeDFS111Minimum Depth of Binary Tree11treeDFS112Path Sum13treeDFS113Path Sum II22treeDFS114Flatten Binary Tree to Linked List33treeRecursion Stack115Distinct Subsequences42stringDP116Populating Next Right Pointers in Each Node33treeDFS117Populating Next Right Pointers in Each Node II42treeDFS118Pascal's Triangle21array 119Pascal's Triangle II21array 120Triangle31arrayDP121Best Time to Buy and Sell Stock21arrayDP122Best Time to Buy and Sell Stock II31arraygreedy123Best Time to Buy and Sell Stock III41arrayDP124Binary Tree Maximum Path Sum42treeDFS125Valid Palindrome25stringTwo Pointers126Word Ladder II11 127Word Ladder35graphBFS shortest path128Longest Consecutive Sequence43array 129Sum Root to Leaf Numbers24treeDFS130Surrounded Regions43arrayBFS DFS131Palindrome Partitioning34stringDFS132Palindrome Partitioning II43stringDP转自:
http://blog.csdn.net/yutianzuijin/article/details/11477603
0 0