精华内容
下载资源
问答
  • LeetCode刷题顺序

    2021-04-20 10:56:56
    LeetCode刷题顺序 按照如下类型来刷: 数组-> 链表-> 哈希表->字符串->栈与队列->树->回溯->贪心->动态规划->图论 数组: T35.搜索插入位置 T27. 移除元素 T209.长度最小的子数组 T59....

    LeetCode刷题顺序
    按照如下类型来刷:
    数组-> 链表-> 哈希表->字符串->栈与队列->树->回溯->贪心->动态规划->图论
    数组:
    T35.搜索插入位置C#实现
    T27. 移除元素C#实现
    T209.长度最小的子数组C#实现
    T59.螺旋矩阵IIC#实现

    链表:
    T203.移除链表元素C#实现
    T707.设计链表C#实现
    T206.反转链表C#实现
    T203.环形链表IIC#实现

    哈希表:

    字符串:

    栈与队列:

    树:

    回溯:

    贪心:

    动态规划:

    图论:

    展开全文
  • LeetCode刷题顺序推荐

    2021-04-03 01:21:56
    Leetcode刷题顺序整理 1.来自liuyubobobo老师慕课网上的课程(liu老师的代码仓库),大概有270到题,应该差不多了,仅供大家参考 2.http://www.cyc2018.xyz/ 3.https://labuladong.gitee.io/algo/

    Leetcode刷题顺序整理

    1.来自liuyubobobo老师慕课网上的课程(liu老师的代码仓库),去重之后有277道题,应该差不多了,仅供大家参考

    玩转算法的代码仓库

     

    2.http://www.cyc2018.xyz/

    3.https://labuladong.gitee.io/algo/

    展开全文
  • leetcode刷题顺序

    2020-06-21 18:53:26
    Hash相关 两数之和 链表操作 2:两数相加 19:删除链表的倒数第N个节点 61:旋转链表 138:复制带随机指针的链表 206:反转链表 双指针/滑动窗口 3:无重复字符的最长字串 11:盛水最多的容器 ...14:最长公共子

    Hash相关

    • 两数之和

    链表操作

    • 2:两数相加
    • 19:删除链表的倒数第N个节点
    • 61:旋转链表
    • 138:复制带随机指针的链表
    • 206:反转链表

    双指针/滑动窗口

    • 3:无重复字符的最长字串
    • 11:盛水最多的容器
    • 15:三数之和
    • 16:最接近的三数之和
    • 26:删除排序数组中的重复项
    • 42:接雨水
    • 121:买卖股票的最佳时机
    • 209:长度最小的子数组

    快慢指针遍历

    • 141:环形链表
    • 202:快乐数
    • 876:链表的中间结点

    区间合并

    • 56:区间合并

    字符串操作

    • 6:z字形变换
    • 14:最长公共子串
    • 736:划分字母区间

    数字操作

    • 7:整数反转
    • 8:字符串转换整数
    • 9:回文数
    • 43:字符串相乘
    • 172:阶乘后的零

    数组操作

    • 54:螺旋矩阵
    • 73:矩阵置零
    • 945:使数组唯一的最小增量

    栈相关

    • 20:有效的括号
    • 32:最长有小括号
    • 155:最小栈
    • 224:基本计算器
    • 316:去除重复字母

    堆相关

    • 215:数组中的第K个最大元素
    • 347:前K个高频元素

    递归

    • 21:合并两个有序链表
    • 101:对称二叉树
    • 104:二叉树的最大深度
    • 226:翻转二叉树
    • 236:二叉树的最近公共祖先

    分治法/二分法

    • 23:合并K个排序链表
    • 33:搜索旋转排序数组
    • 34:在排序数组中查找元素的第一个和最后一个位置

    动态规划

    • 5:最长回文子串
    • 53:最大子序和
    • 62:不同路径
    • 64:最小路径和
    • 70:爬楼梯
    • 118:杨辉三角
    • 300:最长上升子序列
    • 746:使用最小花费爬楼梯
    • 1277:统计全为1的正方形子矩阵

    回溯法

    • 10:正则表达式匹配
    • 22:括号生成
    • 46:全排列

    树的遍历

    • 94:二叉树的中序遍历
    • 102:二叉树的层次遍历
    • 110:平衡二叉树
    • 144:二叉树的前序遍历
    • 145:二叉树的后序遍历

    二叉搜索树相关

    • 98:验证二叉搜索树
    • 450:删除二叉搜索树中的节点
    • 701:二叉搜索树中的插入操作
    展开全文
  • Leetcode刷题顺序

    2019-07-14 23:15:36
    这个重点题目是我个人把Leetcode前400题进行精简,精简方法如下: 删除不常考,面试低频出现题目 删除重复代码题目(例:链表反转206题,代码在234题出现过) 删除过于简单题目(例:100题:Same Tree) 删除题意...

    Leetcode 分类顺序

    Array

    基础
    27 Remove Element
    26 Remove Duplicates from Sorted Array
    80 Remove Duplicates from Sorted Array II
    277 Find the Celebrity
    189 Rotate Array
    41 First Missing Positive
    299 Bulls and Cows
    134 Gas Station
    118 Pascal’s Triangle 很少考
    119 Pascal’s Triangle II 很少考
    169 Majority Element 很少考
    229 Majority Element II 很少考
    274 H-Index
    275 H-Index II Binary Search
    243 Shortest Word Distance
    244 Shortest Word Distance II
    245 Shortest Word Distance III
    217 Contains Duplicate
    219 Contains Duplicate II 很少考
    220 Contains Duplicate III 很少考
    55 Jump Game
    45 Jump Game II
    121 Best Time to Buy and Sell Stock
    122 Best Time to Buy and Sell Stock II
    123 Best Time to Buy and Sell Stock III
    188 Best Time to Buy and Sell Stock IV
    309 Best Time to Buy and Sell Stock with Cooldown
    11 Container With Most Water
    42 Trapping Rain Water
    334 Increasing Triplet Subsequence
    128 Longest Consecutive Sequence
    164 Maximum Gap Bucket
    287 Find the Duplicate Number
    135 Candy 很少考
    330 Patching Array 很少考
    提高
    4 Median of Two Sorted Arrays
    321 Create Maximum Number 很少考
    327 Count of Range Sum 很少考
    289 Game of Life
    Interval
    57 Insert Interval
    56 Merge Intervals
    252 Meeting Rooms
    253 Meeting Rooms II
    352 Data Stream as Disjoint Intervals TreeMap
    Counter
    239 Sliding Window Maximum
    295 Find Median from Data Stream
    53 Maximum Subarray
    325 Maximum Size Subarray Sum Equals k
    209 Minimum Size Subarray Sum
    238 Product of Array Except Self
    152 Maximum Product Subarray
    228 Summary Ranges
    163 Missing Ranges
    Sort
    88 Merge Sorted Array
    75 Sort Colors
    283 Move Zeroes
    376 Wiggle Subsequence
    280 Wiggle Sort
    324 Wiggle Sort II

    String

    基础
    28 Implement strStr()
    14 Longest Common Prefix
    58 Length of Last Word
    387 First Unique Character in a String
    383 Ransom Note
    344 Reverse String
    151 Reverse Words in a String
    186 Reverse Words in a String II
    345 Reverse Vowels of a String
    205 Isomorphic Strings
    293 Flip Game
    294 Flip Game II
    290 Word Pattern
    242 Valid Anagram
    49 Group Anagrams
    249 Group Shifted Strings
    87 Scramble String
    179 Largest Number 很少考
    6 ZigZag Conversion 很少考
    161 One Edit Distance
    38 Count and Say
    358 Rearrange String k Distance Apart
    316 Remove Duplicate Letters
    271 Encode and Decode Strings
    168 Excel Sheet Column Title
    171 Excel Sheet Column Number
    13 Roman to Integer
    12 Integer to Roman
    273 Integer to English Words
    246 Strobogrammatic Number
    247 Strobogrammatic Number II
    248 Strobogrammatic Number III 很少考
    提高
    68 Text Justification
    65 Valid Number
    157 Read N Characters Given Read4
    158 Read N Characters Given Read4 II - Call multiple times
    Substring
    76 Minimum Window Substring Sliding Window
    30 Substring with Concatenation of All Words Sliding Window
    3 Longest Substring Without Repeating Characters Sliding Window
    340 Longest Substring with At Most K Distinct Characters Sliding Window
    395 Longest Substring with At Least K Repeating Characters Sliding Window
    159 Longest Substring with At Most Two Distinct Characters Sliding Window
    Palindrome
    125 Valid Palindrome
    266 Palindrome Permutation
    5 Longest Palindromic Substring
    9 Palindrome Number
    214 Shortest Palindrome
    336 Palindrome Pairs
    131 Palindrome Partitioning
    132 Palindrome Partitioning II
    267 Palindrome Permutation II
    Parentheses
    20 Valid Parentheses
    22 Generate Parentheses
    32 Longest Valid Parentheses
    241 Different Ways to Add Parentheses
    301 Remove Invalid Parentheses
    Subsequence
    392 Is Subsequence
    115 Distinct Subsequences
    187 Repeated DNA Sequences 很少考

    Math

    基础
    7 Reverse Integer
    165 Compare Version Numbers
    66 Plus One
    8 String to Integer (atoi)
    258 Add Digits
    67 Add Binary
    43 Multiply Strings
    29 Divide Two Integers
    69 Sqrt(x)
    50 Pow(x, n)
    367 Valid Perfect Square
    365 Water and Jug Problem
    204 Count Primes
    Sum
    1 Two Sum
    167 Two Sum II - Input array is sorted
    15 3Sum
    16 3Sum Closest 很少考
    259 3Sum Smaller 很少考
    18 4Sum
    很少考
    231 Power of Two
    326 Power of Three
    342 Power of Four
    372 Super Pow
    233 Number of Digit One
    319 Bulb Switcher
    292 Nim Game
    202 Happy Number
    400 Nth Digit
    263 Ugly Number
    264 Ugly Number II
    306 Additive Number
    172 Factorial Trailing Zeroes
    343 Integer Break
    396 Rotate Function
    390 Elimination Game
    386 Lexicographical Numbers
    357 Count Numbers with Unique Digits
    360 Sort Transformed Array
    397 Integer Replacement
    368 Largest Divisible Subset

    Tree

    基础
    144 Binary Tree Preorder Traversal preorder
    94 Binary Tree Inorder Traversal Inorder
    145 Binary Tree Postorder Traversal postorder
    102 Binary Tree Level Order Traversal DFS + BFS
    Preorder
    100 Same Tree preorder
    101 Symmetric Tree preorder
    226 Invert Binary Tree preorder + BFS
    257 Binary Tree Paths preorder
    112 Path Sum preorder
    113 Path Sum II preorder
    129 Sum Root to Leaf Numbers preorder
    298 Binary Tree Longest Consecutive Sequence preorder
    111 Minimum Depth of Binary Tree preorder
    Postorder
    104 Maximum Depth of Binary Tree postorder
    110 Balanced Binary Tree postorder
    124 Binary Tree Maximum Path Sum postorder
    250 Count Univalue Subtrees postorder
    366 Find Leaves of Binary Tree postorder
    337 House Robber III postorder + preorder
    BFS
    107 Binary Tree Level Order Traversal II BFS
    103 Binary Tree Zigzag Level Order Traversal BFS
    199 Binary Tree Right Side View BFS + preorder
    BST
    98 Validate Binary Search Tree preorder
    235 Lowest Common Ancestor of a Binary Search Tree preorder
    236 Lowest Common Ancestor of a Binary Tree postorder
    108 Convert Sorted Array to Binary Search Tree binary search
    109 Convert Sorted List to Binary Search Tree binary search
    173 Binary Search Tree Iterator inorder
    230 Kth Smallest Element in a BST inorder
    297 Serialize and Deserialize Binary Tree BFS
    285 Inorder Successor in BST inorder
    270 Closest Binary Search Tree Value preorder
    272 Closest Binary Search Tree Value II inorder
    99 Recover Binary Search Tree inorder
    重要程度
    156 Binary Tree Upside Down 很少考
    114 Flatten Binary Tree to Linked List 很少考
    255 Verify Preorder Sequence in Binary Search Tree 很少考
    333 Largest BST Subtree 很少考
    222 Count Complete Tree Nodes 很少考
    105 Construct Binary Tree from Preorder and Inorder Traversal 很少考
    106 Construct Binary Tree from Inorder and Postorder Traversal 很少考
    116 Populating Next Right Pointers in Each Node 重要
    117 Populating Next Right Pointers in Each Node II 重要
    314 Binary Tree Vertical Order Traversal 重要
    96 Unique Binary Search Trees 重要
    95 Unique Binary Search Trees II 很少考
    331 Verify Preorder Serialization of a Binary Tree 很少考

    Backtracking

    基础
    78 Subsets
    90 Subsets II
    77 Combinations
    39 Combination Sum
    40 Combination Sum II
    216 Combination Sum III
    377 Combination Sum IV Dynamic Programming
    254 Factor Combinations
    46 Permutations
    47 Permutations II
    31 Next Permutation String
    60 Permutation Sequence String
    291 Word Pattern II
    Enumeration
    17 Letter Combinations of a Phone Number
    320 Generalized Abbreviation 要重录
    93 Restore IP Addresses 很少考
    282 Expression Add Operators
    140 Word Break II
    351 Android Unlock Patterns

    Dynamic Programming

    一维
    70 Climbing Stairs
    62 Unique Paths
    63 Unique Paths II
    120 Triangle 很少考
    279 Perfect Squares
    139 Word Break
    375 Guess Number Higher or Lower II
    312 Burst Balloons
    322 Coin Change
    二维
    256 Paint House
    265 Paint House II
    64 Minimum Path Sum
    72 Edit Distance
    97 Interleaving String
    174 Dungeon Game
    221 Maximal Square
    85 Maximal Rectangle
    363 Max Sum of Rectangle No Larger Than K TreeSet
    化简
    198 House Robber
    213 House Robber II
    276 Paint Fence
    91 Decode Ways
    10 Regular Expression Matching
    44 Wildcard Matching

    LinkedList

    基础
    206 Reverse Linked List
    141 Linked List Cycle
    24 Swap Nodes in Pairs
    328 Odd Even Linked List
    92 Reverse Linked List II
    237 Delete Node in a Linked List
    19 Remove Nth Node From End of List
    83 Remove Duplicates from Sorted List
    203 Remove Linked List Elements
    82 Remove Duplicates from Sorted List II
    369 Plus One Linked List
    2 Add Two Numbers
    160 Intersection of Two Linked Lists
    21 Merge Two Sorted Lists
    提高
    234 Palindrome Linked List
    143 Reorder List
    142 Linked List Cycle II
    148 Sort List
    25 Reverse Nodes in k-Group
    61 Rotate List
    86 Partition List
    23 Merge k Sorted Lists
    147 Insertion Sort List

    Binary Search

    基础
    278 First Bad Version
    35 Search Insert Position
    33 Search in Rotated Sorted Array
    81 Search in Rotated Sorted Array II
    153 Find Minimum in Rotated Sorted Array
    154 Find Minimum in Rotated Sorted Array II
    162 Find Peak Element
    374 Guess Number Higher or Lower
    34 Search for a Range
    349 Intersection of Two Arrays
    350 Intersection of Two Arrays II
    315 Count of Smaller Numbers After Self
    300 Longest Increasing Subsequence
    354 Russian Doll Envelopes

    Matrix

    48 Rotate Image
    54 Spiral Matrix
    59 Spiral Matrix II
    73 Set Matrix Zeroes
    311 Sparse Matrix Multiplication
    329 Longest Increasing Path in a Matrix
    378 Kth Smallest Element in a Sorted Matrix
    74 Search a 2D Matrix
    240 Search a 2D Matrix II
    370 Range Addition
    79 Word Search
    296 Best Meeting Point
    361 Bomb Enemy
    317 Shortest Distance from All Buildings
    302 Smallest Rectangle Enclosing Black Pixels
    36 Valid Sudoku
    37 Sudoku Solver

    DFS & BFS

    基础
    200 Number of Islands
    286 Walls and Gates
    130 Surrounded Regions
    339 Nested List Weight Sum
    364 Nested List Weight Sum II
    127 Word Ladder
    51 N-Queens
    52 N-Queens II
    126 Word Ladder II

    Stack & PriorityQueue

    Stack
    155 Min Stack
    232 Implement Queue using Stacks
    225 Implement Stack using Queues
    150 Evaluate Reverse Polish Notation
    71 Simplify Path
    388 Longest Absolute File Path
    394 Decode String
    224 Basic Calculator
    227 Basic Calculator II
    385 Mini Parser
    84 Largest Rectangle in Histogram
    PriorityQueue
    215 Kth Largest Element in an Array
    347 Top K Frequent Elements
    313 Super Ugly Number 很少考
    373 Find K Pairs with Smallest Sums 很少考
    218 The Skyline Problem
    332 Reconstruct Itinerary
    341 Flatten Nested List Iterator

    Bit Manipulation

    基础
    389 Find the Difference
    136 Single Number
    318 Maximum Product of Word Lengths
    很少考
    393 UTF-8 Validation
    201 Bitwise AND of Numbers Range
    371 Sum of Two Integers
    338 Counting Bits
    89 Gray Code
    268 Missing Number
    191 Number of 1 Bits
    190 Reverse Bits
    137 Single Number II
    260 Single Number III

    Topological Sort

    基础
    207 Course Schedule
    210 Course Schedule II
    269 Alien Dictionary

    Random

    基础
    模板 Reservoir Sampling
    384 Shuffle an Array
    398 Random Pick Index
    382 Linked List Random Node
    380 Insert Delete GetRandom O(1)
    381 Insert Delete GetRandom O(1) - Duplicates allowed
    138 Copy List with Random Pointer

    Graph

    基础
    133 Clone Graph
    399 Evaluate Division
    310 Minimum Height Trees
    图形学
    335 Self Crossing 很少考
    149 Max Points on a Line
    356 Line Reflection 很少考
    391 Perfect Rectangle 很少考
    223 Rectangle Area 很少考

    Union FInd

    基础
    261 Graph Valid Tree
    323 Number of Connected Components in an Undirected Graph
    305 Number of Islands II

    Trie

    基础
    211 Add and Search Word - Data structure design
    208 Implement Trie (Prefix Tree)
    212 Word Search II

    Design

    基础
    359 Logger Rate Limiter
    346 Moving Average from Data Stream Sliding Window
    362 Design Hit Counter
    281 Zigzag Iterator
    284 Peeking Iterator
    251 Flatten 2D Vector
    288 Unique Word Abbreviation
    170 Two Sum III - Data structure design
    348 Design Tic-Tac-Toe
    379 Design Phone Directory
    353 Design Snake Game
    146 LRU Cache
    355 Design Twitter
    303 Range Sum Query - Immutable
    304 Range Sum Query 2D - Immutable
    307 Range Sum Query - Mutable Binary Index Tree
    308 Range Sum Query 2D - Mutable Binary Index Tree

    Leetcode 前 400 重点 250 题 划分说明

    这个重点题目是我个人把Leetcode前400题进行精简,精简方法如下:

    删除不常考,面试低频出现题目
    删除重复代码题目(例:链表反转206题,代码在234题出现过)
    删除过于简单题目(例:100题:Same Tree)
    删除题意不同,代码基本相同题目(例:136 & 389,保留一个)
    所有题目我尽量保证客观公正,只是按大概率删除不常考题目,很多题目面经出现过,但出现次数属于个位数或者只有一两家出现。所以如在面试中出现删除题目概不负责,这只是从概率上删除低频,简单题目。旨在减轻大家的刷题负担,从400题减少到250题。

    适用人群:有一定刷题基础,算法基础,二刷人群。

    建议:400题全部刷完,再精刷这250题。

    重点题目

    ID Title
    1 Two Sum
    3 Longest Substring Without Repeating Characters
    4 Median of Two Sorted Arrays
    5 Longest Palindromic Substring
    7 Reverse Integer
    8 String to Integer (atoi)
    10 Regular Expression Matching
    11 Container With Most Water
    12 Integer to Roman
    13 Roman to Integer
    15 3Sum
    17 Letter Combinations of a Phone Number
    18 4Sum
    20 Valid Parentheses
    22 Generate Parentheses
    23 Merge k Sorted Lists
    26 Remove Duplicates from Sorted Array
    27 Remove Element
    28 Implement strStr()
    29 Divide Two Integers
    31 Next Permutation
    32 Longest Valid Parentheses
    33 Search in Rotated Sorted Array
    34 Search for a Range
    35 Search Insert Position
    36 Valid Sudoku
    37 Sudoku Solver
    38 Count and Say
    39 Combination Sum
    40 Combination Sum II
    41 First Missing Positive
    42 Trapping Rain Water
    43 Multiply Strings
    44 Wildcard Matching
    45 Jump Game II
    46 Permutations
    47 Permutations II
    48 Rotate Image
    49 Group Anagrams
    50 Pow(x, n)
    51 N-Queens
    52 N-Queens II
    53 Maximum Subarray
    54 Spiral Matrix
    55 Jump Game
    56 Merge Intervals
    57 Insert Interval
    59 Spiral Matrix II
    60 Permutation Sequence
    62 Unique Paths
    64 Minimum Path Sum
    65 Valid Number
    66 Plus One
    67 Add Binary
    68 Text Justification
    69 Sqrt(x)
    70 Climbing Stairs
    71 Simplify Path
    72 Edit Distance
    74 Search a 2D Matrix
    75 Sort Colors
    76 Minimum Window Substring
    77 Combinations
    78 Subsets
    79 Word Search
    80 Remove Duplicates from Sorted Array II
    81 Search in Rotated Sorted Array II
    82 Remove Duplicates from Sorted List II
    84 Largest Rectangle in Histogram
    85 Maximal Rectangle
    88 Merge Sorted Array
    90 Subsets II
    91 Decode Ways
    96 Unique Binary Search Trees
    98 Validate Binary Search Tree
    101 Symmetric Tree
    104 Maximum Depth of Binary Tree
    108 Convert Sorted Array to Binary Search Tree
    110 Balanced Binary Tree
    111 Minimum Depth of Binary Tree
    112 Path Sum
    113 Path Sum II
    115 Distinct Subsequences
    116 Populating Next Right Pointers in Each Node
    117 Populating Next Right Pointers in Each Node II
    121 Best Time to Buy and Sell Stock
    122 Best Time to Buy and Sell Stock II
    123 Best Time to Buy and Sell Stock III
    124 Binary Tree Maximum Path Sum
    125 Valid Palindrome
    126 Word Ladder II
    127 Word Ladder
    128 Longest Consecutive Sequence
    130 Surrounded Regions
    133 Clone Graph
    134 Gas Station
    138 Copy List with Random Pointer
    139 Word Break
    140 Word Break II
    142 Linked List Cycle II
    146 LRU Cache
    149 Max Points on a Line
    150 Evaluate Reverse Polish Notation
    152 Maximum Product Subarray
    153 Find Minimum in Rotated Sorted Array
    154 Find Minimum in Rotated Sorted Array II
    155 Min Stack
    157 Read N Characters Given Read4
    158 Read N Characters Given Read4 II - Call multiple times
    161 One Edit Distance
    162 Find Peak Element
    163 Missing Ranges
    168 Excel Sheet Column Title
    171 Excel Sheet Column Number
    173 Binary Search Tree Iterator
    186 Reverse Words in a String II
    174 Dungeon Game
    188 Best Time to Buy and Sell Stock IV
    189 Rotate Array
    191 Number of 1 Bits
    198 House Robber
    200 Number of Islands
    201 Bitwise AND of Numbers Range
    202 Happy Number
    204 Count Primes
    205 Isomorphic Strings
    207 Course Schedule
    208 Implement Trie (Prefix Tree)
    209 Minimum Size Subarray Sum
    210 Course Schedule II
    211 Add and Search Word - Data structure design
    212 Word Search II
    213 House Robber II
    214 Shortest Palindrome
    215 Kth Largest Element in an Array
    216 Combination Sum III
    217 Contains Duplicate
    218 The Skyline Problem
    219 Contains Duplicate II
    220 Contains Duplicate III
    221 Maximal Square
    224 Basic Calculator
    225 Implement Stack using Queues
    226 Invert Binary Tree
    227 Basic Calculator II
    228 Summary Ranges
    230 Kth Smallest Element in a BST
    231 Power of Two
    232 Implement Queue using Stacks
    235 Lowest Common Ancestor of a Binary Search Tree
    236 Lowest Common Ancestor of a Binary Tree
    238 Product of Array Except Self
    239 Sliding Window Maximum
    240 Search a 2D Matrix II
    241 Different Ways to Add Parentheses
    242 Valid Anagram
    244 Shortest Word Distance II
    245 Shortest Word Distance III
    249 Group Shifted Strings
    251 Flatten 2D Vector
    252 Meeting Rooms
    253 Meeting Rooms II
    254 Factor Combinations
    256 Paint House
    257 Binary Tree Paths
    261 Graph Valid Tree
    263 Ugly Number
    264 Ugly Number II
    265 Paint House II
    268 Missing Number
    269 Alien Dictionary
    270 Closest Binary Search Tree Value
    271 Encode and Decode Strings
    273 Integer to English Words
    274 H-Index
    275 H-Index II
    276 Paint Fence
    277 Find the Celebrity
    278 First Bad Version
    279 Perfect Squares
    280 Wiggle Sort
    282 Expression Add Operators
    283 Move Zeroes
    284 Peeking Iterator
    285 Inorder Successor in BST
    286 Walls and Gates
    287 Find the Duplicate Number
    288 Unique Word Abbreviation
    289 Game of Life
    290 Word Pattern
    291 Word Pattern II
    293 Flip Game
    294 Flip Game II
    295 Find Median from Data Stream
    296 Best Meeting Point
    297 Serialize and Deserialize Binary Tree
    298 Binary Tree Longest Consecutive Sequence
    299 Bulls and Cows
    300 Longest Increasing Subsequence
    301 Remove Invalid Parentheses
    302 Smallest Rectangle Enclosing Black Pixels
    305 Number of Islands II
    307 Range Sum Query - Mutable
    308 Range Sum Query 2D - Mutable
    309 Best Time to Buy and Sell Stock with Cooldown
    311 Sparse Matrix Multiplication
    312 Burst Balloons
    314 Binary Tree Vertical Order Traversal
    316 Remove Duplicate Letters
    317 Shortest Distance from All Buildings
    318 Maximum Product of Word Lengths
    322 Coin Change
    323 Number of Connected Components in an Undirected Graph
    324 Wiggle Sort II
    325 Maximum Size Subarray Sum Equals k
    329 Longest Increasing Path in a Matrix
    334 Increasing Triplet Subsequence
    336 Palindrome Pairs
    337 House Robber III
    338 Counting Bits
    339 Nested List Weight Sum
    340 Longest Substring with At Most K Distinct Characters
    341 Flatten Nested List Iterator
    346 Moving Average from Data Stream
    347 Top K Frequent Elements
    348 Design Tic-Tac-Toe
    350 Intersection of Two Arrays II
    351 Android Unlock Patterns
    352 Data Stream as Disjoint Intervals
    353 Design Snake Game
    354 Russian Doll Envelopes
    355 Design Twitter
    359 Logger Rate Limiter
    361 Bomb Enemy
    362 Design Hit Counter
    364 Nested List Weight Sum II
    367 Valid Perfect Square
    374 Guess Number Higher or Lower
    375 Guess Number Higher or Lower II
    376 Wiggle Subsequence
    377 Combination Sum IV
    378 Kth Smallest Element in a Sorted Matrix
    379 Design Phone Directory
    380 Insert Delete GetRandom O(1)
    381 Insert Delete GetRandom O(1) - Duplicates allowed
    384 Shuffle an Array
    385 Mini Parser
    389 Find the Difference
    394 Decode String
    398 Random Pick Index

    参考网站

    https://leetcode.com/

    展开全文
  • Leetcode刷题顺序与总结(更新中) 文章目录Leetcode刷题顺序与总结(更新中)前言一、数组1.二分法二、链表总结 前言 刷题顺序:先从同一类型里题目开始刷起,同一类型里再从简单到中等到困难刷起,题型顺序...
  • Leetcode刷题顺序——4

    2021-04-20 22:21:35
    文章目录题目看懂题目解题思路思路转换为代码总结 题目 ????209. 长度最小的子数组 看懂题目 这道题目意思比较容易看懂,就是寻找最小的连续子串之和大于目标值即可。 ...暴力法(这个就不用多说,但是还是得会的)。...
  • 链表逆序 LeetCode 2062.链表逆序b LeetCode 923.链表求环 Leetcode 1424.链表划分 LeetCode 138总结 链表与数组 链表和数组作为算法中的两个基本数据结构,在算法设计是基础的. 数组在物理存储单元中是连续和线性...
  • 偷来的刷题顺序: from:https://zhuanlan.zhihu.com/p/113397119 按着下面的顺序打LeetCode:先做新手任务;出了新手村以后,也别忘了每天刷刷任务;对于学有余力的同学,还可以尝试更进阶的副本任务 新手村任务 ...
  • 文章目录题目看懂题目解题思路思路转换为代码总结 题目 ????707. 设计链表 看懂题目 有一个地方需要注意就是这里的index指的就是下标,不是第几个。 ...这个没啥思路,就是对于链表的理解。... int leng
  • 转自链接:...Equal Subset Sum Partition (medium) Subset Sum (medium) Minimum Subset Sum Difference (hard) Pattern: Topological Sort (Graph),拓扑排序类型 拓扑排序模式用来寻找一种线性的顺序,...
  • LeetCode 刷题顺序

    2017-12-11 16:44:00
    Id Question Difficulty Frequency Data Structures Algorithms 1 Two Sum 2 5 array + set sort + two pointers 2 Add Two Numbers 3 4 linked list two pointers + ...
  • 27.要求 原地 移除所有数值等于 val 的元素,并返回移除后数组的新长度。 int removeElement(vector& nums, int val) { int len = 0; for(int i = 0;i ();i++){ if(nums[i]!=val){ nums[len]=nums[i];... 刷题顺序来源.

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 1,702
精华内容 680
关键字:

leetcode刷题顺序