2 |
两数相加 |
add-two-numbers |
medium |
json/js/py |
06 |
从尾到头打印链表 |
cong-wei-dao-tou-da-yin-lian-biao-lcof |
easy |
json/py |
11 |
盛最多水的容器 |
container-with-most-water |
medium |
ts/json |
15 |
三数之和 |
3sum |
medium |
ts/json |
16 |
最接近的三数之和 |
3sum-closest |
medium |
ts/json |
17 |
打印从1到最大的n位数 |
da-yin-cong-1dao-zui-da-de-nwei-shu-lcof |
easy |
json/py |
18 |
四数之和 |
4sum |
medium |
ts/json |
20 |
表示数值的字符串 |
biao-shi-shu-zhi-de-zi-fu-chuan-lcof |
medium |
json/py |
21 |
调整数组顺序使奇数位于偶数前面 |
diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof |
easy |
json/py |
27 |
二叉树的镜像 |
er-cha-shu-de-jing-xiang-lcof |
easy |
json/py |
28 |
采购方案 |
4xy4Wx |
easy |
ts/json/py |
28 |
对称的二叉树 |
dui-cheng-de-er-cha-shu-lcof |
easy |
json/py |
38 |
报数 |
count-and-say |
easy |
json/js/py |
49 |
丑数 |
chou-shu-lcof |
medium |
json/py |
50 |
第一个只出现一次的字符 |
di-yi-ge-zhi-chu-xian-yi-ci-de-zi-fu-lcof |
easy |
json/py |
61 |
扑克牌中的顺子 |
bu-ke-pai-zhong-de-shun-zi-lcof |
easy |
json/py |
65 |
不用加减乘除做加法 |
bu-yong-jia-jian-cheng-chu-zuo-jia-fa-lcof |
easy |
json/py |
67 |
二进制求和 |
add-binary |
easy |
json/py |
70 |
爬楼梯 |
climbing-stairs |
easy |
json/js/py |
94 |
二叉树的中序遍历 |
binary-tree-inorder-traversal |
medium |
json/py |
108 |
将有序数组转换为二叉搜索树 |
convert-sorted-array-to-binary-search-tree |
easy |
json/py |
121 |
买卖股票的最佳时机 |
best-time-to-buy-and-sell-stock |
easy |
ts/json/py |
122 |
买卖股票的最佳时机 II |
best-time-to-buy-and-sell-stock-ii |
easy |
json/js/py |
133 |
克隆图 |
clone-graph |
medium |
json/py |
145 |
二叉树的后序遍历 |
binary-tree-postorder-traversal |
medium |
json/py |
175 |
组合两个表 |
combine-two-tables |
easy |
json/sql |
182 |
查找重复的电子邮箱 |
duplicate-emails |
easy |
json/sql |
183 |
从不订购的客户 |
customers-who-never-order |
easy |
json/sql |
196 |
删除重复的电子邮箱 |
delete-duplicate-emails |
easy |
json/sql |
204 |
计数质数 |
count-primes |
easy |
json/py |
217 |
存在重复元素 |
contains-duplicate |
easy |
json/js/py |
237 |
删除链表中的节点 |
delete-node-in-a-linked-list |
easy |
json/js/py |
257 |
二叉树的所有路径 |
binary-tree-paths |
easy |
json/py |
258 |
各位相加 |
add-digits |
easy |
ts/json |
322 |
Coin Change |
coin-change |
Medium |
json/py/ts |
498 |
对角线遍历 |
diagonal-traverse |
medium |
json/py |
518 |
零钱兑换 II |
coin-change-2 |
medium |
ts/json |
561 |
数组拆分 I |
array-partition-i |
easy |
json/py |
563 |
二叉树的坡度 |
binary-tree-tilt |
easy |
json/js/py |
622 |
设计循环队列 |
design-circular-queue |
medium |
json/py |
637 |
二叉树的层平均值 |
average-of-levels-in-binary-tree |
easy |
json/py |
679 |
24 点游戏 |
24-game |
hard |
json/py |
682 |
棒球比赛 |
baseball-game |
easy |
json/js/py |
693 |
交替位二进制数 |
binary-number-with-alternating-bits |
easy |
json/py |
859 |
亲密字符串 |
buddy-strings |
easy |
json/js/py |
868 |
二进制间距 |
binary-gap |
easy |
json/js/py |
989 |
数组形式的整数加法 |
add-to-array-form-of-integer |
easy |
json/js/py |
32-II |
从上到下打印二叉树 II |
cong-shang-dao-xia-da-yin-er-cha-shu-ii-lcof |
easy |
json/py |
32-III |
从上到下打印二叉树 III |
cong-shang-dao-xia-da-yin-er-cha-shu-iii-lcof |
medium |
json/py |
32-I |
从上到下打印二叉树 |
cong-shang-dao-xia-da-yin-er-cha-shu-lcof |
medium |
json/py |
739 |
每日温度 |
daily-temperatures |
medium |
json/py |
993 |
二叉树的堂兄弟节点 |
cousins-in-binary-tree |
easy |
json/js/py |
1103 |
分糖果 II |
distribute-candies-to-people |
easy |
json/py |
1108 |
IP 地址无效化 |
defanging-an-ip-address |
easy |
json/py |
2620 |
计数器 |
counter |
easy |
ts/json |
2627 |
函数防抖 |
debounce |
medium |
ts/json |
55-I |
二叉树的深度 |
er-cha-shu-de-shen-du-lcof |
easy |
json/ts/py |
68-II |
二叉树的最近公共祖先 |
er-cha-shu-de-zui-jin-gong-gong-zu-xian-lcof |
easy |
json/py |
04 |
二维数组中的查找 |
er-wei-shu-zu-zhong-de-cha-zhao-lcof |
medium |
md/json/py |
5 |
最长回文子串 |
longest-palindromic-substring |
medium |
json/py |
12 |
矩阵中的路径 |
ju-zhen-zhong-de-lu-jing-lcof |
medium |
json/py |
14 |
最长公共前缀 |
longest-common-prefix |
easy |
json/js/py |
15 |
二进制中1的个数 |
er-jin-zhi-zhong-1de-ge-shu-lcof |
easy |
json/py |
17 |
电话号码的字母组合 |
letter-combinations-of-a-phone-number |
medium |
json/py |
22 |
括号生成 |
generate-parentheses |
medium |
json/py |
22 |
链表中倒数第k个节点 |
lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof |
easy |
json/py |
25 |
合并两个排序的链表 |
he-bing-liang-ge-pai-xu-de-lian-biao-lcof |
easy |
json/py |
33 |
二叉搜索树的后序遍历序列 |
er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof |
medium |
json/py |
35 |
复杂链表的复制 |
fu-za-lian-biao-de-fu-zhi-lcof |
medium |
json/py |
36 |
二叉搜索树与双向链表 |
er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof |
medium |
json/py |
54 |
二叉搜索树的第k大节点 |
er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof |
easy |
json/py |
68-I |
二叉搜索树的最近公共祖先 |
er-cha-sou-suo-shu-de-zui-jin-gong-gong-zu-xian-lcof |
easy |
json/py |
13 |
机器人的运动范围 |
ji-qi-ren-de-yun-dong-fan-wei-lcof |
medium |
json/py |
24 |
反转链表 |
fan-zhuan-lian-biao-lcof |
easy |
json/py |
57 |
和为s的两个数字 |
he-wei-sde-liang-ge-shu-zi-lcof |
easy |
json/py |
150 |
逆波兰表达式求值 |
evaluate-reverse-polish-notation |
medium |
json/py |
171 |
Excel表列序号 |
excel-sheet-column-number |
easy |
json/py |
172 |
阶乘后的零 |
factorial-trailing-zeroes |
easy |
/json/py |
58-I |
翻转单词顺序 |
fan-zhuan-dan-ci-shun-xu-lcof |
easy |
json/py |
10-I |
斐波那契数列 |
fei-bo-na-qi-shu-lie-lcof |
easy |
json/py |
3 |
无重复字符的最长子串 |
longest-substring-without-repeating-characters |
medium |
ts/json/py |
12 |
整数转罗马数字 |
integer-to-roman |
medium |
ts/json |
28 |
实现strStr() |
implement-strstr |
easy |
json/js/py |
42 |
连续子数组的最大和 |
lian-xu-zi-shu-zu-de-zui-da-he-lcof |
easy |
json/py |
52 |
两个链表的第一个公共节点 |
liang-ge-lian-biao-de-di-yi-ge-gong-gong-jie-dian-lcof |
easy |
json/py |
141 |
环形链表 |
linked-list-cycle |
easy |
json/js/py |
160 |
相交链表 |
intersection-of-two-linked-lists |
easy |
json/ts/py |
198 |
打家劫舍 |
house-robber |
easy |
json/py |
202 |
快乐数 |
happy-number |
easy |
json/py |
215 |
数组中的第K个最大元素 |
kth-largest-element-in-an-array |
medium |
json/ts |
225 |
用队列实现栈 |
implement-stack-using-queues |
easy |
json/py |
230 |
二叉搜索树中第K小的元素 |
kth-smallest-element-in-a-bst |
medium |
json/py |
232 |
用栈实现队列 |
implement-queue-using-stacks |
easy |
json/py |
289 |
生命游戏 |
game-of-life |
medium |
json/py |
350 |
两个数组的交集 II |
intersection-of-two-arrays-ii |
easy |
json/js/py |
387 |
字符串中的第一个唯一字符 |
first-unique-character-in-a-string |
easy |
json/js/ts/py |
412 |
Fizz Buzz |
fizz-buzz |
easy |
json/py |
509 |
斐波那契数 |
fibonacci-number |
easy |
json/py |
687 |
最长同值路径 |
longest-univalue-path |
easy |
json/js/py |
724 |
寻找数组的中心索引 |
find-pivot-index |
easy |
json/py |
733 |
图像渲染 |
flood-fill |
easy |
json/py |
747 |
至少是其他数字两倍的最大数 |
largest-number-at-least-twice-of-others |
easy |
json/py |
771 |
宝石与石头 |
jewels-and-stones |
easy |
json/js/py |
893 |
特殊等价字符串组 |
groups-of-special-equivalent-strings |
easy |
json/js/py |
57-II |
和为s的连续正数序列 |
he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof |
easy |
json/py |
59-I |
滑动窗口的最大值 |
hua-dong-chuang-kou-de-zui-da-zhi-lcof |
hard |
json/py |
897 |
递增顺序查找树 |
increasing-order-search-tree |
easy |
json/py |
14-II |
剪绳子 II |
jian-sheng-zi-ii-lcof |
medium |
json/py |
14-I |
剪绳子 |
jian-sheng-zi-lcof |
medium |
json/py |
7 |
整数反转 |
reverse-integer |
easy |
json/js/py |
9 |
回文数 |
palindrome-number |
easy |
json/js/py/ts |
13 |
罗马数字转整数 |
roman-to-integer |
easy |
json/js/py |
19 |
删除链表的倒数第N个节点 |
remove-nth-node-from-end-of-list |
medium |
json/js/py |
21 |
合并两个有序链表 |
merge-two-sorted-lists |
easy |
json/js/py |
25 |
K 个一组翻转链表 |
reverse-nodes-in-k-group |
hard |
ts/json |
26 |
删除排序数组中的重复项 |
remove-duplicates-from-sorted-array |
easy |
json/js/py |
27 |
移除元素 |
remove-element |
easy |
json/js/py |
46 |
全排列 |
permutations |
medium |
ts/json/py |
50 |
Pow(x |
powx-n |
medium |
json/py |
53 |
Maximum Subarray |
maximum-subarray |
Medium |
ts/json/py |
66 |
加一 |
plus-one |
easy |
json/js/py |
83 |
删除排序链表中的重复元素 |
remove-duplicates-from-sorted-list |
easy |
json/js/py |
88 |
合并两个有序数组 |
merge-sorted-array |
easy |
json/py/ts |
93 |
复原 IP 地址 |
restore-ip-addresses |
medium |
ts/json |
104 |
二叉树的最大深度 |
maximum-depth-of-binary-tree |
easy |
json/js/py |
118 |
杨辉三角 |
pascals-triangle |
easy |
json/js/py |
119 |
杨辉三角 II |
pascals-triangle-ii |
easy |
json/py |
131 |
分割回文串 |
palindrome-partitioning |
medium |
json/py/js |
146 |
LRU 缓存 |
lru-cache |
medium |
ts/json |
151 |
翻转字符串里的单词 |
reverse-words-in-a-string |
medium |
json/py |
155 |
最小栈 |
min-stack |
easy |
json/py |
169 |
求众数 |
majority-element |
easy |
json/py |
189 |
旋转数组 |
rotate-array |
easy |
json/js/py |
190 |
Reverse Bits |
reverse-bits |
Easy |
md/ts/json/py |
191 |
位1的个数 |
number-of-1-bits |
easy |
json/py |
197 |
上升的温度 |
rising-temperature |
easy |
json/sql |
200 |
岛屿数量 |
number-of-islands |
medium |
md/ts/json/py |
206 |
反转链表 |
reverse-linked-list |
easy |
json/js/py/ts |
209 |
长度最小的子数组 |
minimum-size-subarray-sum |
medium |
json/py |
234 |
回文链表 |
palindrome-linked-list |
easy |
json/py |
235 |
二叉搜索树的最近公共祖先 |
lowest-common-ancestor-of-a-binary-search-tree |
easy |
json/py |
238 |
除自身以外数组的乘积 |
product-of-array-except-self |
medium |
json/py |
268 |
缺失数字 |
missing-number |
easy |
json/py |
279 |
完全平方数 |
perfect-squares |
medium |
json/py |
283 |
移动零 |
move-zeroes |
easy |
json/js/py |
292 |
Nim游戏 |
nim-game |
easy |
json/js/py |
326 |
3的幂 |
power-of-three |
easy |
json/py |
344 |
反转字符串 |
reverse-string |
easy |
json/js/py |
485 |
最大连续1的个数 |
max-consecutive-ones |
easy |
json/py |
496 |
下一个更大元素 I |
next-greater-element-i |
easy |
json/py |
557 |
反转字符串中的单词 III |
reverse-words-in-a-string-iii |
easy |
json/js/py |
620 |
有趣的电影 |
not-boring-movies |
easy |
json/sql |
695 |
岛屿的最大面积 |
max-area-of-island |
Medium |
ts/json |
752 |
打开转盘锁 |
open-the-lock |
medium |
json/py |
830 |
较大分组的位置 |
positions-of-large-groups |
easy |
json/ts |
876 |
链表的中间结点 |
middle-of-the-linked-list |
easy |
json/js/py |
883 |
三维形体投影面积 |
projection-area-of-3d-shapes |
easy |
json/js/py |
886 |
可能的二分法 |
possible-bipartition |
medium |
json/py |
896 |
单调数列 |
monotonic-array |
easy |
json/js/py |
970 |
强整数 |
powerful-integers |
easy |
json/js/py |
1021 |
删除最外层的括号 |
remove-outermost-parentheses |
easy |
json/py |
1668 |
最大重复子字符串 |
maximum-repeating-substring |
easy |
json/ts |
55-II |
平衡二叉树 |
ping-heng-er-cha-shu-lcof |
easy |
json/py |
10-II |
青蛙跳台阶问题 |
qing-wa-tiao-tai-jie-wen-ti-lcof |
easy |
md/json/py |
53-II |
0~n-1中缺失的数字 |
que-shi-de-shu-zi-lcof |
easy |
json/py |
1 |
两数之和 |
two-sum |
easy |
ts/json/cpp/py |
03 |
数组中重复的数字 |
shu-zu-zhong-zhong-fu-de-shu-zi-lcof |
easy |
json/py |
05 |
替换空格 |
ti-huan-kong-ge-lcof |
easy |
json/py |
6 |
Z 字形变换 |
zigzag-conversion |
medium |
json/js/py |
07 |
重建二叉树 |
zhong-jian-er-cha-shu-lcof |
medium |
ts/json/py |
8 |
字符串转换整数 (atoi) |
string-to-integer-atoi |
medium |
json/js/py |
09 |
用两个栈实现队列 |
yong-liang-ge-zhan-shi-xian-dui-lie-lcof |
easy |
json/py |
11 |
旋转数组的最小数字 |
xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof |
easy |
json/py |
16 |
数值的整数次方 |
shu-zhi-de-zheng-shu-ci-fang-lcof |
medium |
json/py |
18 |
删除链表的节点 |
shan-chu-lian-biao-de-jie-dian-lcof |
easy |
json/py |
19 |
正则表达式匹配 |
zheng-ze-biao-da-shi-pi-pei-lcof |
hard |
json/py |
20 |
有效的括号 |
valid-parentheses |
easy |
json/js/py |
24 |
两两交换链表中的节点 |
swap-nodes-in-pairs |
medium |
json/py |
26 |
树的子结构 |
shu-de-zi-jie-gou-lcof |
medium |
json/py |
29 |
顺时针打印矩阵 |
shun-shi-zhen-da-yin-ju-zhen-lcof |
easy |
json/py |
31 |
栈的压入、弹出序列 |
zhan-de-ya-ru-dan-chu-xu-lie-lcof |
medium |
json/py |
36 |
有效的数独 |
valid-sudoku |
medium |
json/js/py |
37 |
序列化二叉树 |
xu-lie-hua-er-cha-shu-lcof |
hard |
json/py |
38 |
字符串的排列 |
zi-fu-chuan-de-pai-lie-lcof |
medium |
json/py |
39 |
数组中出现次数超过一半的数字 |
shu-zu-zhong-chu-xian-ci-shu-chao-guo-yi-ban-de-shu-zi-lcof |
easy |
json/py |
40 |
最小的k个数 |
zui-xiao-de-kge-shu-lcof |
easy |
json/py |
42 |
接雨水 |
trapping-rain-water |
hard |
ts/json |
48 |
旋转图像 |
rotate-image |
medium |
json/js/py |
54 |
螺旋矩阵 |
spiral-matrix |
medium |
ts/json/py |
62 |
圆圈中最后剩下的数字 |
yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof |
easy |
json/py |
69 |
x 的平方根 |
sqrtx |
easy |
json/py |
74 |
搜索二维矩阵 |
search-a-2d-matrix |
medium |
json/py |
78 |
子集 |
subsets |
medium |
json/py |
95 |
不同的二叉搜索树 II |
unique-binary-search-trees-ii |
medium |
json/py |
101 |
对称二叉树 |
symmetric-tree |
easy |
json/js/py |
125 |
验证回文串 |
valid-palindrome |
easy |
json/js/py |
136 |
只出现一次的数字 |
single-number |
easy |
json/js/py |
148 |
排序链表 |
sort-list |
medium |
json/py |
167 |
两数之和 II - 输入有序数组 |
two-sum-ii-input-array-is-sorted |
easy |
json/py |
176 |
第二高的薪水 |
second-highest-salary |
easy |
json/sql |
242 |
有效的字母异位词 |
valid-anagram |
easy |
json/js/py |
371 |
两整数之和 |
sum-of-two-integers |
easy |
json/py |
494 |
目标和 |
target-sum |
medium |
md/json/py |
627 |
交换工资 |
swap-salary |
easy |
json/sql |
669 |
修剪二叉搜索树 |
trim-a-binary-search-tree |
easy |
json/js/py |
709 |
转换成小写字母 |
to-lower-case |
easy |
json/js/py |
779 |
第K个语法符号 |
k-th-symbol-in-grammar |
easy |
json/py |
847 |
访问所有节点的最短路径 |
shortest-path-visiting-all-nodes |
hard |
json/py |
851 |
喧闹和富有 |
loud-and-rich |
medium |
json/js/py |
860 |
柠檬水找零 |
lemonade-change |
easy |
json/js/py |
867 |
转置矩阵 |
transpose-matrix |
easy |
json/js/py/ts |
872 |
叶子相似的树 |
leaf-similar-trees |
easy |
json/js/py |
892 |
三维形体的表面积 |
surface-area-of-3d-shapes |
easy |
md/json/js/py |
912 |
排序数组 |
sort-an-array |
medium |
ts/json/py |
985 |
查询后的偶数和 |
sum-of-even-numbers-after-queries |
easy |
json/js/py |
994 |
腐烂的橘子 |
rotting-oranges |
easy |
json/js/py |
56-II |
数组中数字出现的次数 II |
shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-ii-lcof |
medium |
json/py |
56-I |
数组中数字出现的次数 |
shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof |
medium |
json/py |
874 |
模拟行走机器人 |
walking-robot-simulation |
easy |
json/js/py |
884 |
两句话中的不常见单词 |
uncommon-words-from-two-sentences |
easy |
json/js/py |
965 |
单值二叉树 |
univalued-binary-tree |
easy |
json/js/py |
976 |
三角形的最大周长 |
largest-perimeter-triangle |
easy |
json/js/py |
977 |
有序数组的平方 |
squares-of-a-sorted-array |
easy |
json/js/py |
1047 |
删除字符串中的所有相邻重复项 |
remove-all-adjacent-duplicates-in-string |
easy |
json/py |
1143 |
最长公共子序列 |
longest-common-subsequence |
medium |
ts/json/py |
1672 |
最富有客户的资产总量 |
richest-customer-wealth |
easy |
json/ts |
2621 |
睡眠函数 |
sleep |
easy |
ts/json |
2628 |
完全相等的 JSON 字符串 |
json-deep-equal |
medium |
ts/json |
53-I |
在排序数组中查找数字 I |
zai-pai-xu-shu-zu-zhong-cha-zhao-shu-zi-lcof |
easy |
json/py |
58-II |
左旋转字符串 |
zuo-xuan-zhuan-zi-fu-chuan-lcof |
easy |
json/py |