为有牺牲多壮志,敢教日月换新天。

Swift LeetCode 目录 | Catalog(每周日更新......)

★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★

➤微信公众号:MindDraft
➤博主域名:https://www.zengqiang.org
➤GitHub地址:https://github.com/strengthen/LeetCode
➤原文地址:https://www.cnblogs.com/strengthen/p/9895524.html
➤如果链接不是山青咏芝的博客园地址,则可能是爬取作者的文章。
➤原文已修改更新!强烈建议点击原文地址阅读!支持作者!支持原创!
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★

热烈欢迎,请直接点击!!!

进入博主App Store主页,下载使用各个作品!!!

注:博主将坚持每月上线一个新app!!!

 

请点击页面左上角 -> Fork me on Github

或直接访问本项目Github地址:LeetCode Solution by Swift   

说明:题目中含有$符号则为付费题目。

如:[Swift]LeetCode156.二叉树的上下颠倒 $ Binary Tree Upside Down

请下拉滚动条查看最新 Weekly Contest!!!

Swift LeetCode 目录 | Catalog
序        号 题名Title 难度     Difficulty
1  两数之和 | Two Sum Easy
2 两数相加 | Add Two Numbers  Medium
3  无重复字符的最长子串 | Longest Substring Without Repeating Characters Medium
4 两个排序数组的中位数 | Median of Two Sorted Arrays  Hard
5 最长回文子串 | Longest Palindromic Substring  Medium
6  Z字形变换 | ZigZag Conversion Medium
7 反转整数 | Reverse Integer  Easy
8 字符串转整数 (atoi) | String to Integer (atoi)  Medium
9   回文数 | Palindrome Number Easy
10  正则表达式匹配 | Regular Expression Matching Hard
11  盛最多水的容器 | Container With Most Water Medium
12 整数转罗马数字 | Integer to Roman  Medium
13 罗马数字转整数 | Roman to Integer
Easy
14 最长公共前缀 | Longest Common Prefix  Easy
15  三数之和 | 3Sum Medium
16 最接近的三数之和 | 3Sum Closest  Medium
17  电话号码的字母组合 | Letter Combinations of a Phone Number Medium
18  四数之和 | 4Sum Medium
19  删除链表的倒数第N个节点 | Remove Nth Node From End of List Medium
20  有效的括号 | Valid Parentheses Easy
21 合并两个有序链表 | Merge Two Sorted Lists Easy
22 括号生成 | Generate Parentheses
Medium 
23 合并K个排序链表 | Merge k Sorted Lists  Hard
24  两两交换链表中的节点 | Swap Nodes in Pairs Medium
25 k个一组翻转链表 | Reverse Nodes in k-Group  Hard
26 删除排序数组中的重复项 | Remove Duplicates from Sorted Array  Easy
27 移除元素 | Remove Element   Easy
28 实现strStr() | Implement strStr()   Easy
29 两数相除 | Divide Two Integers  Medium
30  与所有单词相关联的字串 | Substring with Concatenation of All Words Hard
31  下一个排列 | Next Permutation Medium
32  最长有效括号 | Longest Valid Parentheses Hard
33 搜索旋转排序数组 | Search in Rotated Sorted Array  Medium
34  在排序数组中查找元素的第一个和最后一个位置 | Find First and Last Position of Element in Sorted Array Medium
35 搜索插入位置 | Search Insert Position  Easy
36  有效的数独 | Valid Sudoku Medium
37  解数独 | Sudoku Solver Hard
38 报数 | Count and Say  Easy
39  组合总和 | Combination Sum Medium
40  组合总和 II | Combination Sum II Medium
41  缺失的第一个正数 | First Missing Positive Hard
42 接雨水 | Trapping Rain Water  Hard
43  字符串相乘 | Multiply Strings Medium
44 通配符匹配 | Wildcard Matching  Hard
45  跳跃游戏 II | Jump Game II Hard
46 全排列 | Permutations  Medium
47  全排列 II | Permutations II Medium
48  旋转图像 | Rotate Image Medium
49  字母异位词分组 | Group Anagrams Medium
50  Pow(x, n) | Pow(x, n) Medium
51  N皇后 | N-Queens Hard
52  N皇后 II | N-Queens II Hard
53 最大子序和 | Maximum Subarray  Easy
54 螺旋矩阵 | Spiral Matrix Medium
55 跳跃游戏 | Jump Game  Medium
56  合并区间 | Merge Intervals Medium
57 插入区间 | Insert Interval  Hard
58 最后一个单词的长度 | Length of Last Word  Easy
59  螺旋矩阵 II | Spiral Matrix II Medium
60  第k个排列 | Permutation Sequence Medium
61 旋转链表 | Rotate List  Medium
62  不同路径 | Unique Paths Medium
63  不同路径 II | Unique Paths II Medium
64  最小路径和 | Minimum Path Sum Medium
65 有效数字 | Valid Number  Hard
66  加一 | Plus One Easy
67  二进制求和 | Add Binary Easy
68  文本左右对齐 | Text Justification Hard
69 x 的平方根 | Sqrt(x)  Easy
70 爬楼梯 | Climbing Stairs  Easy
71  简化路径 | Simplify Path Medium
72  编辑距离 | Edit Distance Hard
73  矩阵置零 | Set Matrix Zeroes Medium
74  搜索二维矩阵 | Search a 2D Matrix Medium
75  颜色分类 | Sort Colors Medium
76  最小覆盖子串 | Minimum Window Substring Hard
77 组合 | Combinations  Medium
78  子集 | Subsets Medium
79  单词搜索 | Word Search Medium
80  删除排序数组中的重复项 II | Remove Duplicates from Sorted Array II Medium
81  搜索旋转排序数组 II | Search in Rotated Sorted Array II Medium
82  删除排序链表中的重复元素 II | Remove Duplicates from Sorted List II Medium
83 删除排序链表中的重复元素 | Remove Duplicates from Sorted List  Easy
84  柱状图中最大的矩形 | Largest Rectangle in Histogram Hard
85  最大矩形 | Maximal Rectangle Hard
86  分隔链表 | Partition List Medium
87  扰乱字符串 | Scramble String Hard
88 合并两个有序数组 | Merge Sorted Array  Easy
89  格雷编码 | Gray Code Medium
90  子集 II | Subsets II Medium
91  解码方法 | Decode Ways Medium
92 反转链表 II | Reverse Linked List II  Medium
93 复原IP地址 | Restore IP Addresses  Medium
94 二叉树的中序遍历 | Binary Tree Inorder Traversal  Medium
95  不同的二叉搜索树 II | Unique Binary Search Trees II Medium
96  不同的二叉搜索树 | Unique Binary Search Trees Medium
97 交错字符串 | Interleaving String  Medium
98  验证二叉搜索树 | Validate Binary Search Tree Medium
99  恢复二叉搜索树 | Recover Binary Search Tree Medium
100 相同的树 | Same Tree  Hard
101 对称二叉树 | Symmetric Tree  Easy
102 二叉树的层次遍历 | Binary Tree Level Order Traversal Medium
103  二叉树的锯齿形层次遍历 | Binary Tree Zigzag Level Order Traversal Medium
104  二叉树的最大深度 | Maximum Depth of Binary Tree Easy
105 从前序与中序遍历序列构造二叉树 | Construct Binary Tree from Preorder and Inorder Traversal  Medium
106  从中序与后序遍历序列构造二叉树 | Construct Binary Tree from Inorder and Postorder Traversal Medium
107  二叉树的层次遍历 II | Binary Tree Level Order Traversal II Easy
108  将有序数组转换为二叉搜索树 | Convert Sorted Array to Binary Search Tree Easy
109  有序链表转换二叉搜索树 | Convert Sorted List to Binary Search Tree Medium
110  平衡二叉树 | Balanced Binary Tree Easy
111  二叉树的最小深度 | Minimum Depth of Binary Tree Easy
112  路径总和 | Path Sum Easy
113  路径总和 II | Path Sum II Medium
114  二叉树展开为链表 | Flatten Binary Tree to Linked List Medium
115 不同的子序列 | Distinct Subsequences  Hard
116 填充同一层的兄弟节点 | Populating Next Right Pointers in Each Node  Medium
117 填充同一层的兄弟节点 II | Populating Next Right Pointers in Each Node II  Medium
118  杨辉三角 | Pascal's Triangle Easy
119  杨辉三角 II | Pascal's Triangle II Easy
120 三角形最小路径和 | Triangle  Medium
121 买卖股票的最佳时机 I | Best Time to Buy and Sell Stock  Easy
122  买卖股票的最佳时机 II | Best Time to Buy and Sell Stock II Easy
123 买卖股票的最佳时机 III | Best Time to Buy and Sell Stock III  Hard
124  二叉树中的最大路径和 | Binary Tree Maximum Path Sum Hard
125 验证回文串 | Valid Palindrome  Easy
126 单词接龙 II | Word Ladder II  Hard
127  单词接龙 | Word Ladder Medium
128  最长连续序列 | Longest Consecutive Sequence Hard
129  求根到叶子节点数字之和 | Sum Root to Leaf Numbers Medium
130 被围绕的区域 | Surrounded Regions  Medium
131  分割回文串 | Palindrome Partitioning Medium
132  分割回文串 II | Palindrome Partitioning II Hard
133  克隆图 | Clone Graph Medium
134  加油站 | Gas Station Medium
135  分发糖果 | Candy Hard
136 只出现一次的数字 | Single Number  Easy
137 只出现一次的数字 II | Single Number II  Medium
138  复制带随机指针的链表 | Copy List with Random Pointer Medium
139  单词拆分 | Word Break Medium
140  单词拆分 II | Word Break II Hard
141 环形链表 | Linked List Cycle  Easy
142  环形链表 II | Linked List Cycle II Medium
143  重排链表 | Reorder List Medium
144  二叉树的前序遍历 | Binary Tree Preorder Traversal Medium
145  二叉树的后序遍历 | Binary Tree Postorder Traversal Hard
146 LRU缓存机制 | LRU Cache  Hard
147  对链表进行插入排序 | Insertion Sort List Medium
148  排序链表 | Sort List Medium
149  直线上最多的点数 | Max Points on a Line Hard
150 逆波兰表达式求值 | Evaluate Reverse Polish Notation  Medium
151  翻转字符串里的单词 | Reverse Words in a String Medium
152  乘积最大子序列 | Maximum Product Subarray Medium
153 寻找旋转排序数组中的最小值 | Find Minimum in Rotated Sorted Array  Medium
154 寻找旋转排序数组中的最小值 II | Find Minimum in Rotated Sorted Array II  Hard
155  最小栈 | Min Stack  Easy
156 二叉树的上下颠倒 $ Binary Tree Upside Down  Medium
157  用Read4来读取N个字符 $ Read N Characters Given Read4 Easy
158 用Read4来读取N个字符II $ Read N Characters Given Read4 II  Hard
159 具有最多两个不同字符的最长子串 $ Longest Substring with At Most Two Distinct Characters  Hard
160 相交链表 | Intersection of Two Linked Lists  Easy
161  一次编辑距离 $ One Edit Distance Medium
162 寻找峰值 | Find Peak Element  Medium
163 缺失区间 $ Missing Ranges  Medium
164  最大间距 | Maximum Gap Hard
165 比较版本号 | Compare Version Numbers  Medium
166  分数到小数 | Fraction to Recurring Decimal Medium
167 两数之和 II - 输入有序数组 | Two Sum II - Input array is sorted  Easy
168  Excel表列名称 | Excel Sheet Column Title Easy
169  求众数 | Majority Element Easy
170  两数之和之三 - 数据结构设计 $ Two Sum III - Data structure design Easy
171 Excel表列序号 | Excel Sheet Column Number  Easy
172  阶乘后的零 | Factorial Trailing Zeroes Easy
173 二叉搜索树迭代器 | Binary Search Tree Iterator Medium
174 地下城游戏 | Dungeon Game Hard
175  组合两个表 | Combine Two Tables Easy
176  第二高的薪水 | Second Highest Salary Easy
177 第N高的薪水 | Nth Highest Salary  Medium
178  分数排名 | Rank Scores Medium
179 最大数 | Largest Number  Medium
180 连续出现的数字 | Consecutive Numbers  Medium
181  超过经理收入的员工 | Employees Earning More Than Their Managers Easy
182  查找重复的电子邮箱 | Duplicate Emails Easy
183 从不订购的客户 | Customers Who Never Order  Easy
184 部门工资最高的员工 | Department Highest Salary  Medium
185 部门工资前三高的员工 | Department Top Three Salaries  Hard
186 翻转字符串中的单词 II $ Reverse Words in a String II  Medium
187  重复的DNA序列 | Repeated DNA Sequences Medium
188 买卖股票的最佳时机 IV | Best Time to Buy and Sell Stock IV  Hard
189  旋转数组 | Rotate Array Easy
190  颠倒二进制位 | Reverse Bits Easy
191  位1的个数 | Number of 1 Bits Easy
192 统计词频 | Word Frequency  Medium
193  有效电话号码 | Valid Phone Numbers Easy
194  转置文件 | Transpose File Medium
195  第十行 | Tenth Line Easy
196  删除重复的电子邮箱 | Delete Duplicate Emails Easy
197  上升的温度 | Rising Temperature Easy
198  打家劫舍 | House Robber Easy
199 二叉树的右视图 | Binary Tree Right Side View  Medium
200  岛屿的个数 | Number of Islands Medium
201 数字范围按位与 | Bitwise AND of Numbers Range Medium
202 快乐数 | Happy Number Easy
203  移除链表元素 | Remove Linked List Elements
Easy
204 计数质数 | Count Primes
Easy
205 同构字符串 | Isomorphic Strings
Easy
206 反转链表 | Reverse Linked List Easy
207 课程表 | Course Schedule Medium
208 实现 Trie (前缀树) | Implement Trie (Prefix Tree) Medium
209 长度最小的子数组 | Minimum Size Subarray Sum Medium
210 课程表 II | Course Schedule II Medium
211  添加与搜索单词 - 数据结构设计 | Add and Search Word - Data structure design Medium
212 单词搜索 II | Word Search II Hard
213 打家劫舍 II | House Robber II Medium
214 最短回文串 | Shortest Palindrome Hard
215 数组中的第K个最大元素 | Kth Largest Element in an Array Medium
216 组合总和 III | Combination Sum III Medium
217 存在重复元素 | Contains Duplicate Easy
218 天际线问题 | The Skyline Problem Hard
219 存在重复元素 II | Contains Duplicate II Easy
220 存在重复元素 III | Contains Duplicate III Medium
221 最大正方形 | Maximal Square Medium
222 完全二叉树的节点个数 | Count Complete Tree Nodes Medium
223 矩形面积 | Rectangle Area Medium
224 基本计算器 | Basic Calculator Hard
225 用队列实现栈 | Implement Stack using Queues Easy
226 翻转二叉树 | Invert Binary Tree Easy
227 基本计算器 II | Basic Calculator II Medium
228 汇总区间 | Summary Ranges Medium
229 求众数 II | Majority Element II Medium
230 二叉搜索树中第K小的元素 | Kth Smallest Element in a BST Medium
231 2的幂 | Power of Two Easy
232 用栈实现队列 | Implement Queue using Stacks Easy
233 数字1的个数 | Number of Digit One Hard
234 回文链表 | Palindrome Linked List Easy
235 二叉搜索树的最近公共祖先 | Lowest Common Ancestor of a Binary Search Tree Easy
236 二叉树的最近公共祖先 | Lowest Common Ancestor of a Binary Tree Medium
237 删除链表中的节点 | Delete Node in a Linked List Easy
238 除自身以外数组的乘积 | Product of Array Except Self Medium
239 滑动窗口最大值 | Sliding Window Maximum Hard
240 搜索二维矩阵 II | Search a 2D Matrix II Medium
241 为运算表达式设计优先级 | Different Ways to Add Parentheses Medium
242 有效的字母异位词 | Valid Anagram Easy
243 最短单词距离 $ Shortest Word Distance Easy
244 最短单词距离 II $ Shortest Word Distance II Medium
245 最短单词距离 III $ Shortest Word Distance III Medium
246 对称数 $ Strobogrammatic Number Easy
247 对称数 II $ Strobogrammatic Number II
Medium
248 对称数 III $ Strobogrammatic Number III
Hard
249 群组偏移字符串 $ Group Shifted Strings Medium
250 计数相同值子树的个数 $ Count Univalue Subtrees Medium
251 展平二维向量 $ Flatten 2D Vector
Medium
252 会议室 $ Meeting Rooms Easy
253 会议室 II $ Meeting Rooms II
Medium
254 因子组合 $ Factor Combinations
Medium
255 验证二叉搜索树的先序序列 $ Verify Preorder Sequence in Binary Search Tree
Medium
256 粉刷房子 $ Paint House
Easy
257 二叉树的所有路径 | Binary Tree Paths Easy
258 各位相加 | Add Digits
Easy
259 三数之和较小值 $ 3Sum Smaller
Medium
260 只出现一次的数字 III | Single Number III Medium
261 图验证树 $ Graph Valid Tree
Medium
262 行程和用户 | Trips and Users
Hard
263 丑数 | Ugly Number Easy
264 丑数 II | Ugly Number II
Medium
265 粉刷房子 II $ Paint House II
Hard
266 回文全排列 $ Palindrome Permutation
Easy
267 回文全排列 II $ Palindrome Permutation II Medium
268 缺失数字 | Missing Number Easy
269 外星人词典 $ Alien Dictionary Hard
270 最近的二分搜索树的值 $ Closest Binary Search Tree Value
Easy
271 加码解码字符串 $ Encode and Decode Strings
Medium
272 最近的二分搜索树的值 II $ Closest Binary Search Tree Value II Hard
273 整数转换英文表示 | Integer to English Words Hard
274 H指数 | H-Index Medium
275 H指数 II | H-Index II
Medium
276 粉刷栅栏 $ Paint Fence
Easy
277 寻找名人 $ Find the Celebrity
Medium
278 第一个错误的版本 | First Bad Version Easy
279 完全平方数 | Perfect Squares
Medium
280 摆动排序 $ Wiggle Sort
Medium
281 之字形迭代器 $ Zigzag Iterator
Medium
282 给表达式添加运算符 | Expression Add Operators
Hard
283 移动零 | Move Zeroes
Easy
284 顶端迭代器 | Peeking Iterator
Medium
285 二叉搜索树中的中序后继节点 $ Inorder Successor in BST
Medium
286 墙和门 $ Walls and Gates Medium
287 寻找重复数 | Find the Duplicate Number
Medium
288 唯一单词缩写 $ Unique Word Abbreviation
Medium
289 生命游戏 | Game of Life
Medium
290 单词模式 | Word Pattern  Easy
291 单词模式 II $ Word Pattern II Hard
292 Nim游戏 | Nim Game
Easy
293 翻转游戏 $ Flip Game Easy
294 翻转游戏之 II $ Flip Game II
Medium
295 数据流的中位数 | Find Median from Data Stream
Hard
296 最佳开会地点 $ Best Meeting Point Hard
297 二叉树的序列化与反序列化 | Serialize and Deserialize Binary Tree
Hard
298 二叉树最长连续序列 $ Binary Tree Longest Consecutive Sequence
Medium
299 猜数字游戏 | Bulls and Cows Medium
300 最长上升子序列 | Longest Increasing Subsequence Medium
301 删除无效的括号 | Remove Invalid Parentheses Hard
302 包含黑色像素的最小矩形 $ Smallest Rectangle Enclosing Black Pixels
Hard
303 区域和检索 - 数组不可变 | Range Sum Query - Immutable Easy
304 二维区域和检索 - 矩阵不可变 | Range Sum Query 2D - Immutable Medium
305 岛屿的个数 II $ Number of Islands II Hard
306 累加数 | Additive Number
Medium
307 区域和检索 - 数组可修改 | Range Sum Query - Mutable
Medium
308 二维区域和检索 - 可变 $ Range Sum Query 2D - Mutable
Hard
309 最佳买卖股票时机含冷冻期 | Best Time to Buy and Sell Stock with Cooldown Medium
310 最小高度树 | Minimum Height Trees Medium
311 稀疏矩阵相乘 $ Sparse Matrix Multiplication Medium
312 戳气球 | Burst Balloons
Hard
313 超级丑数 | Super Ugly Number
Medium
314 二叉树的竖直遍历 $ Binary Tree Vertical Order Traversal Medium
315 计算右侧小于当前元素的个数 | Count of Smaller Numbers After Self
Hard
316 去除重复字母 | Remove Duplicate Letters Hard
317 建筑物的最短距离 $ Shortest Distance from All Buildings
Hard
318 最大单词长度乘积 | Maximum Product of Word Lengths Medium
319 灯泡开关 | Bulb Switcher Medium
320 通用简写 $ Generalized Abbreviation Medium
321 拼接最大数 | Create Maximum Number Hard
322 零钱兑换 | Coin Change
Medium
323 无向图中的连通区域的个数 $ Number of Connected Components in an Undirected Graph
Medium
324 摆动排序 II | Wiggle Sort II Medium
325 最大子数组之和为k $ Maximum Size Subarray Sum Equals k Medium
326 3的幂 | Power of Three Easy
327 区间和的个数 | Count of Range Sum Hard
328 奇偶链表 | Odd Even Linked List
Medium
329 矩阵中的最长递增路径 | Longest Increasing Path in a Matrix
Hard
330 按要求补齐数组 | Patching Array
Hard
331 验证二叉树的前序序列化 | Verify Preorder Serialization of a Binary Tree Medium
332 重新安排行程 | Reconstruct Itinerary Medium
333 最大的二分搜索子树 $ Largest BST Subtree Medium
334 递增的三元子序列 | Increasing Triplet Subsequence Medium
335 路径交叉 | Self Crossing Hard
336 回文对 | Palindrome Pairs Hard
337 打家劫舍 III | House Robber III Medium
338 比特位计数 | Counting Bits Medium
339 嵌套链表权重和 $ Nested List Weight Sum
Easy
340 最多有K个不同字符的最长子串 $ Longest Substring with At Most K Distinct Characters
Hard
341 压平嵌套链表迭代器 | Flatten Nested List Iterator
Medium
342 4的幂 | Power of Four Easy
343 整数拆分 | Integer Break Medium
344 反转字符串 | Reverse String
Easy
345 反转字符串中的元音字母 | Reverse Vowels of a String Easy
346 从数据流中移动平均值 $ Moving Average from Data Stream Easy
347 前K个高频元素 | Top K Frequent Elements
Medium
348 设计井字棋游戏 $ Design Tic-Tac-Toe
Medium
349 两个数组的交集 | Intersection of Two Arrays Easy
350 两个数组的交集 II | Intersection of Two Arrays II
Easy
351 安卓解锁模式 $ Android Unlock Patterns Medium
352 将数据流变为多个不相交间隔 | Data Stream as Disjoint Intervals Hard
353   Medium
354 俄罗斯套娃信封问题 | Russian Doll Envelopes Hard
355   Medium
356   Medium
357 计算各个位数不同的数字个数 | Count Numbers with Unique Digits Medium
358   Hard
359   Easy
360   Medium
361   Medium
362   Medium
363 矩形区域不超过 K 的最大数值和 | Max Sum of Rectangle No Larger Than K Hard
364   Medium
365 水壶问题 | Water and Jug Problem Medium
366   Medium
367 有效的完全平方数 | Valid Perfect Square Easy
368 最大整除子集 | Largest Divisible Subset
Medium
369   Medium
370   Medium
371 两整数之和 | Sum of Two Integers  Easy
372 超级次方 | Super Pow
Medium
373 查找和最小的K对数字 | Find K Pairs with Smallest Sums
Medium
374 猜数字大小 | Guess Number Higher or Lower Easy
375 猜数字大小 II | Guess Number Higher or Lower II Medium
376 摆动序列 | Wiggle Subsequence Medium
377 组合总和 Ⅳ | Combination Sum IV Medium
378 有序矩阵中第K小的元素 | Kth Smallest Element in a Sorted Matrix
Medium
379   Medium
380 常数时间插入、删除和获取随机元素 | Insert Delete GetRandom O(1)
Medium
381 O(1) 时间插入、删除和获取随机元素 - 允许重复 | Insert Delete GetRandom O(1) - Duplicates allowed Hard
382 链表随机节点 | Linked List Random Node
Medium
383 赎金信 | Ransom Note Easy
384 打乱数组 | Shuffle an Array Medium
385 迷你语法分析器 | Mini Parser Medium
386 字典序排数 | Lexicographical Numbers Medium
387 字符串中的第一个唯一字符 | First Unique Character in a String Easy
388  文件的最长绝对路径 | Longest Absolute File Path Medium
389 找不同 | Find the Difference  Easy
390 消除游戏 | Elimination Game Medium
391 完美矩形 | Perfect Rectangle Hard
392 判断子序列 | Is Subsequence Medium
393 UTF-8 编码验证 | UTF-8 Validation Medium
394 字符串解码 | Decode String Medium
395 至少有K个重复字符的最长子串 | Longest Substring with At Least K Repeating Characters Medium
396 旋转函数 | Rotate Function Medium
397 整数替换 | Integer Replacement Medium
398 随机数索引 | Random Pick Index Medium
399 除法求值 | Evaluate Division Medium
400 第N个数字 | Nth Digit  Easy
401 二进制手表 | Binary Watch Easy
402 移掉K位数字 | Remove K Digits Medium
403 青蛙过河 | Frog Jump Hard
404 左叶子之和 | Sum of Left Leaves Easy
405 数字转换为十六进制数 | Convert a Number to Hexadecimal Easy
406 根据身高重建队列 | Queue Reconstruction by Height Medium
407 接雨水 II | Trapping Rain Water II Hard
408   Easy
409 最长回文串 | Longest Palindrome Easy
410 分割数组的最大值 | Split Array Largest Sum Hard
411   Hard
412  Fizz Buzz Easy
413 等差数列划分 | Arithmetic Slices Medium
414 第三大的数 | Third Maximum Number Easy
415 字符串相加 | Add Strings Easy
416 分割等和子集 | Partition Equal Subset Sum Medium
417 太平洋大西洋水流问题 | Pacific Atlantic Water Flow Medium
418   Medium
419 甲板上的战舰 | Battleships in a Board Medium
420 强密码检验器 | Strong Password Checker Hard
421 数组中两个数的最大异或值 | Maximum XOR of Two Numbers in an Array Medium
422   Easy
423 从英文中重建数字 | Reconstruct Original Digits from English Medium
424 替换后的最长重复字符 | Longest Repeating Character Replacement Medium
425   Hard
426   Medium
427   Easy
428   Hard
429   Easy
430   Medium
431   Hard
432 全 O(1) 的数据结构 | All O`one Data Structure Hard
433 最小基因变化 | Minimum Genetic Mutation Medium
434 字符串中的单词数 | Number of Segments in a String Easy
435 无重叠区间 | Non-overlapping Intervals Medium
436 寻找右区间 | Find Right Interval Medium
437 路径总和 III | Path Sum III Easy
438 找到字符串中所有字母异位词 | Find All Anagrams in a String Easy
439   Medium
440 字典序的第K小数字 | K-th Smallest in Lexicographical Order Hard
441 排列硬币 | Arranging Coins Easy
442 数组中重复的数据 | Find All Duplicates in an Array Medium
443 压缩字符串 | String Compression Easy
444   Medium
445 两数相加 II | Add Two Numbers II Medium
446 等差数列划分 II - 子序列 | Arithmetic Slices II - Subsequence Hard
447 回旋镖的数量 | Number of Boomerangs Easy
448 找到所有数组中消失的数字 | Find All Numbers Disappeared in an Array Easy
449   Medium
450 删除二叉搜索树中的节点 | Delete Node in a BST Medium
451 根据字符出现频率排序 | Sort Characters By Frequency Medium
452 用最少数量的箭引爆气球 | Minimum Number of Arrows to Burst Balloons Medium
453 最小移动次数使数组元素相等 | Minimum Moves to Equal Array Elements Easy
454 四数相加 II | 4Sum II Medium
455 分发饼干 | Assign Cookies Easy
456 132模式 | 132 Pattern
Medium
457 环形数组循环 | Circular Array Loop Medium
458 可怜的小猪 | Poor Pigs Hard
459 重复的子字符串 | Repeated Substring Pattern Easy
460 LFU缓存 | LFU Cache
Hard
461 汉明距离 | Hamming Distance Easy
462 最少移动次数使数组元素相等 II | Minimum Moves to Equal Array Elements II Medium
463 岛屿的周长 | Island Perimeter Easy
464 我能赢吗 | Can I Win Medium
465   Hard
466 统计重复个数 | Count The Repetitions Hard
467 环绕字符串中唯一的子字符串 | Unique Substrings in Wraparound String Medium
468 验证IP地址 | Validate IP Address Medium
469   Medium
470 用 Rand7() 实现 Rand10() | Implement Rand10() Using Rand7() Medium
471   Hard
472 连接词 | Concatenated Words Hard
473 火柴拼正方形 | Matchsticks to Square Medium
474 一和零 | Ones and Zeroes Medium
475 供暖器 | Heaters Easy
476 数字的补数 | Number Complement Easy
477 汉明距离总和 | Total Hamming Distance Medium
478 在圆内随机生成点 | Generate Random Point in a Circle Medium
479 最大回文数乘积 | Largest Palindrome Product Hard
480 滑动窗口中位数 | Sliding Window Median
Hard
481 神奇字符串 | Magical String Medium
482 密钥格式化 | License Key Formatting Easy
483 最小好进制 | Smallest Good Base Hard
484   Medium
485 最大连续1的个数 | Max Consecutive Ones Easy
486 预测赢家 | Predict the Winner Medium
487   Medium
488 祖玛游戏 | Zuma Game Hard
489   Hard
490   Medium
491 递增子序列 | Increasing Subsequences Medium
492 构造矩形 | Construct the Rectangle Easy
493 翻转对 | Reverse Pairs Hard
494 目标和 | Target Sum Medium
495 提莫攻击 | Teemo Attacking Medium
496 下一个更大元素 I | Next Greater Element I Easy
497 非重叠矩形中的随机点 | Random Point in Non-overlapping Rectangles Medium
498 对角线遍历 | Diagonal Traverse Medium
499   Hard
500 键盘行 | Keyboard Row Easy
501 二叉搜索树中的众数 | Find Mode in Binary Search Tree Easy
502 IPO(首次公开募股) | Initial Public Offerings Hard
503 下一个更大元素 II | Next Greater Element II Medium
504 七进制数 | Base 7 Easy
505   Medium
506 相对名次 | Relative Ranks Easy
507 完美数 | Perfect Number Easy
508 出现次数最多的子树元素和 | Most Frequent Subtree Sum Medium
509 斐波那契数 | Fibonacci Number Easy
510   Medium
511   Medium
512   Medium
513 找树左下角的值 | Find Bottom Left Tree Value Medium
514 自由之路 | Freedom Trail Hard
515 在每个树行中找最大值 | Find Largest Value in Each Tree Row Medium
516 最长回文子序列 | Longest Palindromic  Medium
517 超级洗衣机 | Super Washing Machines Hard
518 零钱兑换 II | Coin Change 2 Medium
519 随机翻转矩阵 | Random Flip Matrix Medium
520 检测大写字母 | Detect Capital Easy
521 最长特殊序列 Ⅰ | Longest Uncommon Subsequence I Easy
522 最长特殊序列 II | Longest Uncommon Subsequence II Medium
523 连续的子数组和 | Continuous Subarray Sum Medium
524 通过删除字母匹配到字典里最长单词 | Longest Word in Dictionary through Deleting Medium
525 连续数组 | Contiguous Array Medium
526 优美的排列 | Beautiful Arrangement
Medium
527   Hard
528 按权重随机选择 | Random Pick with Weight Medium
529 扫雷游戏 | Minesweeper Medium
530 二叉搜索树的最小绝对差 | Minimum Absolute Difference in BST Easy
531   Medium
532 数组中的K-diff数对 | K-diff Pairs in an Array Easy
533   Medium
534   Medium
535   Medium
536   Medium
537 复数乘法 | Complex Number Multiplication
Medium
538 把二叉搜索树转换为累加树 | Convert BST to Greater Tree Easy
539 最小时间差 | Minimum Time Difference Medium
540 有序数组中的单一元素 | Single Element in a Sorted Array
Medium
541 反转字符串 II | Reverse String II Easy
542 01 矩阵 | 01 Matrix Medium
543 二叉树的直径 | Diameter of Binary Tree Easy
544   Medium
545   Medium
546 移除盒子 | Remove Boxes
Hard
547 朋友圈 | Friend Circles
Medium
548   Medium
549   Medium
550   Medium
551 学生出勤纪录 I | Student Attendance Record I Easy
552 学生出勤记录 II | Student Attendance Record II Hard
553 最优除法 | Optimal Division Medium
554 砖墙 | Brick Wall Medium
555   Medium
556 下一个更大元素 III | Next Greater Element III Medium
557 反转字符串中的单词 III | Reverse Words in a String III Easy
558   Easy
559   Easy
560 和为K的子数组 | Subarray Sum Equals K Medium
561 数组拆分 I | Array Partition I Easy
562   Medium
563 二叉树的坡度 | Binary Tree Tilt Easy
564 寻找最近的回文数 | Find the Closest Palindrome Hard
565 数组嵌套 | Array Nesting
Medium
566 重塑矩阵 | Reshape the Matrix Easy
567 字符串的排列 | Permutation in String
Medium
568   Hard
569   Hard
570   Medium
571   Hard
572 另一个树的子树 | Subtree of Another Tree Easy
573   Medium
574   Medium
575 分糖果 | Distribute Candies Easy
576 出界的路径数 | Out of Boundary Paths Medium
577 员工奖金 | Employee Bonus Easy
578   Medium
579   Hard
580   Medium
581 最短无序连续子数组 | Shortest Unsorted Continuous Subarray  Easy
582   Medium
583 两个字符串的删除操作 | Delete Operation for Two Strings Medium
584   Easy
585   Medium
586   Easy
587 安装栅栏 | Erect the Fence Hard
588   Hard
589   Easy
590   Easy
591 标签验证器 | Tag Validator
Hard
592 分数加减运算 | Fraction Addition and Subtraction
Medium
593 有效的正方形 | Valid Square
Medium
594 最长和谐子序列 | Longest Harmonious Subsequence Easy
595 大的国家 | Big Countries
Easy
596 超过5名学生的课 | Classes More Than 5 Students
Easy
597   Easy
598 范围求和 II | Range Addition II
Easy
599 两个列表的最小索引总和 | Minimum Index Sum of Two Lists Easy
600 不含连续1的非负整数 | Non-negative Integers without Consecutive Ones Hard
601 体育馆的人流量 | Human Traffic of Stadium Hard
602   Medium
603   Easy
604   Easy
605 种花问题 | Can Place Flowers Easy
606 根据二叉树创建字符串 | Construct String from Binary Tree
Easy
607   Easy
608   Medium
609 在系统中查找重复文件 | Find Duplicate File in System
Medium
610   Easy
611 有效三角形的个数 | Valid Triangle Number Medium
612   Medium
613   Easy
614   Medium
615   Hard
616   Medium
617 合并二叉树 | Merge Two Binary Trees
Easy
618   Hard
619   Easy
620 有趣的电影 | Not Boring Movies
Easy
621 任务调度器 | Task Scheduler Medium
622 设计循环队列 | Design Circular Queue
Medium
623 在二叉树中增加一行 | Add One Row to Tree
Medium
624   Easy
625   Medium
626 换座位 | Exchange Seats
Medium
627 交换工资 | Swap Salary
Easy
628 三个数的最大乘积 | Maximum Product of Three Numbers
Easy
629 K个逆序对数组 | K Inverse Pairs Array
Hard
630 课程表 III | Course Schedule III
Hard
631   Hard
632 最小区间 | Smallest Range
Hard
633 平方数之和 | Sum of Square Numbers
Easy
634   Medium
635   Medium
636 函数的独占时间 | Exclusive Time of Functions
Medium
637 二叉树的层平均值 | Average of Levels in Binary Tree Easy
638 大礼包 | Shopping Offers Medium
639 解码方法 2 | Decode Ways II Hard
640 求解方程 | Solve the Equation Medium
641 设计循环双端队列 | Design Circular Deque
Medium
642   Hard
643 子数组最大平均数 I | Maximum Average Subarray I Easy
644   Hard
645 错误的集合 | Set Mismatch
Easy
646 最长数对链 | Maximum Length of Pair Chain
Medium
647 回文子串 | Palindromic Substrings
Medium
648 单词替换 | Replace Words
Medium
649 Dota2 参议院 | Dota2 Senate
Medium
650 只有两个键的键盘 | 2 Keys Keyboard
Medium
651   Medium
652 寻找重复的子树 | Find Duplicate Subtrees Medium
653 两数之和 IV - 输入 BST | Two Sum IV - Input is a BST Easy
654 最大二叉树 | Maximum Binary Tree Medium
655 输出二叉树 | Print Binary Tree Medium
656   Hard
657 机器人能否返回原点 | Robot Return to Origin
Easy
658 找到 K 个最接近的元素 | Find K Closest Elements Medium
659 分割数组为连续子序列 | Split Array into Consecutive Subsequences Medium
660   Hard
661 图片平滑器 | Image Smoother
Easy
662 二叉树最大宽度 | Maximum Width of Binary Tree
Medium
663   Medium
664 奇怪的打印机 | Strange Printer Medium
665 非递减数列 | Non-decreasing Array Medium
666   Medium
667 优美的排列 II | Beautiful Arrangement II Medium
668 乘法表中第k小的数 | Kth Smallest Number in Multiplication Table
Hard
669 修剪二叉搜索树 | Trim a Binary Search Tree Easy
670 最大交换 | Maximum Swap
Medium
671 二叉树中第二小的节点 | Second Minimum Node In a Binary Tree Easy
672 灯泡开关 Ⅱ | Bulb Switcher II
Medium
673 最长递增子序列的个数 | Number of Longest Increasing Subsequence
Medium
674 最长连续递增序列 | Longest Continuous Increasing Subsequence Easy
675 为高尔夫比赛砍树 | Cut Off Trees for Golf Event Hard
676 实现一个魔法字典 | Implement Magic Dictionary
Medium
677 键值映射 | Map Sum Pairs
Medium
678 有效的括号字符串 | Valid Parenthesis String
Medium
679 24点游戏 | 24 Game Medium
680 验证回文字符串 Ⅱ | Valid Palindrome II
Easy
681   Medium
682 棒球比赛 | Baseball Game
Easy
683   Hard
684 冗余连接 | Redundant Connection Medium
685 冗余连接 II | Redundant Connection II
Hard
686 重复叠加字符串匹配 | Repeated String Match Easy
687 最长同值路径 | Longest Univalue Path
Easy
688 “马”在棋盘上的概率 | Knight Probability in Chessboard
Medium
689 三个无重叠子数组的最大和 | Maximum Sum of 3 Non-Overlapping Subarrays Hard
690 员工的重要性 | Employee Importance Easy
691 贴纸拼词 | Stickers to Spell Word
Hard
692 前K个高频单词 | Top K Frequent Words
Medium
693 交替位二进制数 | Binary Number with Alternating Bits
Easy
694   Medium
695 岛屿的最大面积 | Max Area of Island Medium
696 计数二进制子串 | Count Binary Substrings
Easy
697 数组的度 | Degree of an Array
Easy
698 划分为k个相等的子集 | Partition to K Equal Sum Subsets
Medium
699 掉落的方块 | Falling Squares
Hard
700 二叉搜索树中的搜索 | Search in a Binary Search Tree
Easy
701 二叉搜索树中的插入操作 | Insert into a Binary Search Tree Medium
702   Medium
703 数据流中的第K大元素 | Kth Largest Element in a Stream
Easy
704 二分查找 | Binary Search
Easy
705 设计哈希集合 | Design HashSet
Easy
706 设计哈希映射 | Design HashMap
Easy
707 设计链表 | Design Linked List
Easy
708   Medium
709 转换成小写字母 | To Lower Case
Easy
710 黑名单中的随机数 | Random Pick with Blacklist Hard
711   Hard
712 两个字符串的最小ASCII删除和 | Minimum ASCII Delete Sum for Two Strings
Medium
713 乘积小于K的子数组 | Subarray Product Less Than K
Medium
714 买卖股票的最佳时机含手续费 | Best Time to Buy and Sell Stock with Transaction Fee
Medium
715 Range 模块 | Range Module
Hard
716   Easy
717 1比特与2比特字符 | 1-bit and 2-bit Characters
Easy
718 最长重复子数组 | Maximum Length of Repeated Subarray
Medium
719 找出第 k 小的距离对 | Find K-th Smallest Pair Distance
Hard
720 词典中最长的单词 | Longest Word in Dictionary
Easy
721 账户合并 | Accounts Merge
Medium
722 删除注释 | Remove Comments
Medium
723   Medium
724 寻找数组的中心索引 | Find Pivot Index
Easy
725 分隔链表 | Split Linked List in Parts
Medium
726 原子的数量 | Number of Atoms
Hard
727   Hard
728 自除数 | Self Dividing Numbers
Easy
729 我的日程安排表 I | My Calendar I
Medium
730 统计不同回文子字符串 | Count Different Palindromic Subsequences
Hard
731 我的日程安排表 II | My Calendar II
Medium
732 我的日程安排表 III | My Calendar III
Hard
733 图像渲染 | Flood Fill
Easy
734   Easy
735 行星碰撞 | Asteroid Collision
Medium
736 Lisp 语法解析 | Parse Lisp Expression
Medium
737   Medium
738 单调递增的数字 | Monotone Increasing Digits Medium
739 每日温度 | Daily Temperatures
Medium
740 删除与获得点数 | Delete and Earn Medium
741 摘樱桃 | Cherry Pickup
Hard
742   Medium
743 网络延迟时间 | Network Delay Time
Medium
744 寻找比目标字母大的最小字母 | Find Smallest Letter Greater Than Target Easy
745 前缀和后缀搜索 | Prefix and Suffix Search
Hard
746 使用最小花费爬楼梯 | Min Cost Climbing Stairs
Easy
747 至少是其他数字两倍的最大数 | Largest Number At Least Twice of Others Easy
748 最短完整词 | Shortest Completing Word
Easy
749 隔离病毒 | Contain Virus
Hard
750   Medium
751   Easy
752 打开转盘锁 | Open the Lock
Medium
753 破解保险箱 | Cracking the Safe
Hard
754 到达终点数字 | Reach a Number
Easy
755   Medium
756 金字塔转换矩阵 | Pyramid Transition Matrix
Medium
757 设置交集大小至少为2 | Set Intersection Size At Least Two
Hard
758   Easy
759   Hard
760   Easy
761 特殊的二进制序列 | Special Binary String Hard
762 二进制表示中质数个计算置位 | Prime Number of Set Bits in Binary Representation Easy
763 划分字母区间 | Partition Labels
Medium
764 最大加号标志 | Largest Plus Sign
Medium
765 情侣牵手 | Couples Holding Hands
Hard
766 托普利茨矩阵 | Toeplitz Matrix
Easy
767 重构字符串 | Reorganize String
Medium
768 最多能完成排序的块 II | Max Chunks To Make Sorted II
Hard
769 最多能完成排序的块 | Max Chunks To Make Sorted Medium
770 基本计算器 IV | Basic Calculator IV Hard
771 宝石与石头 | Jewels and Stones
Easy
772   Hard
773 滑动谜题 | Sliding Puzzle
Hard
774   Hard
775 全局倒置与局部倒置 | Global and Local Inversions
Medium
776   Medium
777 在LR字符串中交换相邻字符 | Swap Adjacent in LR String
Medium
778 水位上升的泳池中游泳 | Swim in Rising Water
Hard
779 第K个语法符号 | K-th Symbol in Grammar
Medium
780 到达终点 | Reaching Points
Hard
781 森林中的兔子 | Rabbits in Forest
Medium
782 变为棋盘 | Transform to Chessboard
Hard
783 二叉搜索树结点最小距离 | Minimum Distance Between BST Nodes Easy
784 字母大小写全排列 | Letter Case Permutation Easy
785 判断二分图 | Is Graph Bipartite?
Medium
786 第 K 个最小的素数分数 | K-th Smallest Prime Fraction
Hard
787 K 站中转内最便宜的航班 | Cheapest Flights Within K Stops
Medium
788 旋转数字 | Rotated Digits
Easy
789 逃脱阻碍者 | Escape The Ghosts
Medium
790 多米诺和托米诺平铺 | Domino and Tromino Tiling
Medium
791 自定义字符串排序 | Custom Sort String
Medium
792 匹配子序列的单词数 | Number of Matching Subsequences
Medium
793 阶乘函数后K个零 | Preimage Size of Factorial Zeroes Function
Hard
794 有效的井字游戏 | Valid Tic-Tac-Toe State
Medium
795 区间子数组个数 | Number of Subarrays with Bounded Maximum
Medium
796 旋转字符串 | Rotate String
Easy
797 所有可能的路径 | All Paths From Source to Target
Medium
798 得分最高的最小轮调 | Smallest Rotation with Highest Score
Hard
799 香槟塔 | Champagne Tower
Medium
800   Easy
801 使序列递增的最小交换次数 | Minimum Swaps To Make Sequences Increasing Medium
802 找到最终的安全状态 | Find Eventual Safe States
Medium
803 打砖块 | Bricks Falling When Hit
Hard
804 唯一摩尔斯密码词 | Unique Morse Code Words
Easy
805 数组的均值分割 | Split Array With Same Average
Hard
806 写字符串需要的行数 | Number of Lines To Write String
Easy
807 保持城市天际线 | Max Increase to Keep City Skyline
Medium
808 分汤 | Soup Servings Medium
809 情感丰富的文字 | Expressive Words
Medium
810 黑板异或游戏 | Chalkboard XOR Game Hard
811 子域名访问计数 | Subdomain Visit Count
Easy
812 最大三角形面积 | Largest Triangle Area
Easy
813 最大平均值和的分组 | Largest Sum of Averages
Medium
814 二叉树剪枝 | Binary Tree Pruning Medium
815 公交路线 | Bus Routes
Hard
816 模糊坐标 | Ambiguous Coordinates
Medium
817 链表组件 | Linked List Components
Medium
818 赛车 | Race Car
Hard
819 最常见的单词 | Most Common Word
Easy
820 单词的压缩编码 | Short Encoding of Words
Medium
821 字符的最短距离 | Shortest Distance to a Character Easy
822 翻转卡片游戏 | Card Flipping Game
Medium
823 带因子的二叉树 | Binary Trees With Factors Medium
824 山羊拉丁文 | Goat Latin Easy
825 适龄的朋友 | Friends Of Appropriate Ages
Medium
826 安排工作以达到最大收益 | Most Profit Assigning Work
Medium
827 最大人工岛 | Making A Large Island
Hard
828 独特字符串 | Unique Letter String
Hard
829 连续整数求和 | Consecutive Numbers Sum
Hard
830 较大分组的位置 | Positions of Large Groups
Easy
831 隐藏个人信息 | Masking Personal Information
Medium
832 翻转图像 | Flipping an Image Easy
833 字符串中的查找与替换 | Find And Replace in String
Medium
834 树中距离之和 | Sum of Distances in Tree
Hard
835 图像重叠 | Image Overlap
Medium
836 矩形重叠 | Rectangle Overlap
Easy
837 新21点 | New 21 Game
Medium
838 推多米诺 | Push Dominoes
Medium
839 相似字符串组 | Similar String Groups
Hard
840  矩阵中的幻方 | Magic Squares In Grid
Easy
841 钥匙和房间 | Keys and Rooms
Medium
842 将数组拆分成斐波那契序列 | Split Array into Fibonacci Sequence
Medium
843 猜猜这个单词 | Guess the Word
Hard
844 比较含退格的字符串 | Backspace String Compare Easy
845 数组中的最长山脉 | Longest Mountain in Array
Medium
846 一手顺子 | Hand of Straights
Medium
847 访问所有节点的最短路径 | Shortest Path Visiting All Nodes
Hard
848 字母移位 | Shifting Letters
Medium
849 到最近的人的最大距离 | Maximize Distance to Closest Person
Easy
850 矩形面积 II | Rectangle Area II
Hard
851 喧闹和富有 | Loud and Rich
Medium
852 山脉数组的峰顶索引 | Peak Index in a Mountain Array Easy
853 车队 | Car Fleet
Medium
854 相似度为 K 的字符串 | K-Similar Strings
Hard
855 考场就座 | Exam Room
Medium
856 括号的分数 | Score of Parentheses
Medium
857 雇佣 K 名工人的最低成本 | Minimum Cost to Hire K Workers
Hard
858 镜面反射 | Mirror Reflection
Medium
859 亲密字符串 | Buddy Strings Easy
860 柠檬水找零 | Lemonade Change
Easy
861 翻转矩阵后的得分 | Score After Flipping Matrix
Medium
862 和至少为 K 的最短子数组 | Shortest Subarray with Sum at Least K
Hard
863 二叉树中所有距离为 K 的结点 | All Nodes Distance K in Binary Tree Medium
864 获取所有钥匙的最短路径 | Shortest Path to Get All Keys
Hard
865 具有所有最深结点的最小子树 | Smallest Subtree with all the Deepest Nodes Medium
866 回文素数 | Prime Palindrome
Medium
867 转置矩阵 | Transpose Matrix
Easy
868 二进制间距 | Binary Gap
Easy
869 重新排序得到 2 的幂 | Reordered Power of 2 Medium
870 优势洗牌 | Advantage Shuffle
Medium
871 最低加油次数 | Minimum Number of Refueling Stops Hard
872 叶子相似的树 | Leaf-Similar Trees Easy
873 最长的斐波那契子序列的长度 | Length of Longest Fibonacci Subsequence
Medium
874 模拟行走机器人 | Walking Robot Simulation
Easy
875 爱吃香蕉的珂珂 | Koko Eating Bananas
Medium
876 链表的中间结点 | Middle of the Linked List
Easy
877 石子游戏 | Stone Game
Medium
878 第 N 个神奇数字 | Nth Magical Number
Hard
879 盈利计划 | Profitable Schemes
Hard
880 索引处的解码字符串 | Decoded String at Index
Medium
881 救生艇 | Boats to Save People
Medium
882 细分图中的可到达结点 | Reachable Nodes In Subdivided Graph Hard
883 三维形体投影面积 | Projection Area of 3D Shapes
Easy
884 两句话中的不常见单词 | Uncommon Words from Two Sentences
Easy
885 螺旋矩阵 III | Spiral Matrix III
Medium
886 可能的二分法 | Possible Bipartition
Medium
887 鸡蛋掉落 | Super Egg Drop Hard
888 公平的糖果交换 | Fair Candy Swap
Easy
889 根据前序和后序遍历构造二叉树 | Construct Binary Tree from Preorder and Postorder Traversal Medium
890 查找和替换模式 | Find and Replace Pattern
Medium
891 子序列宽度之和 | Sum of Subsequence Widths
Hard
892 三维形体的表面积 | Surface Area of 3D Shapes
Easy
893 特殊等价字符串组 | Groups of Special-Equivalent Strings
Easy
894 所有可能的满二叉树 | All Possible Full Binary Trees
Medium
895 最大频率栈 | Maximum Frequency Stack
Hard
896 单调数列 | Monotonic Array
Easy
897 递增顺序查找树 | Increasing Order Search Tree
Easy
898 子数组按位或操作 | Bitwise ORs of Subarrays
Medium
899 有序队列 | Orderly Queue
Hard
900 RLE 迭代器 | RLE Iterator
Medium
901 股票价格跨度 | Online Stock Span
Medium
902 最大为 N 的数字组合 | Numbers At Most N Given Digit Set
Hard
903 DI 序列的有效排列 | Valid Permutations for DI Sequence
Hard
904 水果成篮 | Fruit Into Baskets
Medium
905 按奇偶排序数组 | Sort Array By Parity
Easy
906 超级回文数 | Super Palindromes
Hard
907 子数组的最小值之和 | Sum of Subarray Minimums
Medium
908 最小差值 I | Smallest Range I
Easy
909 蛇梯棋 | Snakes and Ladders
Medium
910 最小差值 II | Smallest Range II
Medium
911 在线选举 | Online Election Medium
912 排序数组 | Sort an Array
Medium
913 猫与老鼠 | Cat and Mouse Hard
914 一副牌中的X | X of a Kind in a Deck of Cards
Easy
915 将分区数组分成不相交的间隔 | Partition Array into Disjoint Intervals
Medium
916 单词子集 | Word Subsets Medium
917 仅仅反转字母 | Reverse Only Letters Easy
918 环形子数组的最大和 | Maximum Sum Circular Subarray Medium
919 完全二叉树插入器 | Complete Binary Tree Inserter
Medium
920 播放列表的数量 | Number of Music Playlists
Hard
921 使括号有效的最少添加 | Minimum Add to Make Parentheses Valid
Medium
922 按奇偶排序数组 II | Sort Array By Parity II
Easy
923 三数之和的多种可能 | 3Sum With Multiplicity Medium
924 尽量减少恶意软件的传播 | Minimize Malware Spread Hard
925 长按键入 | Long Pressed Name Easy
926 将字符串翻转到单调递增 | Flip String to Monotone Increasing
Medium
927 三等分 | Three Equal Parts
Hard
928 尽量减少恶意软件的传播 II | Minimize Malware Spread II
Hard
929 独特的电子邮件地址 | Unique Email Addresses Easy
930 和相同的二元子数组 | Binary Subarrays With Sum Medium
931 下降路径最小和 | Minimum Falling Path Sum Medium
932 漂亮数组 | Beautiful Array Medium
933 最近的请求次数 | Number of Recent Calls Easy
934 最短的桥 | Shortest Bridge
Medium
935 骑士拨号器 | Knight Dialer Medium
936 戳印序列 | Stamping The Sequence
Hard
937 重新排列日志文件 | Reorder Log Files Easy
938 二叉搜索树的范围和 | Range Sum of BST Medium
939 最小面积矩形 | Minimum Area Rectangle Medium
940 不同的子序列 II | Distinct Subsequences II Hard
941 有效的山脉数组 | Valid Mountain Array
Easy
942 增减字符串匹配 | DI String Match Easy
943 最短超级串 | Find the Shortest Superstring
Hard
944 删除列以使之有序 | Delete Columns to Make Sorted Easy
945 使数组唯一的最小增量 | Minimum Increment to Make Array Unique Medium
946 验证栈序列 | Validate Stack Sequences Medium
947 移除最多的同行或同列石头 | Most Stones Removed with Same Row or Column
Medium
948 令牌放置 | Bag of Tokens Medium
949 给定数字能组成的最大时间 | Largest Time for Given Digits Easy
950 按递增顺序显示卡牌 | Reveal Cards In Increasing Order
Medium
951 翻转等价二叉树 | Flip Equivalent Binary Trees
Medium
952 按公因数计算最大组件大小 | Largest Component Size by Common Factor Hard
953 验证外星语词典 | Verifying an Alien Dictionary Easy
954 二倍数对数组 | Array of Doubled Pairs Medium
955 删列造序 II | Delete Columns to Make Sorted II
Medium
956 最高的广告牌 | Tallest Billboard
Hard
957 N天后的牢房 | Prison Cells After N Days
Medium
958 二叉树的完全性检验 | Check Completeness of a Binary Tree
Medium
959 由斜杠划分区域 | Regions Cut By Slashes Medium
960 删列造序 III | Delete Columns to Make Sorted III
Hard
961 重复 N 次的元素 | N-Repeated Element in Size 2N Array Easy
962 最大宽度坡 | Maximum Width Ramp Medium
963 最小面积矩形 II | Minimum Area Rectangle II Medium
964 表示数字的最少运算符 | Least Operators to Express Number Hard
965 单值二叉树 | Univalued Binary Tree Easy
966 元音拼写检查器 | Vowel Spellchecker
Medium
967 连续差相同的数字 | Numbers With Same Consecutive Differences
Medium
968 监控二叉树 | Binary Tree Cameras Hard
969 煎饼排序 | Pancake Sorting
Medium
970 强整数 | Powerful Integers
Easy
971 翻转二叉树以匹配先序遍历 | Flip Binary Tree To Match Preorder Traversal Medium
972 相等的有理数 | Equal Rational Numbers
Hard
973 最接近原点的 K 个点 | K Closest Points to Origin
Medium
974 和可被 K 整除的子数组 | Subarray Sums Divisible by K
Medium
975 奇偶跳 | Odd Even Jump
Hard
976 三角形的最大周长 | Largest Perimeter Triangle Easy
977 有序数组的平方 | Squares of a Sorted Array Easy
978 最长湍流子数组 | Longest Turbulent Subarray Medium
979 在二叉树中分配硬币 | Distribute Coins in Binary Tree
Medium
980 不同路径 III | Unique Paths III
Hard
981 基于时间的键值存储 | Time Based Key-Value Store Medium
982 按位与为零的三元组 | Triples with Bitwise AND Equal To Zero Hard
983 最低票价 | Minimum Cost For Tickets Medium
984 不含 AAA 或 BBB 的字符串 | String Without AAA or BBB Medium
985 查询后的偶数和 | Sum of Even Numbers After Queries
Easy
986 区间列表的交集 | Interval List Intersections Medium
987 二叉树的垂序遍历 | Vertical Order Traversal of a Binary Tree
Medium
988 从叶结点开始的最小字符串 | Smallest String Starting From Leaf Medium
989 数组形式的整数加法 | Add to Array-Form of Integer Easy
990 等式方程的可满足性 | Satisfiability of Equality Equations Medium
991 坏了的计算器 | Broken Calculator Medium
992 K 个不同整数的子数组 | Subarrays with K Different Integers Hard
993 二叉树的堂兄弟节点 | Cousins in Binary Tree Easy
994 腐烂的橘子 | Rotting Oranges Easy
995 K 连续位的最小翻转次数 | Minimum Number of K Consecutive Bit Flips
Hard
996 正方形数组的数目 | Number of Squareful Arrays Hard
997 找到小镇的法官 | Find the Town Judge
Easy
998 最大二叉树 II | Maximum Binary Tree II
Medium
999 车的可用捕获量 | Available Captures for Rook Easy
1000 合并石头的最低成本 | Minimum Cost to Merge Stones Hard
1001 网格照明 | Grid Illumination Hard
1002 查找常用字符 | Find Common Characters Easy
1003 检查替换后的词是否有效 | Check If Word Is Valid After Substitutions Medium
1004 最大连续1的个数 III | Max Consecutive Ones III Medium
1005 K 次取反后最大化的数组和 | Maximize Sum Of Array After K Negations Easy
1006 笨阶乘 | Clumsy Factorial Medium
1007 行相等的最少多米诺旋转 | Minimum Domino Rotations For Equal Row Medium
1008 先序遍历构造二叉树 | Construct Binary Search Tree from Preorder Traversal Medium
1009 十进制整数的补码 | Complement of Base 10 Integer Easy
1010 总持续时间可被 60 整除的歌曲 | Pairs of Songs With Total Durations Divisible by 60
Easy
1011 在 D 天内送达包裹的能力 | Capacity To Ship Packages Within D Days Medium
1012 至少有 1 位重复的数字 | Numbers With 1 Repeated Digit
Hard
1013 将数组分成和相等的三个部分 | Partition Array Into Three Parts With Equal Sum
Easy
1014 最佳观光组合 | Best Sightseeing Pair Medium
1015 可被 K 整除的最小整数 | Smallest Integer Divisible by K
Medium
1016 子串能表示从 1 到 N 数字的二进制串 | Binary String With Substrings Representing 1 To N
Medium
1017 负二进制转换 | Convert to Base -2
Medium
1018 可被 5 整除的二进制前缀 | Binary Prefix Divisible By 5
Easy
1019 链表中的下一个更大节点 | Next Greater Node In Linked List
Medium
1020 飞地的数量 | Number of Enclaves
Medium
1021 删除最外层的括号 | Remove Outermost Parentheses
Easy
1022 从根到叶的二进制数之和 | Sum of Root To Leaf Binary Numbers
Easy
1023 驼峰式匹配 | Camelcase Matching Medium
1024 视频拼接 | Video Stitching
Medium
1025 除数博弈 | Divisor Game Easy
1026 节点与其祖先之间的最大差值 | Maximum Difference Between Node and Ancestor
Medium
1027 最长等差数列 | Longest Arithmetic Sequence
Medium
1028 从先序遍历还原二叉树 | Recover a Tree From Preorder Traversal Hard
1029 两地调度 | Two City Scheduling Easy
1030 距离顺序排列矩阵单元格 | Matrix Cells in Distance Order
Easy
1031 两个非重叠子数组的最大和 | Maximum Sum of Two Non-Overlapping Subarrays
Medium
1032 字符流 | Stream of Characters
Hard
1033 移动石子直到连续 | Moving Stones Until Consecutive
Easy
1034 边框着色 | Coloring A Border
Medium
1035 不相交的线 | Uncrossed Lines
Medium
1036 逃离大迷宫 | Escape a Large Maze
Hard
1037 有效的回旋镖 | Valid Boomerang
Easy
1038 从二叉搜索树到更大和树 | Binary Search Tree to Greater Sum Tree
Medium
1039 多边形三角剖分的最低得分 | Minimum Score Triangulation of Polygon
Medium
1040 移动石子直到连续 II | Moving Stones Until Consecutive II
Medium
1041 困于环中的机器人 | Robot Bounded In Circle
Easy
1042 不邻接植花 | Flower Planting With No Adjacent
Easy
1043 分隔数组以得到最大和 | Partition Array for Maximum Sum
Medium
1044 最长重复子串 | Longest Duplicate Substring
Hard
1045 购买所有产品的客户 | Customers Who Bought All Products Medium
1046 最后一块石头的重量 | Last Stone Weight Easy
1047 删除字符串中的所有相邻重复项 | Remove All Adjacent Duplicates In String Easy
1048 最长字符串链 | Longest String Chain Medium
1049 最后一块石头的重量 II | Last Stone Weight II
Medium
1050 合作至少三次的演员和导演 | Actors and Directors Who Cooperated At Least Three Times Easy
1051 高度检查器 | Height Checker
Easy
1052 爱生气的书店老板 | Grumpy Bookstore Owner
Medium
1053 交换一次的先前排列 | Previous Permutation With One Swap
Medium
1054 距离相等的条形码 | Distant Barcodes Medium
1055    
1056    
1057    
1058    
1059    
1060    
1061    
1062    
1063    
1064 不动点 | Fixed Point
Easy
1065 字符串的索引对 | Index Pairs of a String
Easy
1066 校园自行车分配 II | Campus Bikes II
Medium
1067 范围内的数字计数 | Digit Count in Range Hard
1068    
1069    
1070    
1071 字符串的最大公因子 | Greatest Common Divisor of Strings Easy
1072 按列翻转得到最大值等行数 | Flip Columns For Maximum Number of Equal Rows
Medium
1073 负二进制数相加 | Adding Two Negabinary Numbers
Medium
1074 元素和为目标值的子矩阵数量 | Number of Submatrices That Sum to Target
Hard
1075    
1076    
1077    
1078 Bigram 分词 | Occurrences After Bigram Easy
1079 活字印刷 | Letter Tile Possibilities
Medium
1080 根到叶路径上的不足节点 | Insufficient Nodes in Root to Leaf Paths
Medium
1081 不同字符的最小子序列 | Smallest Subsequence of Distinct Characters
Medium
1082    
1083    
1084    
1085 最小元素各数位之和 | Sum of Digits in the Minimum Number Easy
1086 前五科的均分 | High Five
Easy
1087 字母切换 | Permutation of Letters
Medium
1088 易混淆数 II | Confusing Number II
Hard
1089 复写零 | Duplicate Zeros
Easy
1090 受标签影响的最大值 | Largest Values From Labels
Medium
1091 二进制矩阵中的最短路径 | Shortest Path in Binary Matrix
Medium
1092 最短公共超序列 | Shortest Common Supersequence
Hard
1093 大样本统计 | Statistics from a Large Sample
Medium
1094 拼车 | Car Pooling
Medium
1095 山脉数组中查找目标值 | Find in Mountain Array
Hard
1096 花括号展开 II | Brace Expansion II
Hard
1097   Hard
1098   Medium
1099 小于 K 的两数之和 | Two Sum Less Than K
Easy
1100 长度为 K 的无重复字符子串 | Find K-Length Substrings With No Repeated Characters
Medium
1101 彼此熟识的最早时间 | The Earliest Moment When Everyone Become Friends Medium
1102 得分最高的路径 | Path With Maximum Minimum Value Medium
1103 分糖果 II | Distribute Candies to People Easy
1104 二叉树寻路 | Path In Zigzag Labelled Binary Tree Easy
1105 填充书架 | Filling Bookcase Shelves Medium
1106 解析布尔表达式 | Parsing A Boolean Expression Hard
1107   Medium
1108 IP 地址无效化 | Defanging an IP Address Easy
1109 航班预订统计 | Corporate Flight Bookings Medium
1110 删点成林 | Delete Nodes And Return Forest Medium
1111 有效括号的嵌套深度 | Maximum Nesting Depth of Two Valid Parentheses Strings Medium
1112   Medium
1113   Easy
1114 按序打印 | Print in Order Easy
1115 交替打印FooBar | Print FooBar Alternately Medium
1116 打印零与奇偶数 | Print Zero Even Odd Medium
1117 H2O 生成 | Building H2O Hard
1118 一月有多少天 | Number of Days in a Month Easy
1119 删去字符串中的元音 | Remove Vowels from a String Easy
1120 子树的最大平均值 | Maximum Average Subtree Medium
1121 将数组分成几个递增序列 | Divide Array Into Increasing Sequences Hard
1122 数组的相对排序 | Relative Sort Array Easy
1123 最深叶节点的最近公共祖先 | Lowest Common Ancestor of Deepest Leaves Medium
1124 表现良好的最长时间段 | Longest Well-Performing Interval Medium
1125 最小的必要团队 | Smallest Sufficient Team Hard
1126    
1127    
1128 等价多米诺骨牌对的数量 | Number of Equivalent Domino Pairs Easy
1129 颜色交替的最短路径 | Shortest Path with Alternating Colors Medium
1130 叶值的最小代价生成树 | Minimum Cost Tree From Leaf Values Medium
1131 绝对值表达式的最大值 | Maximum of Absolute Value Expression Medium
1132   Medium
1133 最大唯一数 | Largest Unique Number Easy
1134 阿姆斯特朗数 | Armstrong Number Easy
1135 最低成本联通所有城市 | Connecting Cities With Minimum Cost Medium
1136 平行课程 | Parallel Courses Hard
1137 第 N 个泰波那契数 | N-th Tribonacci Number Easy
1138 字母板上的路径 | Alphabet Board Path Medium
1139 最大的以 1 为边界的正方形 | Largest 1-Bordered Square Medium
1140 石子游戏 II | Stone Game II Medium
1141    
1142    
1143 最长公共子序列 | Longest Common Subsequence Medium
1144 递减元素使数组呈锯齿状 | Decrease Elements To Make Array Zigzag Medium
1145 二叉树着色游戏 | Binary Tree Coloring Game Medium
1146 快照数组 | Snapshot Array Medium
1147 段式回文 | Longest Chunked Palindrome Decomposition Hard
1148   Easy
1149   Medium
1150 检查一个数是否在数组中占绝大多数 | Check If a Number Is Majority Element in a Sorted Array Easy
1151 最少交换次数来组合所有的 1 | Minimum Swaps to Group All 1's Together Medium
1152 用户网站访问行为分析 | Analyze User Website Visit Pattern Medium
1153 字符串转化 | String Transforms Into Another String Hard
1154 一年中的第几天 | Ordinal Number Of Date Easy
1155 掷骰子的N种方法 | Number of Dice Rolls With Target Sum Medium
1156 单字符重复子串的最大长度 | Swap For Maximum Repeated Substring Medium
1157 子数组中占绝大多数的元素 | Online Majority Element In Subarray Hard
1158   Medium
1159   Hard
1160 拼写单词 | Find Words That Can Be Formed by Characters Easy
1161 最大层内元素和 | Maximum Level Sum of a Binary Tree Medium
1162 地图分析 | As Far from Land as Possible Medium
1163 按字典序排在最后的子串 | Last Substring in Lexicographical Order Hard
1164   Medium
1165 单行键盘 | Single-Row Keyboard Easy
1166 设计文件系统 | Design File System Medium
1167 连接棒材的最低费用 | Minimum Cost to Connect Sticks Medium
1168 水资源分配优化 | Optimize Water Distribution in a Village Hard
1169 查询无效交易 | Invalid Transactions Easy
1170 比较字符串最小字母出现频次 | Compare Strings by Frequency of the Smallest Character Easy
1171 从链表中删去总和值为零的连续节点 | Remove Zero Sum Consecutive Nodes from Linked List Hard
1172 餐盘栈 | Dinner Plate Stacks  
1173    
1174    
1175 质数排列 | Prime Arrangements Easy
1176 健身计划评估 | Diet Plan Performance Easy
1177 构建回文串检测 | Can Make Palindrome from Substring Medium
1178 猜字谜 | Number of Valid Words for Each Puzzle Hard
1179 重新格式化部门表 | Reformat Department Table Easy
1180 统计只含单一字母的子串 | Count Substrings with Only One Distinct Letter Easy
1181 前后拼接 | Before and After Puzzle Medium
1182 与目标颜色间的最短距离 | Shortest Distance to Target Color Medium
1183 矩阵中 1 的最大数量 | Maximum Number of Ones Hard
1184 公交站间的距离 | Distance Between Bus Stops Easy
1185 删除一次得到子数组最大和 | Maximum Subarray Sum with One Deletion Easy
1186 一周中的第几天 | Day of the Week Medium
1187 使数组严格递增 | Make Array Strictly Increasing Hard
1188    
1189    
1190    
1191    
1192    
1193    
1194    
1195    
1196    
1197    
1198    
1199    
1200    
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     

 


 

posted @ 2018-11-02 13:51  为敢技术  阅读(8044)  评论(1编辑  收藏  举报