# Leetcode-js

题目 难度 题解
1.两数之和 (opens new window) Easy 题解
2.两数相加 (opens new window) Medium 题解
3.无重复字符的最长子串 (opens new window) Medium 题解
4.寻找两个正序数组的中位数 (opens new window) Hard 题解
5.最长回文子串 (opens new window) Medium 题解
6.Z字形变换 (opens new window) Medium 题解
7.整数反转 (opens new window) Easy 题解
8.字符串转换整数(atoi) (opens new window) Medium 题解
9.回文数 (opens new window) Easy 题解
10.正则表达式匹配 (opens new window) Hard 题解
11.盛最多水的容器 (opens new window) Medium 题解
12.整数转罗马数字 (opens new window) Medium 题解
13.罗马数字转整数 (opens new window) Easy 题解
14.最长公共前缀 (opens new window) Easy 题解
15.三数之和 (opens new window) Medium 题解
16.最接近的三数之和 (opens new window) Medium 题解
17.电话号码的字母组合 (opens new window) Medium 题解
18.四数之和 (opens new window) Medium 题解
19.删除链表的倒数第N个节点 (opens new window) Medium 题解
20.有效的括号 (opens new window) Easy 题解
21.合并两个有序链表 (opens new window) Easy 题解
22.括号生成 (opens new window) Medium 题解
23.合并K个升序链表 (opens new window) Hard 题解
24.两两交换链表中的节点 (opens new window) Medium 题解
25.K个一组翻转链表 (opens new window) Hard 题解
26.删除排序数组中的重复项 (opens new window) Easy 题解
27.移除元素 (opens new window) Easy 题解
28.实现strStr() (opens new window) Easy 题解
29.两数相除 (opens new window) Medium 题解
30.串联所有单词的子串 (opens new window) Hard 题解
31.下一个排列 (opens new window) Medium 题解
32.最长有效括号 (opens new window) Hard 题解
33.搜索旋转排序数组 (opens new window) Medium 题解
34.在排序数组中查找元素的第一个和最后一个位置 (opens new window) Medium 题解
35.搜索插入位置 (opens new window) Easy 题解
36.有效的数独 (opens new window) Medium 题解
37.解数独 (opens new window) Hard 题解
38.外观数列 (opens new window) Easy 题解
39.组合总和 (opens new window) Medium 题解
40.组合总和II (opens new window) Medium 题解
41.缺失的第一个正数 (opens new window) Hard 题解
42.接雨水 (opens new window) Hard 题解
43.字符串相乘 (opens new window) Medium 题解
44.通配符匹配 (opens new window) Hard 题解
45.跳跃游戏II (opens new window) Hard 题解
46.全排列 (opens new window) Medium 题解
47.全排列II (opens new window) Medium 题解
48.旋转图像 (opens new window) Medium 题解
49.字母异位词分组 (opens new window) Medium 题解
50.Pow(x,n) (opens new window) Medium 题解
51.N皇后 (opens new window) Hard 题解
52.N皇后II (opens new window) Hard 题解
53.最大子序和 (opens new window) Easy 题解
54.螺旋矩阵 (opens new window) Medium 题解
55.跳跃游戏 (opens new window) Medium 题解
56.合并区间 (opens new window) Medium 题解
57.插入区间 (opens new window) Hard 题解
58.最后一个单词的长度 (opens new window) Easy 题解
59.螺旋矩阵II (opens new window) Medium 题解
60.排列序列 (opens new window) Hard 题解
61.旋转链表 (opens new window) Medium 题解
62.不同路径 (opens new window) Medium 题解
63.不同路径II (opens new window) Medium 题解
64.最小路径和 (opens new window) Medium 题解
65.有效数字 (opens new window) Hard 题解
66.加一 (opens new window) Easy 题解
67.二进制求和 (opens new window) Easy 题解
68.文本左右对齐 (opens new window) Hard 题解
69.x的平方根 (opens new window) Easy 题解
70.爬楼梯 (opens new window) Easy 题解
71.简化路径 (opens new window) Medium 题解
72.编辑距离 (opens new window) Hard 题解
73.矩阵置零 (opens new window) Medium 题解
74.搜索二维矩阵 (opens new window) Medium 题解
75.颜色分类 (opens new window) Medium 题解
76.最小覆盖子串 (opens new window) Hard 题解
77.组合 (opens new window) Medium 题解
78.子集 (opens new window) Medium 题解
79.单词搜索 (opens new window) Medium 题解
80.删除排序数组中的重复项II (opens new window) Medium 题解
81.搜索旋转排序数组II (opens new window) Medium 题解
82.删除排序链表中的重复元素II (opens new window) Medium 题解
83.删除排序链表中的重复元素 (opens new window) Easy 题解
84.柱状图中最大的矩形 (opens new window) Hard 题解
85.最大矩形 (opens new window) Hard 题解
86.分隔链表 (opens new window) Medium 题解
87.扰乱字符串 (opens new window) Hard 题解
88.合并两个有序数组 (opens new window) Easy 题解
89.格雷编码 (opens new window) Medium 题解
90.子集II (opens new window) Medium 题解
91.解码方法 (opens new window) Medium 题解
92.反转链表II (opens new window) Medium 题解
93.复原IP地址 (opens new window) Medium 题解
94.二叉树的中序遍历 (opens new window) Medium 题解
95.不同的二叉搜索树II (opens new window) Medium 题解
96.不同的二叉搜索树 (opens new window) Medium 题解
97.交错字符串 (opens new window) Hard 题解
98.验证二叉搜索树 (opens new window) Medium 题解
99.恢复二叉搜索树 (opens new window) Hard 题解
100.相同的树 (opens new window) Easy 题解
101.对称二叉树 (opens new window) Easy 题解
102.二叉树的层序遍历 (opens new window) Medium 题解
103.二叉树的锯齿形层序遍历 (opens new window) Medium 题解
104.二叉树的最大深度 (opens new window) Easy 题解
105.从前序与中序遍历序列构造二叉树 (opens new window) Medium 题解
106.从中序与后序遍历序列构造二叉树 (opens new window) Medium 题解
107.二叉树的层序遍历II (opens new window) Easy 题解
108.将有序数组转换为二叉搜索树 (opens new window) Easy 题解
109.有序链表转换二叉搜索树 (opens new window) Medium 题解
110.平衡二叉树 (opens new window) Easy 题解
111.二叉树的最小深度 (opens new window) Easy 题解
112.路径总和 (opens new window) Easy 题解
113.路径总和II (opens new window) Medium 题解
114.二叉树展开为链表 (opens new window) Medium 题解
115.不同的子序列 (opens new window) Hard 题解
116.填充每个节点的下一个右侧节点指针 (opens new window) Medium 题解
117.填充每个节点的下一个右侧节点指针II (opens new window) Medium 题解
118.杨辉三角 (opens new window) Easy 题解
119.杨辉三角II (opens new window) Easy 题解
120.三角形最小路径和 (opens new window) Medium 题解
121.买卖股票的最佳时机 (opens new window) Easy 题解
122.买卖股票的最佳时机II (opens new window) Easy 题解
123.买卖股票的最佳时机III (opens new window) Hard 题解
124.二叉树中的最大路径和 (opens new window) Hard 题解
125.验证回文串 (opens new window) Easy 题解
126.单词接龙II (opens new window) Hard 题解
127.单词接龙 (opens new window) Hard 题解
128.最长连续序列 (opens new window) Hard 题解
129.求根到叶子节点数字之和 (opens new window) Medium 题解
130.被围绕的区域 (opens new window) Medium 题解
131.分割回文串 (opens new window) Medium 题解
132.分割回文串II (opens new window) Hard 题解
133.克隆图 (opens new window) Medium 题解
134.加油站 (opens new window) Medium 题解
135.分发糖果 (opens new window) Hard 题解
136.只出现一次的数字 (opens new window) Easy 题解
137.只出现一次的数字II (opens new window) Medium 题解
138.复制带随机指针的链表 (opens new window) Medium 题解
139.单词拆分 (opens new window) Medium 题解
140.单词拆分II (opens new window) Hard 题解
141.环形链表 (opens new window) Easy 题解
142.环形链表II (opens new window) Medium 题解
143.重排链表 (opens new window) Medium 题解
144.二叉树的前序遍历 (opens new window) Medium 题解
145.二叉树的后序遍历 (opens new window) Medium 题解
146.LRU缓存机制 (opens new window) Medium 题解
147.对链表进行插入排序 (opens new window) Medium 题解
148.排序链表 (opens new window) Medium 题解
149.直线上最多的点数 (opens new window) Hard 题解
150.逆波兰表达式求值 (opens new window) Medium 题解
151.翻转字符串里的单词 (opens new window) Medium 题解
152.乘积最大子数组 (opens new window) Medium 题解
153.寻找旋转排序数组中的最小值 (opens new window) Medium 题解
154.寻找旋转排序数组中的最小值II (opens new window) Hard 题解
155.最小栈 (opens new window) Easy 题解
156.上下翻转二叉树 (opens new window) Medium 题解
157.用Read4读取N个字符 (opens new window) Easy 题解
158.用Read4读取N个字符II (opens new window) Hard 题解
159.至多包含两个不同字符的最长子串 (opens new window) Medium 题解
160.相交链表 (opens new window) Easy 题解
161.相隔为1的编辑距离 (opens new window) Medium 题解
162.寻找峰值 (opens new window) Medium 题解
163.缺失的区间 (opens new window) Medium 题解
164.最大间距 (opens new window) Hard 题解
165.比较版本号 (opens new window) Medium 题解
166.分数到小数 (opens new window) Medium 题解
167.两数之和II-输入有序数组 (opens new window) Easy 题解
168.Excel表列名称 (opens new window) Easy 题解
169.多数元素 (opens new window) Easy 题解
170.两数之和III-数据结构设计 (opens new window) Easy 题解
171.Excel表列序号 (opens new window) Easy 题解
172.阶乘后的零 (opens new window) Easy 题解
173.二叉搜索树迭代器 (opens new window) Medium 题解
174.地下城游戏 (opens new window) Hard 题解
175.组合两个表 (opens new window) Easy 题解
176.第二高的薪水 (opens new window) Easy 题解
177.第N高的薪水 (opens new window) Medium 题解
178.分数排名 (opens new window) Medium 题解
179.最大数 (opens new window) Medium 题解
180.连续出现的数字 (opens new window) Medium 题解
181.超过经理收入的员工 (opens new window) Easy 题解
182.查找重复的电子邮箱 (opens new window) Easy 题解
183.从不订购的客户 (opens new window) Easy 题解
184.部门工资最高的员工 (opens new window) Medium 题解
185.部门工资前三高的所有员工 (opens new window) Hard 题解
186.翻转字符串里的单词II (opens new window) Medium 题解
187.重复的DNA序列 (opens new window) Medium 题解
188.买卖股票的最佳时机IV (opens new window) Hard 题解
189.旋转数组 (opens new window) Medium 题解
190.颠倒二进制位 (opens new window) Easy 题解
191.位1的个数 (opens new window) Easy 题解
192.统计词频 (opens new window) Medium 题解
193.有效电话号码 (opens new window) Easy 题解
194.转置文件 (opens new window) Medium 题解
195.第十行 (opens new window) Easy 题解
196.删除重复的电子邮箱 (opens new window) Easy 题解
197.上升的温度 (opens new window) Easy 题解
198.打家劫舍 (opens new window) Easy 题解
199.二叉树的右视图 (opens new window) Medium 题解
200.岛屿数量 (opens new window) Medium 题解
201.数字范围按位与 (opens new window) Medium 题解
202.快乐数 (opens new window) Easy 题解
203.移除链表元素 (opens new window) Easy 题解
204.计数质数 (opens new window) Easy 题解
205.同构字符串 (opens new window) Easy 题解
206.反转链表 (opens new window) Easy 题解
207.课程表 (opens new window) Medium 题解
208.实现Trie(前缀树) (opens new window) Medium 题解
209.长度最小的子数组 (opens new window) Medium 题解
210.课程表II (opens new window) Medium 题解
211.添加与搜索单词-数据结构设计 (opens new window) Medium 题解
212.单词搜索II (opens new window) Hard 题解
213.打家劫舍II (opens new window) Medium 题解
214.最短回文串 (opens new window) Hard 题解
215.数组中的第K个最大元素 (opens new window) Medium 题解
216.组合总和III (opens new window) Medium 题解
217.存在重复元素 (opens new window) Easy 题解
218.天际线问题 (opens new window) Hard 题解
219.存在重复元素II (opens new window) Easy 题解
220.存在重复元素III (opens new window) Medium 题解
221.最大正方形 (opens new window) Medium 题解
222.完全二叉树的节点个数 (opens new window) Medium 题解
223.矩形面积 (opens new window) Medium 题解
224.基本计算器 (opens new window) Hard 题解
225.用队列实现栈 (opens new window) Easy 题解
226.翻转二叉树 (opens new window) Easy 题解
227.基本计算器II (opens new window) Medium 题解
228.汇总区间 (opens new window) Easy 题解
229.求众数II (opens new window) Medium 题解
230.二叉搜索树中第K小的元素 (opens new window) Medium 题解
231.2的幂 (opens new window) Easy 题解
232.用栈实现队列 (opens new window) Easy 题解
233.数字1的个数 (opens new window) Hard 题解
234.回文链表 (opens new window) Easy 题解
235.二叉搜索树的最近公共祖先 (opens new window) Easy 题解
236.二叉树的最近公共祖先 (opens new window) Medium 题解
237.删除链表中的节点 (opens new window) Easy 题解
238.除自身以外数组的乘积 (opens new window) Medium 题解
239.滑动窗口最大值 (opens new window) Hard 题解
240.搜索二维矩阵II (opens new window) Medium 题解
241.为运算表达式设计优先级 (opens new window) Medium 题解
242.有效的字母异位词 (opens new window) Easy 题解
243.最短单词距离 (opens new window) Easy 题解
244.最短单词距离II (opens new window) Medium 题解
245.最短单词距离III (opens new window) Medium 题解
246.中心对称数 (opens new window) Easy 题解
247.中心对称数II (opens new window) Medium 题解
248.中心对称数III (opens new window) Hard 题解
249.移位字符串分组 (opens new window) Medium 题解
250.统计同值子树 (opens new window) Medium 题解
251.展开二维向量 (opens new window) Medium 题解
252.会议室 (opens new window) Easy 题解
253.会议室II (opens new window) Medium 题解
254.因子的组合 (opens new window) Medium 题解
255.验证前序遍历序列二叉搜索树 (opens new window) Medium 题解
256.粉刷房子 (opens new window) Medium 题解
257.二叉树的所有路径 (opens new window) Easy 题解
258.各位相加 (opens new window) Easy 题解
259.较小的三数之和 (opens new window) Medium 题解
260.只出现一次的数字III (opens new window) Medium 题解
261.以图判树 (opens new window) Medium 题解
262.行程和用户 (opens new window) Hard 题解
263.丑数 (opens new window) Easy 题解
264.丑数II (opens new window) Medium 题解
265.粉刷房子II (opens new window) Hard 题解
266.回文排列 (opens new window) Easy 题解
267.回文排列II (opens new window) Medium 题解
268.丢失的数字 (opens new window) Easy 题解
269.火星词典 (opens new window) Hard 题解
270.最接近的二叉搜索树值 (opens new window) Easy 题解
271.字符串的编码与解码 (opens new window) Medium 题解
272.最接近的二叉搜索树值II (opens new window) Hard 题解
273.整数转换英文表示 (opens new window) Hard 题解
274.H指数 (opens new window) Medium 题解
275.H指数II (opens new window) Medium 题解
276.栅栏涂色 (opens new window) Easy 题解
277.搜寻名人 (opens new window) Medium 题解
278.第一个错误的版本 (opens new window) Easy 题解
279.完全平方数 (opens new window) Medium 题解
280.摆动排序 (opens new window) Medium 题解
281.锯齿迭代器 (opens new window) Medium 题解
282.给表达式添加运算符 (opens new window) Hard 题解
283.移动零 (opens new window) Easy 题解
284.顶端迭代器 (opens new window) Medium 题解
285.二叉搜索树中的顺序后继 (opens new window) Medium 题解
286.墙与门 (opens new window) Medium 题解
287.寻找重复数 (opens new window) Medium 题解
288.单词的唯一缩写 (opens new window) Medium 题解
289.生命游戏 (opens new window) Medium 题解
290.单词规律 (opens new window) Easy 题解
291.单词规律II (opens new window) Hard 题解
292.Nim游戏 (opens new window) Easy 题解
293.翻转游戏 (opens new window) Easy 题解
294.翻转游戏II (opens new window) Medium 题解
295.数据流的中位数 (opens new window) Hard 题解
296.最佳的碰头地点 (opens new window) Hard 题解
297.二叉树的序列化与反序列化 (opens new window) Hard 题解
298.二叉树最长连续序列 (opens new window) Medium 题解
299.猜数字游戏 (opens new window) Medium 题解
300.最长递增子序列 (opens new window) Medium 题解
301.删除无效的括号 (opens new window) Hard 题解
302.包含全部黑色像素的最小矩形 (opens new window) Hard 题解
303.区域和检索-数组不可变 (opens new window) Easy 题解
304.二维区域和检索-矩阵不可变 (opens new window) Medium 题解
305.岛屿数量II (opens new window) Hard 题解
306.累加数 (opens new window) Medium 题解
307.区域和检索-数组可修改 (opens new window) Medium 题解
308.二维区域和检索-可变 (opens new window) Hard 题解
309.最佳买卖股票时机含冷冻期 (opens new window) Medium 题解
310.最小高度树 (opens new window) Medium 题解
311.稀疏矩阵的乘法 (opens new window) Medium 题解
312.戳气球 (opens new window) Hard 题解
313.超级丑数 (opens new window) Medium 题解
314.二叉树的垂直遍历 (opens new window) Medium 题解
315.计算右侧小于当前元素的个数 (opens new window) Hard 题解
316.去除重复字母 (opens new window) Medium 题解
317.离建筑物最近的距离 (opens new window) Hard 题解
318.最大单词长度乘积 (opens new window) Medium 题解
319.灯泡开关 (opens new window) Medium 题解
320.列举单词的全部缩写 (opens new window) Medium 题解
321.拼接最大数 (opens new window) Hard 题解
322.零钱兑换 (opens new window) Medium 题解
323.无向图中连通分量的数目 (opens new window) Medium 题解
324.摆动排序II (opens new window) Medium 题解
325.和等于k的最长子数组长度 (opens new window) Medium 题解
326.3的幂 (opens new window) Easy 题解
327.区间和的个数 (opens new window) Hard 题解
328.奇偶链表 (opens new window) Medium 题解
329.矩阵中的最长递增路径 (opens new window) Hard 题解
330.按要求补齐数组 (opens new window) Hard 题解
331.验证二叉树的前序序列化 (opens new window) Medium 题解
332.重新安排行程 (opens new window) Medium 题解
333.最大BST子树 (opens new window) Medium 题解
334.递增的三元子序列 (opens new window) Medium 题解
335.路径交叉 (opens new window) Hard 题解
336.回文对 (opens new window) Hard 题解
337.打家劫舍III (opens new window) Medium 题解
338.比特位计数 (opens new window) Medium 题解
339.嵌套列表权重和 (opens new window) Easy 题解
340.至多包含K个不同字符的最长子串 (opens new window) Medium 题解
341.扁平化嵌套列表迭代器 (opens new window) Medium 题解
342.4的幂 (opens new window) Easy 题解
343.整数拆分 (opens new window) Medium 题解
344.反转字符串 (opens new window) Easy 题解
345.反转字符串中的元音字母 (opens new window) Easy 题解
346.数据流中的移动平均值 (opens new window) Easy 题解
347.前K个高频元素 (opens new window) Medium 题解
348.判定井字棋胜负 (opens new window) Medium 题解
349.两个数组的交集 (opens new window) Easy 题解
350.两个数组的交集II (opens new window) Easy 题解
351.安卓系统手势解锁 (opens new window) Medium 题解
352.将数据流变为多个不相交区间 (opens new window) Hard 题解
353.贪吃蛇 (opens new window) Medium 题解
354.俄罗斯套娃信封问题 (opens new window) Hard 题解
355.设计推特 (opens new window) Medium 题解
356.直线镜像 (opens new window) Medium 题解
357.计算各个位数不同的数字个数 (opens new window) Medium 题解
358.K距离间隔重排字符串 (opens new window) Hard 题解
359.日志速率限制器 (opens new window) Easy 题解
360.有序转化数组 (opens new window) Medium 题解
361.轰炸敌人 (opens new window) Medium 题解
362.敲击计数器 (opens new window) Medium 题解
363.矩形区域不超过K的最大数值和 (opens new window) Hard 题解
364.加权嵌套序列和II (opens new window) Medium 题解
365.水壶问题 (opens new window) Medium 题解
366.寻找二叉树的叶子节点 (opens new window) Medium 题解
367.有效的完全平方数 (opens new window) Easy 题解
368.最大整除子集 (opens new window) Medium 题解
369.给单链表加一 (opens new window) Medium 题解
370.区间加法 (opens new window) Medium 题解
371.两整数之和 (opens new window) Easy 题解
372.超级次方 (opens new window) Medium 题解
373.查找和最小的K对数字 (opens new window) Medium 题解
374.猜数字大小 (opens new window) Easy 题解
375.猜数字大小II (opens new window) Medium 题解
376.摆动序列 (opens new window) Medium 题解
377.组合总和Ⅳ (opens new window) Medium 题解
378.有序矩阵中第K小的元素 (opens new window) Medium 题解
379.电话目录管理系统 (opens new window) Medium 题解
380.常数时间插入、删除和获取随机元素 (opens new window) Medium 题解
381.O(1)时间插入、删除和获取随机元素-允许重复 (opens new window) Hard 题解
382.链表随机节点 (opens new window) Medium 题解
383.赎金信 (opens new window) Easy 题解
384.打乱数组 (opens new window) Medium 题解
385.迷你语法分析器 (opens new window) Medium 题解
386.字典序排数 (opens new window) Medium 题解
387.字符串中的第一个唯一字符 (opens new window) Easy 题解
388.文件的最长绝对路径 (opens new window) Medium 题解
389.找不同 (opens new window) Easy 题解
390.消除游戏 (opens new window) Medium 题解
391.完美矩形 (opens new window) Hard 题解
392.判断子序列 (opens new window) Easy 题解
393.UTF-8编码验证 (opens new window) Medium 题解
394.字符串解码 (opens new window) Medium 题解
395.至少有K个重复字符的最长子串 (opens new window) Medium 题解
396.旋转函数 (opens new window) Medium 题解
397.整数替换 (opens new window) Medium 题解
398.随机数索引 (opens new window) Medium 题解
399.除法求值 (opens new window) Medium 题解
400.第N位数字 (opens new window) Medium 题解
401.二进制手表 (opens new window) Easy 题解
402.移掉K位数字 (opens new window) Medium 题解
403.青蛙过河 (opens new window) Hard 题解
404.左叶子之和 (opens new window) Easy 题解
405.数字转换为十六进制数 (opens new window) Easy 题解
406.根据身高重建队列 (opens new window) Medium 题解
407.接雨水II (opens new window) Hard 题解
408.有效单词缩写 (opens new window) Easy 题解
409.最长回文串 (opens new window) Easy 题解
410.分割数组的最大值 (opens new window) Hard 题解
411.最短特异单词缩写 (opens new window) Hard 题解
412.FizzBuzz (opens new window) Easy 题解
413.等差数列划分 (opens new window) Medium 题解
414.第三大的数 (opens new window) Easy 题解
415.字符串相加 (opens new window) Easy 题解
416.分割等和子集 (opens new window) Medium 题解
417.太平洋大西洋水流问题 (opens new window) Medium 题解
418.屏幕可显示句子的数量 (opens new window) Medium 题解
419.甲板上的战舰 (opens new window) Medium 题解
420.强密码检验器 (opens new window) Hard 题解
421.数组中两个数的最大异或值 (opens new window) Medium 题解
422.有效的单词方块 (opens new window) Easy 题解
423.从英文中重建数字 (opens new window) Medium 题解
424.替换后的最长重复字符 (opens new window) Medium 题解
425.单词方块 (opens new window) Hard 题解
432.全O(1)的数据结构 (opens new window) Hard 题解
433.最小基因变化 (opens new window) Medium 题解
434.字符串中的单词数 (opens new window) Easy 题解
435.无重叠区间 (opens new window) Medium 题解
436.寻找右区间 (opens new window) Medium 题解
437.路径总和III (opens new window) Medium 题解
438.找到字符串中所有字母异位词 (opens new window) Medium 题解
439.三元表达式解析器 (opens new window) Medium 题解
440.字典序的第K小数字 (opens new window) Hard 题解
441.排列硬币 (opens new window) Easy 题解
442.数组中重复的数据 (opens new window) Medium 题解
443.压缩字符串 (opens new window) Medium 题解
444.序列重建 (opens new window) Medium 题解
445.两数相加II (opens new window) Medium 题解
446.等差数列划分II-子序列 (opens new window) Hard 题解
447.回旋镖的数量 (opens new window) Medium 题解
448.找到所有数组中消失的数字 (opens new window) Easy 题解
449.序列化和反序列化二叉搜索树 (opens new window) Medium 题解
450.删除二叉搜索树中的节点 (opens new window) Medium 题解
451.根据字符出现频率排序 (opens new window) Medium 题解
452.用最少数量的箭引爆气球 (opens new window) Medium 题解
453.最小操作次数使数组元素相等 (opens new window) Easy 题解
454.四数相加II (opens new window) Medium 题解
455.分发饼干 (opens new window) Easy 题解
456.132模式 (opens new window) Medium 题解
457.环形数组循环 (opens new window) Medium 题解
458.可怜的小猪 (opens new window) Hard 题解
459.重复的子字符串 (opens new window) Easy 题解
460.LFU缓存 (opens new window) Hard 题解
461.汉明距离 (opens new window) Easy 题解
462.最少移动次数使数组元素相等II (opens new window) Medium 题解
463.岛屿的周长 (opens new window) Easy 题解
464.我能赢吗 (opens new window) Medium 题解
465.最优账单平衡 (opens new window) Hard 题解
466.统计重复个数 (opens new window) Hard 题解
467.环绕字符串中唯一的子字符串 (opens new window) Medium 题解
468.验证IP地址 (opens new window) Medium 题解
469.凸多边形 (opens new window) Medium 题解
471.编码最短长度的字符串 (opens new window) Hard 题解
472.连接词 (opens new window) Hard 题解
473.火柴拼正方形 (opens new window) Medium 题解
474.一和零 (opens new window) Medium 题解
475.供暖器 (opens new window) Medium 题解
476.数字的补数 (opens new window) Easy 题解
477.汉明距离总和 (opens new window) Medium 题解
479.最大回文数乘积 (opens new window) Hard 题解
480.滑动窗口中位数 (opens new window) Hard 题解
481.神奇字符串 (opens new window) Medium 题解
482.密钥格式化 (opens new window) Easy 题解
483.最小好进制 (opens new window) Hard 题解
484.寻找排列 (opens new window) Medium 题解
485.最大连续1的个数 (opens new window) Easy 题解
486.预测赢家 (opens new window) Medium 题解
487.最大连续1的个数II (opens new window) Medium 题解
488.祖玛游戏 (opens new window) Hard 题解
1643.第K条最小指令 (opens new window) Hard 题解
490.迷宫 (opens new window) Medium 题解
491.递增子序列 (opens new window) Medium 题解
492.构造矩形 (opens new window) Easy 题解
493.翻转对 (opens new window) Hard 题解
494.目标和 (opens new window) Medium 题解
495.提莫攻击 (opens new window) Medium 题解
496.下一个更大元素I (opens new window) Easy 题解
498.对角线遍历 (opens new window) Medium 题解
499.迷宫III (opens new window) Hard 题解
500.键盘行 (opens new window) Easy 题解
501.二叉搜索树中的众数 (opens new window) Easy 题解
502.IPO (opens new window) Hard 题解
503.下一个更大元素II (opens new window) Medium 题解
504.七进制数 (opens new window) Easy 题解
505.迷宫II (opens new window) Medium 题解
506.相对名次 (opens new window) Easy 题解
507.完美数 (opens new window) Easy 题解
508.出现次数最多的子树元素和 (opens new window) Medium 题解
510.二叉搜索树中的中序后继II (opens new window) Medium 题解
1059.从始点到终点的所有路径 (opens new window) Medium 题解
513.找树左下角的值 (opens new window) Medium 题解
514.自由之路 (opens new window) Hard 题解
515.在每个树行中找最大值 (opens new window) Medium 题解
516.最长回文子序列 (opens new window) Medium 题解
517.超级洗衣机 (opens new window) Hard 题解
518.零钱兑换II (opens new window) Medium 题解
520.检测大写字母 (opens new window) Easy 题解
521.最长特殊序列Ⅰ (opens new window) Easy 题解
522.最长特殊序列II (opens new window) Medium 题解
523.连续的子数组和 (opens new window) Medium 题解
524.通过删除字母匹配到字典里最长单词 (opens new window) Medium 题解
525.连续数组 (opens new window) Medium 题解
526.优美的排列 (opens new window) Medium 题解
527.单词缩写 (opens new window) Hard 题解
5652.交换链表中的节点 (opens new window) Medium 题解
529.扫雷游戏 (opens new window) Medium 题解
530.二叉搜索树的最小绝对差 (opens new window) Easy 题解
531.孤独像素I (opens new window) Medium 题解
532.数组中的k-diff数对 (opens new window) Medium 题解
533.孤独像素II (opens new window) Medium 题解
535.TinyURL的加密与解密 (opens new window) Medium 题解
536.从字符串生成二叉树 (opens new window) Medium 题解
537.复数乘法 (opens new window) Medium 题解
538.把二叉搜索树转换为累加树 (opens new window) Medium 题解
539.最小时间差 (opens new window) Medium 题解
540.有序数组中的单一元素 (opens new window) Medium 题解
541.反转字符串II (opens new window) Easy 题解
542.01矩阵 (opens new window) Medium 题解
543.二叉树的直径 (opens new window) Easy 题解
544.输出比赛匹配对 (opens new window) Medium 题解
545.二叉树的边界 (opens new window) Medium 题解
546.移除盒子 (opens new window) Hard 题解
547.省份数量 (opens new window) Medium 题解
548.将数组分割成和相等的子数组 (opens new window) Medium 题解
549.二叉树中最长的连续序列 (opens new window) Medium 题解
551.学生出勤记录I (opens new window) Easy 题解
552.学生出勤记录II (opens new window) Hard 题解
553.最优除法 (opens new window) Medium 题解
554.砖墙 (opens new window) Medium 题解
555.分割连接字符串 (opens new window) Medium 题解
556.下一个更大元素III (opens new window) Medium 题解
557.反转字符串中的单词III (opens new window) Easy 题解
560.和为K的子数组 (opens new window) Medium 题解
561.数组拆分I (opens new window) Easy 题解
562.矩阵中最长的连续1线段 (opens new window) Medium 题解
563.二叉树的坡度 (opens new window) Easy 题解
564.寻找最近的回文数 (opens new window) Hard 题解
565.数组嵌套 (opens new window) Medium 题解
566.重塑矩阵 (opens new window) Easy 题解
567.字符串的排列 (opens new window) Medium 题解
568.最大休假天数 (opens new window) Hard 题解
569.员工薪水中位数 (opens new window) Hard 题解
570.至少有5名直接下属的经理 (opens new window) Medium 题解
571.给定数字的频率查询中位数 (opens new window) Hard 题解
572.另一个树的子树 (opens new window) Easy 题解
573.松鼠模拟 (opens new window) Medium 题解
574.当选者 (opens new window) Medium 题解
575.分糖果 (opens new window) Easy 题解
576.出界的路径数 (opens new window) Medium 题解
577.员工奖金 (opens new window) Easy 题解
578.查询回答率最高的问题 (opens new window) Medium 题解
579.查询员工的累计薪水 (opens new window) Hard 题解
580.统计各专业学生人数 (opens new window) Medium 题解
581.最短无序连续子数组 (opens new window) Medium 题解
582.杀死进程 (opens new window) Medium 题解
583.两个字符串的删除操作 (opens new window) Medium 题解
584.寻找用户推荐人 (opens new window) Easy 题解
585.2016年的投资 (opens new window) Medium 题解
586.订单最多的客户 (opens new window) Easy 题解
587.安装栅栏 (opens new window) Hard 题解
588.设计内存文件系统 (opens new window) Hard 题解
591.标签验证器 (opens new window) Hard 题解
592.分数加减运算 (opens new window) Medium 题解
593.有效的正方形 (opens new window) Medium 题解
594.最长和谐子序列 (opens new window) Easy 题解
595.大的国家 (opens new window) Easy 题解
596.超过5名学生的课 (opens new window) Easy 题解
597.好友申请I:总体通过率 (opens new window) Easy 题解
598.范围求和II (opens new window) Easy 题解
599.两个列表的最小索引总和 (opens new window) Easy 题解
600.不含连续1的非负整数 (opens new window) Hard 题解
601.体育馆的人流量 (opens new window) Hard 题解
602.好友申请II:谁有最多的好友 (opens new window) Medium 题解
603.连续空余座位 (opens new window) Easy 题解
604.迭代压缩字符串 (opens new window) Easy 题解
605.种花问题 (opens new window) Easy 题解
606.根据二叉树创建字符串 (opens new window) Easy 题解
607.销售员 (opens new window) Easy 题解
608.树节点 (opens new window) Medium 题解
609.在系统中查找重复文件 (opens new window) Medium 题解
610.判断三角形 (opens new window) Easy 题解
611.有效三角形的个数 (opens new window) Medium 题解
612.平面上的最近距离 (opens new window) Medium 题解
613.直线上的最近距离 (opens new window) Easy 题解
614.二级关注者 (opens new window) Medium 题解
615.平均工资:部门与公司比较 (opens new window) Hard 题解
616.给字符串添加加粗标签 (opens new window) Medium 题解
617.合并二叉树 (opens new window) Easy 题解
618.学生地理信息报告 (opens new window) Hard 题解
619.只出现一次的最大数字 (opens new window) Easy 题解
620.有趣的电影 (opens new window) Easy 题解
621.任务调度器 (opens new window) Medium 题解
623.在二叉树中增加一行 (opens new window) Medium 题解
624.数组列表中的最大距离 (opens new window) Medium 题解
625.最小因式分解 (opens new window) Medium 题解
626.换座位 (opens new window) Medium 题解
627.变更性别 (opens new window) Easy 题解
628.三个数的最大乘积 (opens new window) Easy 题解
629.K个逆序对数组 (opens new window) Hard 题解
630.课程表III (opens new window) Hard 题解
631.设计Excel求和公式 (opens new window) Hard 题解
632.最小区间 (opens new window) Hard 题解
633.平方数之和 (opens new window) Medium 题解
634.寻找数组的错位排列 (opens new window) Medium 题解
635.设计日志存储系统 (opens new window) Medium 题解
636.函数的独占时间 (opens new window) Medium 题解
637.二叉树的层平均值 (opens new window) Easy 题解
638.大礼包 (opens new window) Medium 题解
639.解码方法2 (opens new window) Hard 题解
640.求解方程 (opens new window) Medium 题解
642.设计搜索自动补全系统 (opens new window) Hard 题解
643.子数组最大平均数I (opens new window) Easy 题解
644.子数组最大平均数II (opens new window) Hard 题解
645.错误的集合 (opens new window) Easy 题解
646.最长数对链 (opens new window) Medium 题解
647.回文子串 (opens new window) Medium 题解
648.单词替换 (opens new window) Medium 题解
649.Dota2参议院 (opens new window) Medium 题解
650.只有两个键的键盘 (opens new window) Medium 题解
651.4键键盘 (opens new window) Medium 题解
652.寻找重复的子树 (opens new window) Medium 题解
653.两数之和IV-输入BST (opens new window) Easy 题解
654.最大二叉树 (opens new window) Medium 题解
655.输出二叉树 (opens new window) Medium 题解
656.金币路径 (opens new window) Hard 题解
657.机器人能否返回原点 (opens new window) Easy 题解
658.找到K个最接近的元素 (opens new window) Medium 题解
659.分割数组为连续子序列 (opens new window) Medium 题解
660.移除9 (opens new window) Hard 题解
661.图片平滑器 (opens new window) Easy 题解
662.二叉树最大宽度 (opens new window) Medium 题解
663.均匀树划分 (opens new window) Medium 题解
664.奇怪的打印机 (opens new window) Hard 题解
665.非递减数列 (opens new window) Easy 题解
666.路径和IV (opens new window) Medium 题解
667.优美的排列II (opens new window) Medium 题解
668.乘法表中第k小的数 (opens new window) Hard 题解
669.修剪二叉搜索树 (opens new window) Easy 题解
670.最大交换 (opens new window) Medium 题解
671.二叉树中第二小的节点 (opens new window) Easy 题解
672.灯泡开关Ⅱ (opens new window) Medium 题解
673.最长递增子序列的个数 (opens new window) Medium 题解
674.最长连续递增序列 (opens new window) Easy 题解
675.为高尔夫比赛砍树 (opens new window) Hard 题解
676.实现一个魔法字典 (opens new window) Medium 题解
677.键值映射 (opens new window) Medium 题解
678.有效的括号字符串 (opens new window) Medium 题解
679.24点游戏 (opens new window) Hard 题解
680.验证回文字符串Ⅱ (opens new window) Easy 题解
681.最近时刻 (opens new window) Medium 题解
682.棒球比赛 (opens new window) Easy 题解
683.K个关闭的灯泡 (opens new window) Hard 题解
684.冗余连接 (opens new window) Medium 题解
685.冗余连接II (opens new window) Hard 题解
686.重复叠加字符串匹配 (opens new window) Medium 题解
687.最长同值路径 (opens new window) Medium 题解
688.“马”在棋盘上的概率 (opens new window) Medium 题解
689.三个无重叠子数组的最大和 (opens new window) Hard 题解
690.员工的重要性 (opens new window) Easy 题解
691.贴纸拼词 (opens new window) Hard 题解
692.前K个高频单词 (opens new window) Medium 题解
693.交替位二进制数 (opens new window) Easy 题解
694.不同岛屿的数量 (opens new window) Medium 题解
695.岛屿的最大面积 (opens new window) Medium 题解
696.计数二进制子串 (opens new window) Easy 题解
697.数组的度 (opens new window) Easy 题解
698.划分为k个相等的子集 (opens new window) Medium 题解
699.掉落的方块 (opens new window) Hard 题解
711.不同岛屿的数量II (opens new window) Hard 题解
712.两个字符串的最小ASCII删除和 (opens new window) Medium 题解
713.乘积小于K的子数组 (opens new window) Medium 题解
714.买卖股票的最佳时机含手续费 (opens new window) Medium 题解
715.Range模块 (opens new window) Hard 题解
716.最大栈 (opens new window) Easy 题解
717.1比特与2比特字符 (opens new window) Easy 题解
718.最长重复子数组 (opens new window) Medium 题解
719.找出第k小的距离对 (opens new window) Hard 题解
720.词典中最长的单词 (opens new window) Easy 题解
721.账户合并 (opens new window) Medium 题解
722.删除注释 (opens new window) Medium 题解
723.粉碎糖果 (opens new window) Medium 题解
724.寻找数组的中心索引 (opens new window) Easy 题解
725.分隔链表 (opens new window) Medium 题解
726.原子的数量 (opens new window) Hard 题解
727.最小窗口子序列 (opens new window) Hard 题解
728.自除数 (opens new window) Easy 题解
729.我的日程安排表I (opens new window) Medium 题解
730.统计不同回文子序列 (opens new window) Hard 题解
731.我的日程安排表II (opens new window) Medium 题解
732.我的日程安排表III (opens new window) Hard 题解
733.图像渲染 (opens new window) Easy 题解
734.句子相似性 (opens new window) Easy 题解
735.行星碰撞 (opens new window) Medium 题解
736.Lisp语法解析 (opens new window) Hard 题解
737.句子相似性II (opens new window) Medium 题解
738.单调递增的数字 (opens new window) Medium 题解
739.每日温度 (opens new window) Medium 题解
740.删除与获得点数 (opens new window) Medium 题解
741.摘樱桃 (opens new window) Hard 题解
709.转换成小写字母 (opens new window) Easy 题解
742.二叉树最近的叶节点 (opens new window) Medium 题解
743.网络延迟时间 (opens new window) Medium 题解
744.寻找比目标字母大的最小字母 (opens new window) Easy 题解
745.前缀和后缀搜索 (opens new window) Hard 题解
746.使用最小花费爬楼梯 (opens new window) Easy 题解
747.至少是其他数字两倍的最大数 (opens new window) Easy 题解
748.最短补全词 (opens new window) Easy 题解
749.隔离病毒 (opens new window) Hard 题解
750.角矩形的数量 (opens new window) Medium 题解
751.IP到CIDR (opens new window) Easy 题解
752.打开转盘锁 (opens new window) Medium 题解
753.破解保险箱 (opens new window) Hard 题解
754.到达终点数字 (opens new window) Medium 题解
755.倒水 (opens new window) Medium 题解
756.金字塔转换矩阵 (opens new window) Medium 题解
426.将二叉搜索树转化为排序的双向链表 (opens new window) Medium 题解
757.设置交集大小至少为2 (opens new window) Hard 题解
758.字符串中的加粗单词 (opens new window) Easy 题解
759.员工空闲时间 (opens new window) Hard 题解
760.找出变位映射 (opens new window) Easy 题解
761.特殊的二进制序列 (opens new window) Hard 题解
429.N叉树的层序遍历 (opens new window) Medium 题解
428.序列化和反序列化N叉树 (opens new window) Hard 题解
430.扁平化多级双向链表 (opens new window) Medium 题解
762.二进制表示中质数个计算置位 (opens new window) Easy 题解
763.划分字母区间 (opens new window) Medium 题解
764.最大加号标志 (opens new window) Medium 题解
765.情侣牵手 (opens new window) Hard 题解
431.将N叉树编码为二叉树 (opens new window) Hard 题解
427.建立四叉树 (opens new window) Medium 题解
558.四叉树交集 (opens new window) Medium 题解
559.N叉树的最大深度 (opens new window) Easy 题解
589.N叉树的前序遍历 (opens new window) Easy 题解
590.N叉树的后序遍历 (opens new window) Easy 题解
766.托普利茨矩阵 (opens new window) Easy 题解
767.重构字符串 (opens new window) Medium 题解
768.最多能完成排序的块II (opens new window) Hard 题解
769.最多能完成排序的块 (opens new window) Medium 题解
770.基本计算器IV (opens new window) Hard 题解
771.宝石与石头 (opens new window) Easy 题解
700.二叉搜索树中的搜索 (opens new window) Easy 题解
701.二叉搜索树中的插入操作 (opens new window) Medium 题解
772.基本计算器III (opens new window) Hard 题解
702.搜索长度未知的有序数组 (opens new window) Medium 题解
773.滑动谜题 (opens new window) Hard 题解
774.最小化去加油站的最大距离 (opens new window) Hard 题解
703.数据流中的第K大元素 (opens new window) Easy 题解
775.全局倒置与局部倒置 (opens new window) Medium 题解
776.拆分二叉搜索树 (opens new window) Medium 题解
704.二分查找 (opens new window) Easy 题解
777.在LR字符串中交换相邻字符 (opens new window) Medium 题解
778.水位上升的泳池中游泳 (opens new window) Hard 题解
779.第K个语法符号 (opens new window) Medium 题解
780.到达终点 (opens new window) Hard 题解
781.森林中的兔子 (opens new window) Medium 题解
782.变为棋盘 (opens new window) Hard 题解
783.二叉搜索树节点最小距离 (opens new window) Easy 题解
784.字母大小写全排列 (opens new window) Medium 题解
785.判断二分图 (opens new window) Medium 题解
786.第K个最小的素数分数 (opens new window) Hard 题解
787.K站中转内最便宜的航班 (opens new window) Medium 题解
788.旋转数字 (opens new window) Easy 题解
789.逃脱阻碍者 (opens new window) Medium 题解
790.多米诺和托米诺平铺 (opens new window) Medium 题解
791.自定义字符串排序 (opens new window) Medium 题解
792.匹配子序列的单词数 (opens new window) Medium 题解
793.阶乘函数后K个零 (opens new window) Hard 题解
794.有效的井字游戏 (opens new window) Medium 题解
795.区间子数组个数 (opens new window) Medium 题解
796.旋转字符串 (opens new window) Easy 题解
797.所有可能的路径 (opens new window) Medium 题解
798.得分最高的最小轮调 (opens new window) Hard 题解
799.香槟塔 (opens new window) Medium 题解
705.设计哈希集合 (opens new window) Easy 题解
706.设计哈希映射 (opens new window) Easy 题解
800.相似RGB颜色 (opens new window) Easy 题解
801.使序列递增的最小交换次数 (opens new window) Medium 题解
802.找到最终的安全状态 (opens new window) Medium 题解
803.打砖块 (opens new window) Hard 题解
804.唯一摩尔斯密码词 (opens new window) Easy 题解
805.数组的均值分割 (opens new window) Hard 题解
806.写字符串需要的行数 (opens new window) Easy 题解
807.保持城市天际线 (opens new window) Medium 题解
808.分汤 (opens new window) Medium 题解
809.情感丰富的文字 (opens new window) Medium 题解
810.黑板异或游戏 (opens new window) Hard 题解
811.子域名访问计数 (opens new window) Easy 题解
812.最大三角形面积 (opens new window) Easy 题解
813.最大平均值和的分组 (opens new window) Medium 题解
814.二叉树剪枝 (opens new window) Medium 题解
815.公交路线 (opens new window) Hard 题解
816.模糊坐标 (opens new window) Medium 题解
817.链表组件 (opens new window) Medium 题解
818.赛车 (opens new window) Hard 题解
819.最常见的单词 (opens new window) Easy 题解
707.设计链表 (opens new window) Medium 题解
820.单词的压缩编码 (opens new window) Medium 题解
821.字符的最短距离 (opens new window) Easy 题解
822.翻转卡片游戏 (opens new window) Medium 题解
823.带因子的二叉树 (opens new window) Medium 题解
708.循环有序列表的插入 (opens new window) Medium 题解
824.山羊拉丁文 (opens new window) Easy 题解
825.适龄的朋友 (opens new window) Medium 题解
826.安排工作以达到最大收益 (opens new window) Medium 题解
827.最大人工岛 (opens new window) Hard 题解
828.统计子串中的唯一字符 (opens new window) Hard 题解
829.连续整数求和 (opens new window) Hard 题解
830.较大分组的位置 (opens new window) Easy 题解
831.隐藏个人信息 (opens new window) Medium 题解
641.设计循环双端队列 (opens new window) Medium 题解
622.设计循环队列 (opens new window) Medium 题解
832.翻转图像 (opens new window) Easy 题解
833.字符串中的查找与替换 (opens new window) Medium 题解
834.树中距离之和 (opens new window) Hard 题解
835.图像重叠 (opens new window) Medium 题解
489.扫地机器人 (opens new window) Hard 题解
836.矩形重叠 (opens new window) Easy 题解
837.新21点 (opens new window) Medium 题解
838.推多米诺 (opens new window) Medium 题解
839.相似字符串组 (opens new window) Hard 题解
840.矩阵中的幻方 (opens new window) Medium 题解
841.钥匙和房间 (opens new window) Medium 题解
842.将数组拆分成斐波那契序列 (opens new window) Medium 题解
843.猜猜这个单词 (opens new window) Hard 题解
844.比较含退格的字符串 (opens new window) Easy 题解
845.数组中的最长山脉 (opens new window) Medium 题解
846.一手顺子 (opens new window) Medium 题解
847.访问所有节点的最短路径 (opens new window) Hard 题解
848.字母移位 (opens new window) Medium 题解
849.到最近的人的最大距离 (opens new window) Medium 题解
850.矩形面积II (opens new window) Hard 题解
851.喧闹和富有 (opens new window) Medium 题解
852.山脉数组的峰顶索引 (opens new window) Easy 题解
853.车队 (opens new window) Medium 题解
854.相似度为K的字符串 (opens new window) Hard 题解
855.考场就座 (opens new window) Medium 题解
856.括号的分数 (opens new window) Medium 题解
857.雇佣K名工人的最低成本 (opens new window) Hard 题解
858.镜面反射 (opens new window) Medium 题解
859.亲密字符串 (opens new window) Easy 题解
860.柠檬水找零 (opens new window) Easy 题解
861.翻转矩阵后的得分 (opens new window) Medium 题解
862.和至少为K的最短子数组 (opens new window) Hard 题解
863.二叉树中所有距离为K的结点 (opens new window) Medium 题解
710.黑名单中的随机数 (opens new window) Hard 题解
864.获取所有钥匙的最短路径 (opens new window) Hard 题解
865.具有所有最深节点的最小子树 (opens new window) Medium 题解
866.回文素数 (opens new window) Medium 题解
867.转置矩阵 (opens new window) Easy 题解
868.二进制间距 (opens new window) Easy 题解
869.重新排序得到2的幂 (opens new window) Medium 题解
870.优势洗牌 (opens new window) Medium 题解
871.最低加油次数 (opens new window) Hard 题解
470.用Rand7()实现Rand10() (opens new window) Medium 题解
872.叶子相似的树 (opens new window) Easy 题解
873.最长的斐波那契子序列的长度 (opens new window) Medium 题解
874.模拟行走机器人 (opens new window) Easy 题解
875.爱吃香蕉的珂珂 (opens new window) Medium 题解
876.链表的中间结点 (opens new window) Easy 题解
877.石子游戏 (opens new window) Medium 题解
878.第N个神奇数字 (opens new window) Hard 题解
879.盈利计划 (opens new window) Hard 题解
528.按权重随机选择 (opens new window) Medium 题解
519.随机翻转矩阵 (opens new window) Medium 题解
497.非重叠矩形中的随机点 (opens new window) Medium 题解
478.在圆内随机生成点 (opens new window) Medium 题解
880.索引处的解码字符串 (opens new window) Medium 题解
881.救生艇 (opens new window) Medium 题解
882.细分图中的可到达结点 (opens new window) Hard 题解
883.三维形体投影面积 (opens new window) Easy 题解
884.两句话中的不常见单词 (opens new window) Easy 题解
885.螺旋矩阵III (opens new window) Medium 题解
886.可能的二分法 (opens new window) Medium 题解
887.鸡蛋掉落 (opens new window) Hard 题解
888.公平的糖果交换 (opens new window) Easy 题解
889.根据前序和后序遍历构造二叉树 (opens new window) Medium 题解
890.查找和替换模式 (opens new window) Medium 题解
891.子序列宽度之和 (opens new window) Hard 题解
892.三维形体的表面积 (opens new window) Easy 题解
893.特殊等价字符串组 (opens new window) Easy 题解
894.所有可能的满二叉树 (opens new window) Medium 题解
895.最大频率栈 (opens new window) Hard 题解
896.单调数列 (opens new window) Easy 题解
897.递增顺序查找树 (opens new window) Easy 题解
898.子数组按位或操作 (opens new window) Medium 题解
899.有序队列 (opens new window) Hard 题解
900.RLE迭代器 (opens new window) Medium 题解
901.股票价格跨度 (opens new window) Medium 题解
902.最大为N的数字组合 (opens new window) Hard 题解
903.DI序列的有效排列 (opens new window) Hard 题解
904.水果成篮 (opens new window) Medium 题解
905.按奇偶排序数组 (opens new window) Easy 题解
906.超级回文数 (opens new window) Hard 题解
907.子数组的最小值之和 (opens new window) Medium 题解
908.最小差值I (opens new window) Easy 题解
909.蛇梯棋 (opens new window) Medium 题解
910.最小差值II (opens new window) Medium 题解
911.在线选举 (opens new window) Medium 题解
912.排序数组 (opens new window) Medium 题解
913.猫和老鼠 (opens new window) Hard 题解
914.卡牌分组 (opens new window) Easy 题解
915.分割数组 (opens new window) Medium 题解
916.单词子集 (opens new window) Medium 题解
917.仅仅反转字母 (opens new window) Easy 题解
918.环形子数组的最大和 (opens new window) Medium 题解
919.完全二叉树插入器 (opens new window) Medium 题解
920.播放列表的数量 (opens new window) Hard 题解
921.使括号有效的最少添加 (opens new window) Medium 题解
922.按奇偶排序数组II (opens new window) Easy 题解
923.三数之和的多种可能 (opens new window) Medium 题解
924.尽量减少恶意软件的传播 (opens new window) Hard 题解
925.长按键入 (opens new window) Easy 题解
926.将字符串翻转到单调递增 (opens new window) Medium 题解
927.三等分 (opens new window) Hard 题解
928.尽量减少恶意软件的传播II (opens new window) Hard 题解
929.独特的电子邮件地址 (opens new window) Easy 题解
930.和相同的二元子数组 (opens new window) Medium 题解
931.下降路径最小和 (opens new window) Medium 题解
932.漂亮数组 (opens new window) Medium 题解
933.最近的请求次数 (opens new window) Easy 题解
934.最短的桥 (opens new window) Medium 题解
935.骑士拨号器 (opens new window) Medium 题解
936.戳印序列 (opens new window) Hard 题解
937.重新排列日志文件 (opens new window) Easy 题解
938.二叉搜索树的范围和 (opens new window) Easy 题解
939.最小面积矩形 (opens new window) Medium 题解
940.不同的子序列II (opens new window) Hard 题解
941.有效的山脉数组 (opens new window) Easy 题解
942.增减字符串匹配 (opens new window) Easy 题解
943.最短超级串 (opens new window) Hard 题解
944.删列造序 (opens new window) Easy 题解
945.使数组唯一的最小增量 (opens new window) Medium 题解
946.验证栈序列 (opens new window) Medium 题解
947.移除最多的同行或同列石头 (opens new window) Medium 题解
948.令牌放置 (opens new window) Medium 题解
949.给定数字能组成的最大时间 (opens new window) Medium 题解
950.按递增顺序显示卡牌 (opens new window) Medium 题解
951.翻转等价二叉树 (opens new window) Medium 题解
952.按公因数计算最大组件大小 (opens new window) Hard 题解
953.验证外星语词典 (opens new window) Easy 题解
954.二倍数对数组 (opens new window) Medium 题解
955.删列造序II (opens new window) Medium 题解
956.最高的广告牌 (opens new window) Hard 题解
957.N天后的牢房 (opens new window) Medium 题解
958.二叉树的完全性检验 (opens new window) Medium 题解
959.由斜杠划分区域 (opens new window) Medium 题解
960.删列造序III (opens new window) Hard 题解
961.重复N次的元素 (opens new window) Easy 题解
962.最大宽度坡 (opens new window) Medium 题解
963.最小面积矩形II (opens new window) Medium 题解
964.表示数字的最少运算符 (opens new window) Hard 题解
965.单值二叉树 (opens new window) Easy 题解
966.元音拼写检查器 (opens new window) Medium 题解
967.连续差相同的数字 (opens new window) Medium 题解
968.监控二叉树 (opens new window) Hard 题解
969.煎饼排序 (opens new window) Medium 题解
970.强整数 (opens new window) Easy 题解
971.翻转二叉树以匹配先序遍历 (opens new window) Medium 题解
972.相等的有理数 (opens new window) Hard 题解
509.斐波那契数 (opens new window) Easy 题解
973.最接近原点的K个点 (opens new window) Medium 题解
974.和可被K整除的子数组 (opens new window) Medium 题解
975.奇偶跳 (opens new window) Hard 题解
976.三角形的最大周长 (opens new window) Easy 题解
977.有序数组的平方 (opens new window) Easy 题解
978.最长湍流子数组 (opens new window) Medium 题解
979.在二叉树中分配硬币 (opens new window) Medium 题解
980.不同路径III (opens new window) Hard 题解
981.基于时间的键值存储 (opens new window) Medium 题解
982.按位与为零的三元组 (opens new window) Hard 题解
983.最低票价 (opens new window) Medium 题解
984.不含AAA或BBB的字符串 (opens new window) Medium 题解
985.查询后的偶数和 (opens new window) Easy 题解
986.区间列表的交集 (opens new window) Medium 题解
987.二叉树的垂序遍历 (opens new window) Medium 题解
988.从叶结点开始的最小字符串 (opens new window) Medium 题解
989.数组形式的整数加法 (opens new window) Easy 题解
990.等式方程的可满足性 (opens new window) Medium 题解
991.坏了的计算器 (opens new window) Medium 题解
992.K个不同整数的子数组 (opens new window) Hard 题解
993.二叉树的堂兄弟节点 (opens new window) Easy 题解
994.腐烂的橘子 (opens new window) Medium 题解
995.K连续位的最小翻转次数 (opens new window) Hard 题解
996.正方形数组的数目 (opens new window) Hard 题解
997.找到小镇的法官 (opens new window) Easy 题解
998.最大二叉树II (opens new window) Medium 题解
999.可以被一步捕获的棋子数 (opens new window) Easy 题解
1000.合并石头的最低成本 (opens new window) Hard 题解
1001.网格照明 (opens new window) Hard 题解
1002.查找常用字符 (opens new window) Easy 题解
1003.检查替换后的词是否有效 (opens new window) Medium 题解
1004.最大连续1的个数III (opens new window) Medium 题解
1005.K次取反后最大化的数组和 (opens new window) Easy 题解
1006.笨阶乘 (opens new window) Medium 题解
1007.行相等的最少多米诺旋转 (opens new window) Medium 题解
1008.前序遍历构造二叉搜索树 (opens new window) Medium 题解
1055.形成字符串的最短路径 (opens new window) Medium 题解
1057.校园自行车分配 (opens new window) Medium 题解
1058.最小化舍入误差以满足目标 (opens new window) Medium 题解
1009.十进制整数的反码 (opens new window) Easy 题解
1010.总持续时间可被60整除的歌曲 (opens new window) Medium 题解
1011.在D天内送达包裹的能力 (opens new window) Medium 题解
1012.至少有1位重复的数字 (opens new window) Hard 题解
1061.按字典序排列最小的等效字符串 (opens new window) Medium 题解
1060.有序数组中的缺失元素 (opens new window) Medium 题解
1062.最长重复子串 (opens new window) Medium 题解
1063.有效子数组的数目 (opens new window) Hard 题解
1013.将数组分成和相等的三个部分 (opens new window) Easy 题解
1014.最佳观光组合 (opens new window) Medium 题解
1015.可被K整除的最小整数 (opens new window) Medium 题解
1016.子串能表示从1到N数字的二进制串 (opens new window) Medium 题解
1064.不动点 (opens new window) Easy 题解
1066.校园自行车分配II (opens new window) Medium 题解
1067.范围内的数字计数 (opens new window) Hard 题解
1056.易混淆数 (opens new window) Easy 题解
1017.负二进制转换 (opens new window) Medium 题解
1018.可被5整除的二进制前缀 (opens new window) Easy 题解
1019.链表中的下一个更大节点 (opens new window) Medium 题解
1020.飞地的数量 (opens new window) Medium 题解
1086.前五科的均分 (opens new window) Easy 题解
1065.字符串的索引对 (opens new window) Easy 题解
1087.花括号展开 (opens new window) Medium 题解
1088.易混淆数II (opens new window) Hard 题解
1021.删除最外层的括号 (opens new window) Easy 题解
1022.从根到叶的二进制数之和 (opens new window) Easy 题解
1023.驼峰式匹配 (opens new window) Medium 题解
1024.视频拼接 (opens new window) Medium 题解
1085.最小元素各数位之和 (opens new window) Easy 题解
1099.小于K的两数之和 (opens new window) Easy 题解
1100.长度为K的无重复字符子串 (opens new window) Medium 题解
1101.彼此熟识的最早时间 (opens new window) Medium 题解
1025.除数博弈 (opens new window) Easy 题解
1027.最长等差数列 (opens new window) Medium 题解
1118.一月有多少天 (opens new window) Easy 题解
1119.删去字符串中的元音 (opens new window) Easy 题解
1134.阿姆斯特朗数 (opens new window) Easy 题解
1120.子树的最大平均值 (opens new window) Medium 题解
1026.节点与其祖先之间的最大差值 (opens new window) Medium 题解
1028.从先序遍历还原二叉树 (opens new window) Hard 题解
1030.距离顺序排列矩阵单元格 (opens new window) Easy 题解
1029.两地调度 (opens new window) Medium 题解
1031.两个非重叠子数组的最大和 (opens new window) Medium 题解
1032.字符流 (opens new window) Hard 题解
1133.最大唯一数 (opens new window) Easy 题解
1102.得分最高的路径 (opens new window) Medium 题解
1135.最低成本联通所有城市 (opens new window) Medium 题解
1136.平行课程 (opens new window) Hard 题解
1150.检查一个数是否在数组中占绝大多数 (opens new window) Easy 题解
1033.移动石子直到连续 (opens new window) Easy 题解
1034.边框着色 (opens new window) Medium 题解
1035.不相交的线 (opens new window) Medium 题解
1036.逃离大迷宫 (opens new window) Hard 题解
1151.最少交换次数来组合所有的1 (opens new window) Medium 题解
1152.用户网站访问行为分析 (opens new window) Medium 题解
1039.多边形三角剖分的最低得分 (opens new window) Medium 题解
1160.拼写单词 (opens new window) Easy 题解
1040.移动石子直到连续II (opens new window) Medium 题解
1038.把二叉搜索树转换为累加树 (opens new window) Medium 题解
1037.有效的回旋镖 (opens new window) Easy 题解
1161.最大层内元素和 (opens new window) Medium 题解
1162.地图分析 (opens new window) Medium 题解
1121.将数组分成几个递增序列 (opens new window) Hard 题解
1041.困于环中的机器人 (opens new window) Medium 题解
1042.不邻接植花 (opens new window) Medium 题解
1043.分隔数组以得到最大和 (opens new window) Medium 题解
1044.最长重复子串 (opens new window) Hard 题解
1165.单行键盘 (opens new window) Easy 题解
1153.字符串转化 (opens new window) Hard 题解
1166.设计文件系统 (opens new window) Medium 题解
1167.连接棒材的最低费用 (opens new window) Medium 题解
1046.最后一块石头的重量 (opens new window) Easy 题解
1047.删除字符串中的所有相邻重复项 (opens new window) Easy 题解
1048.最长字符串链 (opens new window) Medium 题解
1049.最后一块石头的重量II (opens new window) Medium 题解
1180.统计只含单一字母的子串 (opens new window) Easy 题解
1181.前后拼接 (opens new window) Medium 题解
1163.按字典序排在最后的子串 (opens new window) Hard 题解
1182.与目标颜色间的最短距离 (opens new window) Medium 题解
1045.买下所有产品的客户 (opens new window) Medium 题解
1050.合作过至少三次的演员和导演 (opens new window) Easy 题解
1051.高度检查器 (opens new window) Easy 题解
1052.爱生气的书店老板 (opens new window) Medium 题解
1053.交换一次的先前排列 (opens new window) Medium 题解
1054.距离相等的条形码 (opens new window) Medium 题解
1196.最多可以买到的苹果数量 (opens new window) Easy 题解
1197.进击的骑士 (opens new window) Medium 题解
1198.找出所有行中最小公共元素 (opens new window) Medium 题解
1168.水资源分配优化 (opens new window) Hard 题解
1074.元素和为目标值的子矩阵数量 (opens new window) Hard 题解
1071.字符串的最大公因子 (opens new window) Easy 题解
1072.按列翻转得到最大值等行数 (opens new window) Medium 题解
1073.负二进制数相加 (opens new window) Medium 题解
1213.三个有序数组的交集 (opens new window) Easy 题解
1214.查找两棵二叉搜索树之和 (opens new window) Medium 题解
1215.步进数 (opens new window) Medium 题解
1183.矩阵中1的最大数量 (opens new window) Hard 题解
1068.产品销售分析I (opens new window) Easy 题解
1069.产品销售分析II (opens new window) Easy 题解
1070.产品销售分析III (opens new window) Medium 题解
1078.Bigram分词 (opens new window) Easy 题解
1080.根到叶路径上的不足节点 (opens new window) Medium 题解
1081.不同字符的最小子序列 (opens new window) Medium 题解
1079.活字印刷 (opens new window) Medium 题解
1075.项目员工I (opens new window) Easy 题解
1076.项目员工II (opens new window) Easy 题解
1077.项目员工III (opens new window) Medium 题解
1228.等差数列中缺失的数字 (opens new window) Easy 题解
1229.安排会议日程 (opens new window) Medium 题解
1230.抛掷硬币 (opens new window) Medium 题解
1199.建造街区的最短时间 (opens new window) Hard 题解
1089.复写零 (opens new window) Easy 题解
1090.受标签影响的最大值 (opens new window) Medium 题解
1092.最短公共超序列 (opens new window) Hard 题解
1091.二进制矩阵中的最短路径 (opens new window) Medium 题解
1082.销售分析I (opens new window) Easy 题解
1083.销售分析II (opens new window) Easy 题解
1084.销售分析III (opens new window) Easy 题解
1243.数组变换 (opens new window) Easy 题解
1244.力扣排行榜 (opens new window) Medium 题解
1245.树的直径 (opens new window) Medium 题解
1216.验证回文字符串III (opens new window) Hard 题解
511.游戏玩法分析I (opens new window) Easy 题解
512.游戏玩法分析II (opens new window) Easy 题解
534.游戏玩法分析III (opens new window) Medium 题解
550.游戏玩法分析IV (opens new window) Medium 题解
1093.大样本统计 (opens new window) Medium 题解
1094.拼车 (opens new window) Medium 题解
1095.山脉数组中查找目标值 (opens new window) Hard 题解
1117.H2O生成 (opens new window) Medium 题解
1115.交替打印FooBar (opens new window) Medium 题解
1096.花括号展开II (opens new window) Hard 题解
1256.加密数字 (opens new window) Medium 题解
1257.最小公共区域 (opens new window) Medium 题解
1258.近义词句子 (opens new window) Medium 题解
1231.分享巧克力 (opens new window) Hard 题解
1097.游戏玩法分析V (opens new window) Hard 题解
1104.二叉树寻路 (opens new window) Medium 题解
1103.分糖果II (opens new window) Easy 题解
1105.填充书架 (opens new window) Medium 题解
1106.解析布尔表达式 (opens new window) Hard 题解
1098.小众书籍 (opens new window) Medium 题解
1271.十六进制魔术数字 (opens new window) Easy 题解
1272.删除区间 (opens new window) Medium 题解
1273.删除树节点 (opens new window) Medium 题解
1246.删除回文子数组 (opens new window) Hard 题解
1114.按序打印 (opens new window) Easy 题解
1107.每日新用户统计 (opens new window) Medium 题解
1108.IP地址无效化 (opens new window) Easy 题解
1109.航班预订统计 (opens new window) Medium 题解
1110.删点成林 (opens new window) Medium 题解
1111.有效括号的嵌套深度 (opens new window) Medium 题解
1188.设计有限阻塞队列 (opens new window) Medium 题解
1619.删除某些元素后的数组均值 (opens new window) Easy 题解
1286.字母组合迭代器 (opens new window) Medium 题解
1291.顺次数 (opens new window) Medium 题解
1259.不相交的握手 (opens new window) Hard 题解
1112.每位学生的最高成绩 (opens new window) Medium 题解
1113.报告的记录 (opens new window) Easy 题解
1116.打印零与奇偶数 (opens new window) Medium 题解
1122.数组的相对排序 (opens new window) Easy 题解
1123.最深叶节点的最近公共祖先 (opens new window) Medium 题解
1124.表现良好的最长时间段 (opens new window) Medium 题解
1125.最小的必要团队 (opens new window) Hard 题解
1287.有序数组中出现次数超过25%的元素 (opens new window) Easy 题解
1288.删除被覆盖区间 (opens new window) Medium 题解
1627.带阈值的图连通性 (opens new window) Hard 题解
1289.下降路径最小和II (opens new window) Hard 题解
1126.查询活跃业务 (opens new window) Medium 题解
1127.用户购买平台 (opens new window) Hard 题解
1128.等价多米诺骨牌对的数量 (opens new window) Easy 题解
1130.叶值的最小代价生成树 (opens new window) Medium 题解
1129.颜色交替的最短路径 (opens new window) Medium 题解
1131.绝对值表达式的最大值 (opens new window) Medium 题解
1299.将每个元素替换为右侧最大元素 (opens new window) Easy 题解
1300.转变数组后最接近目标值的数组和 (opens new window) Medium 题解
1274.矩形内船只的数目 (opens new window) Hard 题解
1301.最大得分的路径数目 (opens new window) Hard 题解
1137.第N个泰波那契数 (opens new window) Easy 题解
1132.报告的记录II (opens new window) Medium 题解
1138.字母板上的路径 (opens new window) Medium 题解
1139.最大的以1为边界的正方形 (opens new window) Medium 题解
1140.石子游戏II (opens new window) Medium 题解
1313.解压缩编码列表 (opens new window) Easy 题解
1314.矩阵区域和 (opens new window) Medium 题解
1315.祖父节点值为偶数的节点和 (opens new window) Medium 题解
1316.不同的循环子字符串 (opens new window) Hard 题解
1141.查询近30天活跃用户数 (opens new window) Easy 题解
1142.过去30天的用户活动II (opens new window) Easy 题解
1144.递减元素使数组呈锯齿状 (opens new window) Medium 题解
1145.二叉树着色游戏 (opens new window) Medium 题解
1146.快照数组 (opens new window) Medium 题解
1143.最长公共子序列 (opens new window) Medium 题解
1147.段式回文 (opens new window) Hard 题解
1328.破坏回文串 (opens new window) Medium 题解
1329.将矩阵按对角线排序 (opens new window) Medium 题解
1302.层数最深叶子节点的和 (opens new window) Medium 题解
1330.翻转子数组得到最大的数组值 (opens new window) Hard 题解
1331.数组序号转换 (opens new window) Easy 题解
1632.矩阵转换后的秩 (opens new window) Hard 题解
1148.文章浏览I (opens new window) Easy 题解
1149.文章浏览II (opens new window) Medium 题解
1154.一年中的第几天 (opens new window) Easy 题解
1156.单字符重复子串的最大长度 (opens new window) Medium 题解
1157.子数组中占绝大多数的元素 (opens new window) Hard 题解
1155.掷骰子的N种方法 (opens new window) Medium 题解
1171.从链表中删去总和值为零的连续节点 (opens new window) Medium 题解
1158.市场分析I (opens new window) Medium 题解
1159.市场分析II (opens new window) Hard 题解
1172.餐盘栈 (opens new window) Hard 题解
1236.网络爬虫 (opens new window) Medium 题解
1169.查询无效交易 (opens new window) Medium 题解
1170.比较字符串最小字母出现频次 (opens new window) Easy 题解
1360.日期之间隔几天 (opens new window) Easy 题解
1361.验证二叉树 (opens new window) Medium 题解
1362.最接近的因数 (opens new window) Medium 题解
1363.形成三的最大倍数 (opens new window) Hard 题解
1164.指定日期的产品价格 (opens new window) Medium 题解
1175.质数排列 (opens new window) Easy 题解
1176.健身计划评估 (opens new window) Easy 题解
1177.构建回文串检测 (opens new window) Medium 题解
1178.猜字谜 (opens new window) Hard 题解
1507.转变日期格式 (opens new window) Easy 题解
1390.四因数 (opens new window) Medium 题解
1382.将二叉搜索树变平衡 (opens new window) Medium 题解
1425.带限制的子序列和 (opens new window) Hard 题解
1184.公交站间的距离 (opens new window) Easy 题解
1186.删除一次得到子数组最大和 (opens new window) Medium 题解
1185.一周中的第几天 (opens new window) Easy 题解
1187.使数组严格递增 (opens new window) Hard 题解
1173.即时食物配送I (opens new window) Easy 题解
1174.即时食物配送II (opens new window) Medium 题解
1550.存在连续三个奇数的数组 (opens new window) Easy 题解
1483.树节点的第K个祖先 (opens new window) Hard 题解
1189.“气球”的最大数量 (opens new window) Easy 题解
1190.反转每对括号间的子串 (opens new window) Medium 题解
1191.K次串联后最大子数组之和 (opens new window) Medium 题解
1192.查找集群内的「关键连接」 (opens new window) Hard 题解
1179.重新格式化部门表 (opens new window) Easy 题解
1405.最长快乐字符串 (opens new window) Medium 题解
1200.最小绝对差 (opens new window) Easy 题解
1201.丑数III (opens new window) Medium 题解
1202.交换字符串中的元素 (opens new window) Medium 题解
1203.项目管理 (opens new window) Hard 题解
1195.交替打印字符串 (opens new window) Medium 题解
1193.每月交易I (opens new window) Medium 题解
1194.锦标赛优胜者 (opens new window) Hard 题解
1207.独一无二的出现次数 (opens new window) Easy 题解
1209.删除字符串中的所有相邻重复项II (opens new window) Medium 题解
1208.尽可能使字符串相等 (opens new window) Medium 题解
1210.穿过迷宫的最少移动次数 (opens new window) Hard 题解
1706.球会落何处 (opens new window) Medium 题解
1514.概率最大的路径 (opens new window) Medium 题解
1204.最后一个能进入电梯的人 (opens new window) Medium 题解
1205.每月交易II (opens new window) Medium 题解
1217.玩筹码 (opens new window) Easy 题解
1218.最长定差子序列 (opens new window) Medium 题解
1219.黄金矿工 (opens new window) Medium 题解
1220.统计元音字母序列的数目 (opens new window) Hard 题解
1206.设计跳表 (opens new window) Hard 题解
1211.查询结果的质量和占比 (opens new window) Easy 题解
1212.查询球队积分 (opens new window) Medium 题解
1226.哲学家进餐 (opens new window) Medium 题解
1221.分割平衡字符串 (opens new window) Easy 题解
1222.可以攻击国王的皇后 (opens new window) Medium 题解
1223.掷骰子模拟 (opens new window) Medium 题解
1224.最大相等频率 (opens new window) Hard 题解
1427.字符串的左右移 (opens new window) Easy 题解
1232.缀点成线 (opens new window) Easy 题解
1233.删除子文件夹 (opens new window) Medium 题解
1234.替换子串得到平衡字符串 (opens new window) Medium 题解
1235.规划兼职工作 (opens new window) Hard 题解
1225.报告系统状态的连续日期 (opens new window) Hard 题解
1237.找出给定方程的正整数解 (opens new window) Easy 题解
1238.循环码排列 (opens new window) Medium 题解
1239.串联字符串的最大长度 (opens new window) Medium 题解
1240.铺瓷砖 (opens new window) Hard 题解
1227.飞机座位分配概率 (opens new window) Medium 题解
1429.第一个唯一数字 (opens new window) Medium 题解
1691.堆叠长方体的最大高度 (opens new window) Hard 题解
1242.多线程网页爬虫 (opens new window) Medium 题解
1247.交换字符使得字符串相同 (opens new window) Medium 题解
1248.统计「优美子数组」 (opens new window) Medium 题解
1249.移除无效的括号 (opens new window) Medium 题解
1250.检查「好数组」 (opens new window) Hard 题解
1428.至少有一个1的最左端列 (opens new window) Medium 题解
1241.每个帖子的评论数 (opens new window) Easy 题解
1252.奇数值单元格的数目 (opens new window) Easy 题解
1253.重构2行二进制矩阵 (opens new window) Medium 题解
1254.统计封闭岛屿的数目 (opens new window) Medium 题解
1255.得分最高的单词集合 (opens new window) Hard 题解
1618.找出适应屏幕的最大字号 (opens new window) Medium 题解
1260.二维网格迁移 (opens new window) Easy 题解
1261.在受污染的二叉树中查找元素 (opens new window) Medium 题解
1262.可被三整除的最大和 (opens new window) Medium 题解
1263.推箱子 (opens new window) Hard 题解
1251.平均售价 (opens new window) Easy 题解
1426.数元素 (opens new window) Easy 题解
1266.访问所有点的最小时间 (opens new window) Easy 题解
1267.统计参与通信的服务器 (opens new window) Medium 题解
1268.搜索推荐系统 (opens new window) Medium 题解
1269.停在原地的方案数 (opens new window) Hard 题解
1264.页面推荐 (opens new window) Medium 题解
1275.找出井字棋的获胜者 (opens new window) Easy 题解
1276.不浪费原料的汉堡制作方案 (opens new window) Medium 题解
1277.统计全为1的正方形子矩阵 (opens new window) Medium 题解
1278.分割回文串III (opens new window) Hard 题解
1265.逆序打印不可变链表 (opens new window) Medium 题解
1270.向公司CEO汇报工作的所有人 (opens new window) Medium 题解
1281.整数的各位积和之差 (opens new window) Easy 题解
1282.用户分组 (opens new window) Medium 题解
1283.使结果不超过阈值的最小除数 (opens new window) Medium 题解
1284.转化为全零矩阵的最少反转次数 (opens new window) Hard 题解
1279.红绿灯路口 (opens new window) Easy 题解
1290.二进制链表转整数 (opens new window) Easy 题解
1292.元素和小于等于阈值的正方形的最大边长 (opens new window) Medium 题解
1293.网格中的最短路径 (opens new window) Hard 题解
1280.学生们参加各科测试的次数 (opens new window) Easy 题解
1285.找到连续区间的开始和结束数字 (opens new window) Medium 题解
1295.统计位数为偶数的数字 (opens new window) Easy 题解
1296.划分数组为连续数字的集合 (opens new window) Medium 题解
1297.子串的最大出现次数 (opens new window) Medium 题解
1298.你能从盒子里获得的最大糖果数 (opens new window) Hard 题解
1294.不同国家的天气类型 (opens new window) Easy 题解
1304.和为零的N个唯一整数 (opens new window) Easy 题解
1305.两棵二叉搜索树中的所有元素 (opens new window) Medium 题解
1306.跳跃游戏III (opens new window) Medium 题解
1307.口算难题 (opens new window) Hard 题解
1430.判断给定的序列是否是二叉树从根到叶的路径 (opens new window) Medium 题解
1309.解码字母到整数映射 (opens new window) Easy 题解
1310.子数组异或查询 (opens new window) Medium 题解
1311.获取你好友已观看的视频 (opens new window) Medium 题解
1312.让字符串成为回文串的最少插入次数 (opens new window) Hard 题解
1303.求团队人数 (opens new window) Easy 题解
1308.不同性别每日分数总计 (opens new window) Medium 题解
1317.将整数转换为两个无零整数的和 (opens new window) Easy 题解
1318.或运算的最小翻转次数 (opens new window) Medium 题解
1319.连通网络的操作次数 (opens new window) Medium 题解
1320.二指输入的的最小距离 (opens new window) Hard 题解
1342.将数字变成0的操作次数 (opens new window) Easy 题解
1343.大小为K且平均值大于等于阈值的子数组数目 (opens new window) Medium 题解
1344.时钟指针的夹角 (opens new window) Medium 题解
1345.跳跃游戏IV (opens new window) Hard 题解
1323.6和9组成的最大数字 (opens new window) Easy 题解
1324.竖直打印单词 (opens new window) Medium 题解
1325.删除给定值的叶子节点 (opens new window) Medium 题解
1326.灌溉花园的最少水龙头数目 (opens new window) Hard 题解
1321.餐馆营业额变化增长 (opens new window) Medium 题解
1322.广告效果 (opens new window) Easy 题解
1332.删除回文子序列 (opens new window) Easy 题解
1333.餐厅过滤器 (opens new window) Medium 题解
1334.阈值距离内邻居最少的城市 (opens new window) Medium 题解
1335.工作计划的最低难度 (opens new window) Hard 题解
1356.根据数字二进制下1的数目排序 (opens new window) Easy 题解
1357.每隔n个顾客打折 (opens new window) Medium 题解
1358.包含所有三种字符的子字符串数目 (opens new window) Medium 题解
1359.有效的快递序列数目 (opens new window) Hard 题解
1327.列出指定时间段内所有的下单产品 (opens new window) Easy 题解
1337.矩阵中战斗力最弱的K行 (opens new window) Easy 题解
1338.数组大小减半 (opens new window) Medium 题解
1339.分裂二叉树的最大乘积 (opens new window) Medium 题解
1340.跳跃游戏V (opens new window) Hard 题解
1336.每次访问的交易次数 (opens new window) Hard 题解
1346.检查整数及其两倍数是否存在 (opens new window) Easy 题解
1347.制造字母异位词的最小步骤数 (opens new window) Medium 题解
1348.推文计数 (opens new window) Medium 题解
1349.参加考试的最大学生数 (opens new window) Hard 题解
1370.上升下降字符串 (opens new window) Easy 题解
1371.每个元音包含偶数次的最长子字符串 (opens new window) Medium 题解
1372.二叉树中的最长交错路径 (opens new window) Medium 题解
1373.二叉搜索子树的最大键值和 (opens new window) Hard 题解
1351.统计有序矩阵中的负数 (opens new window) Easy 题解
1352.最后K个数的乘积 (opens new window) Medium 题解
1353.最多可以参加的会议数目 (opens new window) Medium 题解
1354.多次求和构造目标数组 (opens new window) Hard 题解
1341.电影评分 (opens new window) Medium 题解
1350.院系无效的学生 (opens new window) Easy 题解
1365.有多少小于当前数字的数字 (opens new window) Easy 题解
1366.通过投票对团队排名 (opens new window) Medium 题解
1367.二叉树中的列表 (opens new window) Medium 题解
1368.使网格图至少有一条有效路径的最小代价 (opens new window) Hard 题解
1385.两个数组间的距离值 (opens new window) Easy 题解
1386.安排电影院座位 (opens new window) Medium 题解
1387.将整数按权重排序 (opens new window) Medium 题解
1388.3n块披萨 (opens new window) Hard 题解
1374.生成每种字符都是奇数个的字符串 (opens new window) Easy 题解
1375.灯泡开关III (opens new window) Medium 题解
1376.通知所有员工所需的时间 (opens new window) Medium 题解
1377.T秒后青蛙的位置 (opens new window) Hard 题解
1355.活动参与者 (opens new window) Medium 题解
1364.顾客的可信联系人数量 (opens new window) Medium 题解
1380.矩阵中的幸运数 (opens new window) Easy 题解
1381.设计一个支持增量操作的栈 (opens new window) Medium 题解
1379.找出克隆二叉树中的相同节点 (opens new window) Medium 题解
1383.最大的团队表现值 (opens new window) Hard 题解
1399.统计最大组的数目 (opens new window) Easy 题解
1401.圆和矩形是否有重叠 (opens new window) Medium 题解
1400.构造K个回文字符串 (opens new window) Medium 题解
1402.做菜顺序 (opens new window) Hard 题解
1369.获取最近第二次的活动 (opens new window) Hard 题解
1389.按既定顺序创建目标数组 (opens new window) Easy 题解
1391.检查网格中是否存在有效路径 (opens new window) Medium 题解
1392.最长快乐前缀 (opens new window) Hard 题解
1378.使用唯一标识码替换员工ID (opens new window) Easy 题解
1394.找出数组中的幸运数 (opens new window) Easy 题解
1395.统计作战单位数 (opens new window) Medium 题解
1396.设计地铁系统 (opens new window) Medium 题解
1397.找到所有好字符串 (opens new window) Hard 题解
1413.逐步求和得到正数的最小值 (opens new window) Easy 题解
1414.和为K的最少斐波那契数字数目 (opens new window) Medium 题解
1415.长度为n的开心字符串中字典序第k小的字符串 (opens new window) Medium 题解
1416.恢复数组 (opens new window) Hard 题解
1384.按年度列出销售总额 (opens new window) Hard 题解
1403.非递增顺序的最小子序列 (opens new window) Easy 题解
1404.将二进制表示减到1的步骤数 (opens new window) Medium 题解
1406.石子游戏III (opens new window) Hard 题解
1393.股票的资本损益 (opens new window) Medium 题解
1408.数组中的字符串匹配 (opens new window) Easy 题解
1409.查询带键的排列 (opens new window) Medium 题解
1410.HTML实体解析器 (opens new window) Medium 题解
1411.给Nx3网格图涂色的方案数 (opens new window) Hard 题解
1431.拥有最多糖果的孩子 (opens new window) Easy 题解
1432.改变一个整数能得到的最大差值 (opens new window) Medium 题解
1433.检查一个字符串是否可以打破另一个字符串 (opens new window) Medium 题解
1434.每个人戴不同帽子的方案数 (opens new window) Hard 题解
1417.重新格式化字符串 (opens new window) Easy 题解
1418.点菜展示表 (opens new window) Medium 题解
1419.数青蛙 (opens new window) Medium 题解
1420.生成数组 (opens new window) Hard 题解
1398.购买了产品A和产品B却没有购买产品C的顾客 (opens new window) Medium 题解
1422.分割字符串的最大得分 (opens new window) Easy 题解
1423.可获得的最大点数 (opens new window) Medium 题解
1424.对角线遍历II (opens new window) Medium 题解
1407.排名靠前的旅行者 (opens new window) Easy 题解
1446.连续字符 (opens new window) Easy 题解
1447.最简分数 (opens new window) Medium 题解
1448.统计二叉树中好节点的数目 (opens new window) Medium 题解
1449.数位成本和为目标值的最大数字 (opens new window) Hard 题解
1412.查找成绩处于中游的学生 (opens new window) Hard 题解
1436.旅行终点站 (opens new window) Easy 题解
1437.是否所有1都至少相隔k个元素 (opens new window) Medium 题解
1438.绝对差不超过限制的最长连续子数组 (opens new window) Medium 题解
1439.有序矩阵中的第k个最小数组和 (opens new window) Hard 题解
1421.净现值查询 (opens new window) Medium 题解
1441.用栈操作构建数组 (opens new window) Easy 题解
1442.形成两个异或相等数组的三元组数目 (opens new window) Medium 题解
1443.收集树上所有苹果的最少时间 (opens new window) Medium 题解
1444.切披萨的方案数 (opens new window) Hard 题解
1460.通过翻转子数组使两个数组相等 (opens new window) Easy 题解
1461.检查一个字符串是否包含所有长度为K的二进制子串 (opens new window) Medium 题解
1462.课程安排IV (opens new window) Medium 题解
1463.摘樱桃II (opens new window) Hard 题解
1450.在既定时间做作业的学生人数 (opens new window) Easy 题解
1451.重新排列句子中的单词 (opens new window) Medium 题解
1452.收藏清单 (opens new window) Medium 题解
1453.圆形靶内的最大飞镖数量 (opens new window) Hard 题解
1435.制作会话柱状图 (opens new window) Easy 题解
1440.计算布尔表达式的值 (opens new window) Medium 题解
1455.检查单词是否为句中其他单词的前缀 (opens new window) Easy 题解
1456.定长子串中元音的最大数目 (opens new window) Medium 题解
1457.二叉树中的伪回文路径 (opens new window) Medium 题解
1458.两个子序列的最大点积 (opens new window) Hard 题解
1475.商品折扣后的最终价格 (opens new window) Easy 题解
1478.安排邮筒 (opens new window) Hard 题解
1476.子矩形查询 (opens new window) Medium 题解
1477.找两个和为目标值且不重叠的子数组 (opens new window) Medium 题解
1464.数组中两元素的最大乘积 (opens new window) Easy 题解
1465.切割后面积最大的蛋糕 (opens new window) Medium 题解
1466.重新规划路线 (opens new window) Medium 题解
1467.两个盒子中球的颜色数相同的概率 (opens new window) Hard 题解
1445.苹果和桔子 (opens new window) Medium 题解
1454.活跃用户 (opens new window) Medium 题解
1470.重新排列数组 (opens new window) Easy 题解
1471.数组中的k个最强值 (opens new window) Medium 题解
1472.设计浏览器历史记录 (opens new window) Medium 题解
1473.给房子涂色III (opens new window) Hard 题解
1491.去掉最低工资和最高工资后的工资平均值 (opens new window) Easy 题解
1492.n的第k个因子 (opens new window) Medium 题解
1493.删掉一个元素以后全为1的最长子数组 (opens new window) Medium 题解
1494.并行课程II (opens new window) Hard 题解
1480.一维数组的动态和 (opens new window) Easy 题解
1481.不同整数的最少数目 (opens new window) Medium 题解
1482.制作m束花所需的最少天数 (opens new window) Medium 题解
1459.矩形面积 (opens new window) Medium 题解
1468.计算税后工资 (opens new window) Medium 题解
1469.寻找所有的独生节点 (opens new window) Easy 题解
1486.数组异或操作 (opens new window) Easy 题解
1487.保证文件名唯一 (opens new window) Medium 题解
1488.避免洪水泛滥 (opens new window) Medium 题解
1489.找到最小生成树里的关键边和伪关键边 (opens new window) Hard 题解
1508.子数组和排序后的区间和 (opens new window) Medium 题解
1509.三次操作后最大值与最小值的最小差 (opens new window) Medium 题解
1510.石子游戏IV (opens new window) Hard 题解
1474.删除链表M个节点之后的N个节点 (opens new window) Easy 题解
1496.判断路径是否相交 (opens new window) Easy 题解
1497.检查数组对是否可以被k整除 (opens new window) Medium 题解
1498.满足条件的子序列数目 (opens new window) Medium 题解
1499.满足不等式的最大值 (opens new window) Hard 题解
1479.周内每天的销售情况 (opens new window) Hard 题解
1484.克隆含随机指针的二叉树 (opens new window) Medium 题解
1485.按日期分组销售产品 (opens new window) Easy 题解
1502.判断能否形成等差数列 (opens new window) Easy 题解
1503.所有蚂蚁掉下来前的最后一刻 (opens new window) Medium 题解
1504.统计全1子矩形 (opens new window) Medium 题解
1505.最多K次交换相邻数位后得到的最小整数 (opens new window) Hard 题解
1523.在区间范围内统计奇数数目 (opens new window) Easy 题解
1524.和为奇数的子数组数目 (opens new window) Medium 题解
1525.字符串的好分割数目 (opens new window) Medium 题解
1526.形成目标数组的子数组最少增加次数 (opens new window) Hard 题解
1490.克隆N叉树 (opens new window) Medium 题解
1512.好数对的数目 (opens new window) Easy 题解
1513.仅含1的子串数 (opens new window) Medium 题解
1531.压缩字符串II (opens new window) Hard 题解
1515.服务中心的最佳位置 (opens new window) Hard 题解
1495.上月播放的儿童适宜电影 (opens new window) Easy 题解
1500.设计文件分享系统 (opens new window) Medium 题解
1501.可以放心投资的国家 (opens new window) Medium 题解
1518.换酒问题 (opens new window) Easy 题解
1519.子树中标签相同的节点数 (opens new window) Medium 题解
1520.最多的不重叠子字符串 (opens new window) Hard 题解
1521.找到最接近目标值的函数值 (opens new window) Hard 题解
1539.第k个缺失的正整数 (opens new window) Easy 题解
1540.K次操作转变字符串 (opens new window) Medium 题解
1541.平衡括号字符串的最少插入次数 (opens new window) Medium 题解
1546.和为目标值的最大数目不重叠非空子数组数目 (opens new window) Medium 题解
1506.找到N叉树的根节点 (opens new window) Medium 题解
1528.重新排列字符串 (opens new window) Easy 题解
1529.灯泡开关IV (opens new window) Medium 题解
1530.好叶子节点对的数量 (opens new window) Medium 题解
1511.消费者下单频率 (opens new window) Easy 题解
1516.移动N叉树的子树 (opens new window) Hard 题解
1534.统计好三元组 (opens new window) Easy 题解
1535.找出数组游戏的赢家 (opens new window) Medium 题解
1536.排布二进制网格的最少交换次数 (opens new window) Medium 题解
1537.最大得分 (opens new window) Hard 题解
1556.千位分隔数 (opens new window) Easy 题解
1557.可以到达所有点的最少点数目 (opens new window) Medium 题解
1558.得到目标数组的最少函数调用次数 (opens new window) Medium 题解
1559.二维网格图中探测环 (opens new window) Hard 题解
1517.查找拥有有效邮箱的用户 (opens new window) Easy 题解
1522.N叉树的直径 (opens new window) Medium 题解
1544.整理字符串 (opens new window) Easy 题解
1545.找出第N个二进制字符串中的第K位 (opens new window) Medium 题解
1542.找出最长的超赞子字符串 (opens new window) Hard 题解
1547.切棍子的最小成本 (opens new window) Hard 题解
1527.患某种疾病的患者 (opens new window) Easy 题解
1532.最近的三笔订单 (opens new window) Medium 题解
1533.找到最大整数的索引 (opens new window) Medium 题解
1551.使数组中所有元素相等的最小操作数 (opens new window) Medium 题解
1552.两球之间的磁力 (opens new window) Medium 题解
1553.吃掉N个橘子的最少天数 (opens new window) Hard 题解
1572.矩阵对角线元素的和 (opens new window) Easy 题解
1573.分割字符串的方案数 (opens new window) Medium 题解
1574.删除最短的子数组使剩余数组有序 (opens new window) Medium 题解
1575.统计所有可行路径 (opens new window) Hard 题解
1538.找出隐藏数组中出现次数最多的元素 (opens new window) Medium 题解
1560.圆形赛道上经过次数最多的扇区 (opens new window) Easy 题解
1561.你可以获得的最大硬币数目 (opens new window) Medium 题解
1562.查找大小为M的最新分组 (opens new window) Medium 题解
1563.石子游戏V (opens new window) Hard 题解
1543.产品名称格式修复 (opens new window) Easy 题解
1548.图中最相似的路径 (opens new window) Hard 题解
1549.每件商品的最新订单 (opens new window) Medium 题解
1566.重复至少K次且长度为M的模式 (opens new window) Easy 题解
1567.乘积为正数的最长子数组长度 (opens new window) Medium 题解
1568.使陆地分离的最少天数 (opens new window) Hard 题解
1569.将子数组重新排序得到同一个二叉查找树的方案数 (opens new window) Hard 题解
1588.所有奇数长度子数组的和 (opens new window) Easy 题解
1590.使数组和能被P整除 (opens new window) Medium 题解
1589.所有排列中的最大和 (opens new window) Medium 题解
1591.奇怪的打印机II (opens new window) Hard 题解
1554.只有一个不同字符的字符串 (opens new window) Medium 题解
1576.替换所有的问号 (opens new window) Easy 题解
1577.数的平方等于两数乘积的方法数 (opens new window) Medium 题解
1578.避免重复字母的最小删除成本 (opens new window) Medium 题解
1579.保证图可完全遍历 (opens new window) Hard 题解
1555.银行账户概要 (opens new window) Medium 题解
1564.把箱子放进仓库里I (opens new window) Medium 题解
1582.二进制矩阵中的特殊位置 (opens new window) Easy 题解
1583.统计不开心的朋友 (opens new window) Medium 题解
1584.连接所有点的最小费用 (opens new window) Medium 题解
1585.检查字符串是否可以通过排序子字符串得到另一个字符串 (opens new window) Hard 题解
1603.设计停车系统 (opens new window) Easy 题解
1604.警告一小时内使用相同员工卡大于等于三次的人 (opens new window) Medium 题解
1606.找到处理最多请求的服务器 (opens new window) Hard 题解
1605.给定行和列的和求可行矩阵 (opens new window) Medium 题解
1565.按月统计订单数与顾客数 (opens new window) Easy 题解
1570.两个稀疏向量的点积 (opens new window) Medium 题解
1592.重新排列单词间的空格 (opens new window) Easy 题解
1593.拆分字符串使唯一子字符串的数目最大 (opens new window) Medium 题解
1594.矩阵的最大非负积 (opens new window) Medium 题解
1595.连通两组点的最小成本 (opens new window) Hard 题解
1571.仓库经理 (opens new window) Easy 题解
1580.把箱子放进仓库里II (opens new window) Medium 题解
1598.文件夹操作日志搜集器 (opens new window) Easy 题解
1599.经营摩天轮的最大利润 (opens new window) Medium 题解
1600.皇位继承顺序 (opens new window) Medium 题解
1601.最多可达成的换楼请求数目 (opens new window) Hard 题解
1581.进店却未进行过交易的顾客 (opens new window) Easy 题解
1621.大小为K的不重叠线段的数目 (opens new window) Medium 题解
1620.网络信号最好的坐标 (opens new window) Medium 题解
1622.奇妙序列 (opens new window) Hard 题解
1586.二叉搜索树迭代器II (opens new window) Medium 题解
1608.特殊数组的特征值 (opens new window) Easy 题解
1609.奇偶树 (opens new window) Medium 题解
1611.使整数变为0的最少操作次数 (opens new window) Hard 题解
1610.可见点的最大数目 (opens new window) Hard 题解
1587.银行账户概要II (opens new window) Easy 题解
1596.每位顾客最经常订购的商品 (opens new window) Medium 题解
1597.根据中缀表达式构造二叉表达式树 (opens new window) Hard 题解
1614.括号的最大嵌套深度 (opens new window) Easy 题解
1615.最大网络秩 (opens new window) Medium 题解
1616.分割两个字符串得到回文串 (opens new window) Medium 题解
1617.统计子树中城市之间最大距离 (opens new window) Hard 题解
1636.按照频率将数组升序排序 (opens new window) Easy 题解
1637.两点之间不包含任何点的最宽垂直面积 (opens new window) Medium 题解
1638.统计只差一个字符的子串数目 (opens new window) Medium 题解
1639.通过给定词典构造目标字符串的方案数 (opens new window) Hard 题解
1602.找到二叉树中最近的右侧节点 (opens new window) Medium 题解
1624.两个相同字符之间的最长子字符串 (opens new window) Easy 题解
1625.执行操作后字典序最小的字符串 (opens new window) Medium 题解
1626.无矛盾的最佳球队 (opens new window) Medium 题解
1607.没有卖出的卖家 (opens new window) Easy 题解
1612.检查两棵二叉表达式树是否等价 (opens new window) Medium 题解
1629.按键持续时间最长的键 (opens new window) Easy 题解
1630.等差子数组 (opens new window) Medium 题解
1631.最小体力消耗路径 (opens new window) Medium 题解
1652.拆炸弹 (opens new window) Easy 题解
1653.使字符串平衡的最少删除次数 (opens new window) Medium 题解
1654.到家的最少跳跃次数 (opens new window) Medium 题解
1655.分配重复整数 (opens new window) Hard 题解
1613.找到遗失的ID (opens new window) Medium 题解
1640.能否连接形成数组 (opens new window) Easy 题解
1641.统计字典序元音字符串的数目 (opens new window) Medium 题解
1642.可以到达的最远建筑 (opens new window) Medium 题解
1623.三人国家代表队 (opens new window) Easy 题解
1668.最大重复子字符串 (opens new window) Easy 题解
1669.合并两个链表 (opens new window) Medium 题解
1671.得到山形数组的最少删除次数 (opens new window) Hard 题解
1670.设计前中后队列 (opens new window) Medium 题解
1628.设计带解析函数的表达式树 (opens new window) Medium 题解
1646.获取生成数组中的最大值 (opens new window) Easy 题解
1647.字符频次唯一的最小删除次数 (opens new window) Medium 题解
1648.销售价值减少的颜色球 (opens new window) Medium 题解
1649.通过指令创建有序数组 (opens new window) Hard 题解
1633.各赛事的用户注册率 (opens new window) Easy 题解
1634.求两个多项式链表的和 (opens new window) Medium 题解
1656.设计有序流 (opens new window) Easy 题解
1658.将x减到0的最小操作数 (opens new window) Medium 题解
1657.确定两个字符串是否接近 (opens new window) Medium 题解
1659.最大化网格幸福感 (opens new window) Hard 题解
1635.HopperCompanyQueriesI (opens new window) Hard 题解
1644.二叉树的最近公共祖先II (opens new window) Medium 题解
1662.检查两个字符串数组是否相等 (opens new window) Easy 题解
1663.具有给定数值的最小字符串 (opens new window) Medium 题解
1664.生成平衡数组的方案数 (opens new window) Medium 题解
1665.完成所有任务的最少初始能量 (opens new window) Hard 题解
1645.HopperCompanyQueriesII (opens new window) Hard 题解
1684.统计一致字符串的数目 (opens new window) Easy 题解
1685.有序数组中差绝对值之和 (opens new window) Medium 题解
1686.石子游戏VI (opens new window) Medium 题解
1687.从仓库到码头运输箱子 (opens new window) Hard 题解
1650.二叉树的最近公共祖先III (opens new window) Medium 题解
1672.最富有客户的资产总量 (opens new window) Easy 题解
1673.找出最具竞争力的子序列 (opens new window) Medium 题解
1674.使数组互补的最少操作次数 (opens new window) Medium 题解
1675.数组的最小偏移量 (opens new window) Hard 题解
1651.HopperCompanyQueriesIII (opens new window) Hard 题解
1660.纠正二叉树 (opens new window) Medium 题解
1678.设计Goal解析器 (opens new window) Easy 题解
1679.K和数对的最大数目 (opens new window) Medium 题解
1681.最小不兼容性 (opens new window) Hard 题解
1680.连接连续二进制数字 (opens new window) Medium 题解
1661.AverageTimeofProcessperMachine (opens new window) Easy 题解
1700.无法吃午餐的学生数量 (opens new window) Easy 题解
1701.平均等待时间 (opens new window) Medium 题解
1702.修改后的最大二进制字符串 (opens new window) Medium 题解
1703.得到连续K个1的最少相邻交换次数 (opens new window) Hard 题解
1688.比赛中的配对次数 (opens new window) Easy 题解
1689.十-二进制数的最少数目 (opens new window) Medium 题解
1690.石子游戏VII (opens new window) Medium 题解
1714.SumOfSpecialEvenly-SpacedElementsInArray (opens new window) Hard 题解
1666.改变二叉树的根节点 (opens new window) Medium 题解
1667.修复表中的名字 (opens new window) Easy 题解
1694.重新格式化电话号码 (opens new window) Easy 题解
1695.删除子数组的最大得分 (opens new window) Medium 题解
1696.跳跃游戏VI (opens new window) Medium 题解
1697.检查边长度限制的路径是否存在 (opens new window) Hard 题解
1676.二叉树的最近公共祖先IV (opens new window) Medium 题解
5633.计算力扣银行的钱 (opens new window) Easy 题解
5634.删除子字符串的最大得分 (opens new window) Medium 题解
5635.构建字典序最大的可行序列 (opens new window) Medium 题解
5636.重构一棵树的方案数 (opens new window) Hard 题解
1677.Product'sWorthOverInvoices (opens new window) Easy 题解
1682.最长回文子序列II (opens new window) Medium 题解
1704.判断字符串的两半是否相似 (opens new window) Easy 题解
1705.吃苹果的最大数目 (opens new window) Medium 题解
5639.完成所有工作的最短时间 (opens new window) Hard 题解
1707.与数组中元素的最大异或值 (opens new window) Hard 题解
1683.InvalidTweets (opens new window) Easy 题解
1692.计算分配糖果的不同方式 (opens new window) Hard 题解
1710.卡车上的最大单元数 (opens new window) Easy 题解
1711.大餐计数 (opens new window) Medium 题解
1712.将数组分成三个子数组的方案数 (opens new window) Medium 题解
1713.得到子序列的最少操作次数 (opens new window) Hard 题解
1693.每天的领导和合伙人 (opens new window) Easy 题解
1698.字符串的不同子字符串个数 (opens new window) Medium 题解
5649.解码异或后的数组 (opens new window) Easy 题解
5650.执行交换操作后的最小汉明距离 (opens new window) Medium 题解
1699.NumberofCallsBetweenTwoPersons (opens new window) Medium 题解
1708.LargestSubarrayLengthK (opens new window) Easy 题解
1709.BiggestWindowBetweenVisits (opens new window) Medium 题解
LCP02.分式化简 (opens new window) Easy 题解
LCP04.覆盖 (opens new window) Hard 题解
LCP05.发LeetCoin (opens new window) Hard 题解
LCP03.机器人大冒险 (opens new window) Medium 题解
LCP01.猜数字 (opens new window) Easy 题解
面试题01.01.判定字符是否唯一 (opens new window) Easy 题解
面试题01.02.判定是否互为字符重排 (opens new window) Easy 题解
面试题01.03.URL化 (opens new window) Easy 题解
面试题01.06.字符串压缩 (opens new window) Easy 题解
面试题01.09.字符串轮转 (opens new window) Easy 题解
面试题02.01.移除重复节点 (opens new window) Easy 题解
面试题02.06.回文链表 (opens new window) Easy 题解
面试题02.07.链表相交 (opens new window) Easy 题解
面试题02.08.环路检测 (opens new window) Medium 题解
面试题03.02.栈的最小值 (opens new window) Easy 题解
面试题03.04.化栈为队 (opens new window) Easy 题解
面试题04.01.节点间通路 (opens new window) Medium 题解
面试题03.01.三合一 (opens new window) Easy 题解
面试题03.05.栈排序 (opens new window) Medium 题解
面试题04.02.最小高度树 (opens new window) Easy 题解
面试题04.03.特定深度节点链表 (opens new window) Medium 题解
面试题04.04.检查平衡性 (opens new window) Easy 题解
面试题04.05.合法二叉搜索树 (opens new window) Medium 题解
面试题04.06.后继者 (opens new window) Medium 题解
面试题04.08.首个共同祖先 (opens new window) Medium 题解
面试题05.01.插入 (opens new window) Easy 题解
面试题05.06.整数转换 (opens new window) Easy 题解
面试题05.07.配对交换 (opens new window) Easy 题解
面试题05.04.下一个数 (opens new window) Medium 题解
面试题01.04.回文排列 (opens new window) Easy 题解
面试题01.07.旋转矩阵 (opens new window) Medium 题解
面试题01.08.零矩阵 (opens new window) Medium 题解
面试题02.03.删除中间节点 (opens new window) Easy 题解
面试题02.05.链表求和 (opens new window) Medium 题解
面试题03.03.堆盘子 (opens new window) Medium 题解
面试题05.08.绘制直线 (opens new window) Medium 题解
面试题08.01.三步问题 (opens new window) Easy 题解
面试题08.04.幂集 (opens new window) Medium 题解
面试题08.05.递归乘法 (opens new window) Medium 题解
面试题08.09.括号 (opens new window) Medium 题解
面试题08.10.颜色填充 (opens new window) Easy 题解
面试题08.13.堆箱子 (opens new window) Hard 题解
面试题05.02.二进制数转字符串 (opens new window) Medium 题解
面试题03.06.动物收容所 (opens new window) Easy 题解
面试题04.10.检查子树 (opens new window) Medium 题解
面试题05.03.翻转数位 (opens new window) Easy 题解
面试题08.11.硬币 (opens new window) Medium 题解
面试题10.03.搜索旋转数组 (opens new window) Medium 题解
面试题08.12.八皇后 (opens new window) Hard 题解
面试题08.03.魔术索引 (opens new window) Easy 题解
面试题08.07.无重复字符串的排列组合 (opens new window) Medium 题解
面试题10.05.稀疏数组搜索 (opens new window) Easy 题解
面试题16.01.交换数字 (opens new window) Medium 题解
面试题16.02.单词频率 (opens new window) Medium 题解
面试题16.03.交点 (opens new window) Hard 题解
面试题16.04.井字游戏 (opens new window) Medium 题解
面试题16.06.最小差 (opens new window) Medium 题解
剑指Offer09.用两个栈实现队列 (opens new window) Easy 题解
剑指Offer10-I.斐波那契数列 (opens new window) Easy 题解
剑指Offer03.数组中重复的数字 (opens new window) Easy 题解
剑指Offer04.二维数组中的查找 (opens new window) Medium 题解
剑指Offer10-II.青蛙跳台阶问题 (opens new window) Easy 题解
剑指Offer11.旋转数组的最小数字 (opens new window) Easy 题解
剑指Offer12.矩阵中的路径 (opens new window) Medium 题解
剑指Offer05.替换空格 (opens new window) Easy 题解
剑指Offer13.机器人的运动范围 (opens new window) Medium 题解
剑指Offer06.从尾到头打印链表 (opens new window) Easy 题解
剑指Offer07.重建二叉树 (opens new window) Medium 题解
剑指Offer14-I.剪绳子 (opens new window) Medium 题解
剑指Offer14-II.剪绳子II (opens new window) Medium 题解
剑指Offer25.合并两个排序的链表 (opens new window) Easy 题解
剑指Offer26.树的子结构 (opens new window) Medium 题解
剑指Offer27.二叉树的镜像 (opens new window) Easy 题解
剑指Offer28.对称的二叉树 (opens new window) Easy 题解
剑指Offer20.表示数值的字符串 (opens new window) Medium 题解
剑指Offer21.调整数组顺序使奇数位于偶数前面 (opens new window) Easy 题解
剑指Offer15.二进制中1的个数 (opens new window) Easy 题解
剑指Offer29.顺时针打印矩阵 (opens new window) Easy 题解
剑指Offer22.链表中倒数第k个节点 (opens new window) Easy 题解
剑指Offer16.数值的整数次方 (opens new window) Medium 题解
剑指Offer17.打印从1到最大的n位数 (opens new window) Easy 题解
剑指Offer19.正则表达式匹配 (opens new window) Hard 题解
剑指Offer24.反转链表 (opens new window) Easy 题解
剑指Offer18.删除链表的节点 (opens new window) Easy 题解
剑指Offer35.复杂链表的复制 (opens new window) Medium 题解
剑指Offer40.最小的k个数 (opens new window) Easy 题解
剑指Offer30.包含min函数的栈 (opens new window) Easy 题解
剑指Offer41.数据流中的中位数 (opens new window) Hard 题解
剑指Offer42.连续子数组的最大和 (opens new window) Easy 题解
剑指Offer36.二叉搜索树与双向链表 (opens new window) Medium 题解
剑指Offer31.栈的压入、弹出序列 (opens new window) Medium 题解
剑指Offer37.序列化二叉树 (opens new window) Hard 题解
剑指Offer38.字符串的排列 (opens new window) Medium 题解
剑指Offer43.1~n整数中1出现的次数 (opens new window) Hard 题解
剑指Offer39.数组中出现次数超过一半的数字 (opens new window) Easy 题解
剑指Offer32-I.从上到下打印二叉树 (opens new window) Medium 题解
剑指Offer32-II.从上到下打印二叉树II (opens new window) Easy 题解
剑指Offer44.数字序列中某一位的数字 (opens new window) Medium 题解
剑指Offer32-III.从上到下打印二叉树III (opens new window) Medium 题解
剑指Offer33.二叉搜索树的后序遍历序列 (opens new window) Medium 题解
剑指Offer50.第一个只出现一次的字符 (opens new window) Easy 题解
剑指Offer34.二叉树中和为某一值的路径 (opens new window) Medium 题解
剑指Offer51.数组中的逆序对 (opens new window) Hard 题解
剑指Offer55-I.二叉树的深度 (opens new window) Easy 题解
剑指Offer56-I.数组中数字出现的次数 (opens new window) Medium 题解
剑指Offer56-II.数组中数字出现的次数II (opens new window) Medium 题解
剑指Offer57.和为s的两个数字 (opens new window) Easy 题解
剑指Offer45.把数组排成最小的数 (opens new window) Medium 题解
剑指Offer57-II.和为s的连续正数序列 (opens new window) Easy 题解
剑指Offer46.把数字翻译成字符串 (opens new window) Medium 题解
剑指Offer52.两个链表的第一个公共节点 (opens new window) Easy 题解
剑指Offer47.礼物的最大价值 (opens new window) Medium 题解
剑指Offer58-I.翻转单词顺序 (opens new window) Easy 题解
剑指Offer53-I.在排序数组中查找数字I (opens new window) Easy 题解
剑指Offer58-II.左旋转字符串 (opens new window) Easy 题解
剑指Offer53-II.0~n-1中缺失的数字 (opens new window) Easy 题解
剑指Offer48.最长不含重复字符的子字符串 (opens new window) Medium 题解
剑指Offer54.二叉搜索树的第k大节点 (opens new window) Easy 题解
剑指Offer49.丑数 (opens new window) Medium 题解
剑指Offer65.不用加减乘除做加法 (opens new window) Easy 题解
剑指Offer59-I.滑动窗口的最大值 (opens new window) Easy 题解
剑指Offer59-II.队列的最大值 (opens new window) Medium 题解
剑指Offer66.构建乘积数组 (opens new window) Medium 题解
剑指Offer60.n个骰子的点数 (opens new window) Medium 题解
剑指Offer67.把字符串转换成整数 (opens new window) Medium 题解
剑指Offer61.扑克牌中的顺子 (opens new window) Easy 题解
剑指Offer55-II.平衡二叉树 (opens new window) Easy 题解
剑指Offer62.圆圈中最后剩下的数字 (opens new window) Easy 题解
剑指Offer63.股票的最大利润 (opens new window) Medium 题解
剑指Offer64.求1+2+…+n (opens new window) Medium 题解
剑指Offer68-I.二叉搜索树的最近公共祖先 (opens new window) Easy 题解
剑指Offer68-II.二叉树的最近公共祖先 (opens new window) Easy 题解
面试题08.08.有重复字符串的排列组合 (opens new window) Medium 题解
面试题16.07.最大数值 (opens new window) Easy 题解
面试题16.09.运算 (opens new window) Medium 题解
面试题16.10.生存人数 (opens new window) Medium 题解
面试题16.11.跳水板 (opens new window) Easy 题解
面试题16.13.平分正方形 (opens new window) Medium 题解
面试题16.14.最佳直线 (opens new window) Medium 题解
面试题16.15.珠玑妙算 (opens new window) Easy 题解
面试题16.16.部分排序 (opens new window) Medium 题解
面试题16.17.连续数列 (opens new window) Easy 题解
面试题16.18.模式匹配 (opens new window) Medium 题解
面试题16.19.水域大小 (opens new window) Medium 题解
面试题01.05.一次编辑 (opens new window) Medium 题解
面试题02.02.返回倒数第k个节点 (opens new window) Easy 题解
面试题02.04.分割链表 (opens new window) Medium 题解
面试题04.12.求和路径 (opens new window) Medium 题解
面试题04.09.二叉搜索树序列 (opens new window) Hard 题解
面试题08.02.迷路的机器人 (opens new window) Medium 题解
面试题10.01.合并排序的数组 (opens new window) Easy 题解
面试题10.11.峰与谷 (opens new window) Medium 题解
面试题08.06.汉诺塔问题 (opens new window) Easy 题解
面试题10.09.排序矩阵查找 (opens new window) Medium 题解
面试题16.05.阶乘尾数 (opens new window) Easy 题解
面试题16.08.整数的英语表示 (opens new window) Hard 题解
面试题17.12.BiNode (opens new window) Easy 题解
面试题17.13.恢复空格 (opens new window) Medium 题解
面试题17.14.最小K个数 (opens new window) Medium 题解
面试题17.15.最长单词 (opens new window) Medium 题解
面试题17.16.按摩师 (opens new window) Easy 题解
面试题17.17.多次搜索 (opens new window) Medium 题解
面试题17.01.不用加号的加法 (opens new window) Easy 题解
面试题16.25.LRU缓存 (opens new window) Medium 题解
面试题16.26.计算器 (opens new window) Medium 题解
面试题17.20.连续中值 (opens new window) Hard 题解
面试题17.21.直方图的水量 (opens new window) Hard 题解
面试题17.22.单词转换 (opens new window) Medium 题解
面试题08.14.布尔运算 (opens new window) Medium 题解
面试题17.04.消失的数字 (opens new window) Easy 题解
面试题17.05.字母与数字 (opens new window) Medium 题解
面试题17.06.2出现的次数 (opens new window) Hard 题解
面试题17.07.婴儿名字 (opens new window) Medium 题解
面试题17.08.马戏团人塔 (opens new window) Medium 题解
面试题17.09.第k个数 (opens new window) Medium 题解
面试题17.10.主要元素 (opens new window) Easy 题解
面试题17.11.单词距离 (opens new window) Medium 题解
面试题10.02.变位词组 (opens new window) Medium 题解
面试题10.10.数字流的秩 (opens new window) Medium 题解
面试题16.24.数对和 (opens new window) Medium 题解
面试题17.18.最短超串 (opens new window) Medium 题解
面试题17.19.消失的两个数字 (opens new window) Hard 题解
面试题17.23.最大黑方阵 (opens new window) Medium 题解
面试题17.24.最大子矩阵 (opens new window) Hard 题解
面试题16.20.T9键盘 (opens new window) Medium 题解
面试题16.21.交换和 (opens new window) Medium 题解
面试题17.25.单词矩阵 (opens new window) Hard 题解
面试题16.22.兰顿蚂蚁 (opens new window) Medium 题解
面试题17.26.稀疏相似度 (opens new window) Hard 题解
LCP06.拿硬币 (opens new window) Easy 题解
LCP08.剧情触发时间 (opens new window) Medium 题解
LCP23.魔术排列 (opens new window) Medium 题解
LCP14.切分数组 (opens new window) Hard 题解
LCP10.二叉树任务调度 (opens new window) Hard 题解
LCP07.传递信息 (opens new window) Easy 题解
LCP16.游乐园的游览计划 (opens new window) Hard 题解
LCP11.期望个数统计 (opens new window) Easy 题解
LCP12.小张刷题计划 (opens new window) Medium 题解
LCP15.游乐园的迷宫 (opens new window) Hard 题解
LCP09.最小跳跃次数 (opens new window) Hard 题解
LCP13.寻宝 (opens new window) Hard 题解
LCP19.秋叶收藏集 (opens new window) Medium 题解
LCP24.数字游戏 (opens new window) Hard 题解
LCP26.导航装置 (opens new window) Hard 题解
LCP20.快速公交 (opens new window) Hard 题解
LCP21.追逐游戏 (opens new window) Hard 题解
LCP25.古董键盘 (opens new window) Hard 题解
LCP17.速算机器人 (opens new window) Easy 题解
LCP22.黑白方格画 (opens new window) Easy 题解
LCP18.早餐组合 (opens new window) Easy 题解
LCP27.黑盒光线反射 (opens new window) Hard 题解