跳至主要內容

目录


目录

已完成 922 道

题号标题题解标签难度力扣
1两数之和[✓]数组 哈希表🟢🀄️open in new window 🔗open in new window
2两数相加[✓]递归 链表 数学🟠🀄️open in new window 🔗open in new window
3无重复字符的最长子串[✓]哈希表 字符串 滑动窗口🟠🀄️open in new window 🔗open in new window
4寻找两个正序数组的中位数[✓]数组 二分查找 分治🔴🀄️open in new window 🔗open in new window
5最长回文子串[✓]双指针 字符串 动态规划🟠🀄️open in new window 🔗open in new window
6Z 字形变换[✓]字符串🟠🀄️open in new window 🔗open in new window
7整数反转[✓]数学🟠🀄️open in new window 🔗open in new window
8字符串转换整数 (atoi)[✓]字符串🟠🀄️open in new window 🔗open in new window
9回文数[✓]数学🟢🀄️open in new window 🔗open in new window
10正则表达式匹配[✓]递归 字符串 动态规划🔴🀄️open in new window 🔗open in new window
11盛最多水的容器[✓]贪心 数组 双指针🟠🀄️open in new window 🔗open in new window
12整数转罗马数字[✓]哈希表 数学 字符串🟠🀄️open in new window 🔗open in new window
13罗马数字转整数[✓]哈希表 数学 字符串🟢🀄️open in new window 🔗open in new window
14最长公共前缀[✓]字典树 字符串🟢🀄️open in new window 🔗open in new window
15三数之和[✓]数组 双指针 排序🟠🀄️open in new window 🔗open in new window
16最接近的三数之和[✓]数组 双指针 排序🟠🀄️open in new window 🔗open in new window
17电话号码的字母组合[✓]哈希表 字符串 回溯🟠🀄️open in new window 🔗open in new window
18四数之和[✓]数组 双指针 排序🟠🀄️open in new window 🔗open in new window
19删除链表的倒数第 N 个结点[✓]链表 双指针🟠🀄️open in new window 🔗open in new window
20有效的括号[✓] 字符串🟢🀄️open in new window 🔗open in new window
21合并两个有序链表[✓]递归 链表🟢🀄️open in new window 🔗open in new window
22括号生成[✓]字符串 动态规划 回溯🟠🀄️open in new window 🔗open in new window
23合并 K 个升序链表[✓]链表 分治 堆(优先队列) 1+🔴🀄️open in new window 🔗open in new window
24两两交换链表中的节点[✓]递归 链表🟠🀄️open in new window 🔗open in new window
25K 个一组翻转链表[✓]递归 链表🔴🀄️open in new window 🔗open in new window
26删除有序数组中的重复项[✓]数组 双指针🟢🀄️open in new window 🔗open in new window
27移除元素[✓]数组 双指针🟢🀄️open in new window 🔗open in new window
28找出字符串中第一个匹配项的下标[✓]双指针 字符串 字符串匹配🟢🀄️open in new window 🔗open in new window
29两数相除[✓]位运算 数学🟠🀄️open in new window 🔗open in new window
30串联所有单词的子串[✓]哈希表 字符串 滑动窗口🔴🀄️open in new window 🔗open in new window
31下一个排列[✓]数组 双指针🟠🀄️open in new window 🔗open in new window
32最长有效括号[✓] 字符串 动态规划🔴🀄️open in new window 🔗open in new window
33搜索旋转排序数组[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
34在排序数组中查找元素的第一个和最后一个位置[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
35搜索插入位置[✓]数组 二分查找🟢🀄️open in new window 🔗open in new window
36有效的数独[✓]数组 哈希表 矩阵🟠🀄️open in new window 🔗open in new window
37解数独[✓]数组 哈希表 回溯 1+🔴🀄️open in new window 🔗open in new window
38外观数列[✓]字符串🟠🀄️open in new window 🔗open in new window
39组合总和[✓]数组 回溯🟠🀄️open in new window 🔗open in new window
40组合总和 II[✓]数组 回溯🟠🀄️open in new window 🔗open in new window
41缺失的第一个正数[✓]数组 哈希表🔴🀄️open in new window 🔗open in new window
42接雨水[✓] 数组 双指针 2+🔴🀄️open in new window 🔗open in new window
43字符串相乘[✓]数学 字符串 模拟🟠🀄️open in new window 🔗open in new window
44通配符匹配[✓]贪心 递归 字符串 1+🔴🀄️open in new window 🔗open in new window
45跳跃游戏 II[✓]贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
46全排列[✓]数组 回溯🟠🀄️open in new window 🔗open in new window
47全排列 II[✓]数组 回溯🟠🀄️open in new window 🔗open in new window
48旋转图像[✓]数组 数学 矩阵🟠🀄️open in new window 🔗open in new window
49字母异位词分组[✓]数组 哈希表 字符串 1+🟠🀄️open in new window 🔗open in new window
50Pow(x, n)[✓]递归 数学🟠🀄️open in new window 🔗open in new window
51N 皇后[✓]数组 回溯🔴🀄️open in new window 🔗open in new window
52N 皇后 II[✓]回溯🔴🀄️open in new window 🔗open in new window
53最大子数组和[✓]数组 分治 动态规划🟠🀄️open in new window 🔗open in new window
54螺旋矩阵[✓]数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
55跳跃游戏[✓]贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
56合并区间[✓]数组 排序🟠🀄️open in new window 🔗open in new window
57插入区间[✓]数组🟠🀄️open in new window 🔗open in new window
58最后一个单词的长度[✓]字符串🟢🀄️open in new window 🔗open in new window
59螺旋矩阵 II[✓]数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
60排列序列[✓]递归 数学🔴🀄️open in new window 🔗open in new window
61旋转链表[✓]链表 双指针🟠🀄️open in new window 🔗open in new window
62不同路径[✓]数学 动态规划 组合数学🟠🀄️open in new window 🔗open in new window
63不同路径 II[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
64最小路径和[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
66加一[✓]数组 数学🟢🀄️open in new window 🔗open in new window
67二进制求和[✓]位运算 数学 字符串 1+🟢🀄️open in new window 🔗open in new window
68文本左右对齐[✓]数组 字符串 模拟🔴🀄️open in new window 🔗open in new window
69x 的平方根[✓]数学 二分查找🟢🀄️open in new window 🔗open in new window
70爬楼梯[✓]记忆化搜索 数学 动态规划🟢🀄️open in new window 🔗open in new window
71简化路径[✓] 字符串🟠🀄️open in new window 🔗open in new window
72编辑距离[✓]字符串 动态规划🟠🀄️open in new window 🔗open in new window
73矩阵置零[✓]数组 哈希表 矩阵🟠🀄️open in new window 🔗open in new window
74搜索二维矩阵[✓]数组 二分查找 矩阵🟠🀄️open in new window 🔗open in new window
75颜色分类[✓]数组 双指针 排序🟠🀄️open in new window 🔗open in new window
76最小覆盖子串[✓]哈希表 字符串 滑动窗口🔴🀄️open in new window 🔗open in new window
77组合[✓]回溯🟠🀄️open in new window 🔗open in new window
78子集[✓]位运算 数组 回溯🟠🀄️open in new window 🔗open in new window
79单词搜索[✓]数组 字符串 回溯 1+🟠🀄️open in new window 🔗open in new window
80删除有序数组中的重复项 II[✓]数组 双指针🟠🀄️open in new window 🔗open in new window
81搜索旋转排序数组 II[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
82删除排序链表中的重复元素 II[✓]链表 双指针🟠🀄️open in new window 🔗open in new window
83删除排序链表中的重复元素[✓]链表🟢🀄️open in new window 🔗open in new window
84柱状图中最大的矩形[✓] 数组 单调栈🔴🀄️open in new window 🔗open in new window
85最大矩形[✓] 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
86分隔链表[✓]链表 双指针🟠🀄️open in new window 🔗open in new window
88合并两个有序数组[✓]数组 双指针 排序🟢🀄️open in new window 🔗open in new window
90子集 II[✓]位运算 数组 回溯🟠🀄️open in new window 🔗open in new window
92反转链表 II[✓]链表🟠🀄️open in new window 🔗open in new window
93复原 IP 地址[✓]字符串 回溯🟠🀄️open in new window 🔗open in new window
94二叉树的中序遍历[✓] 深度优先搜索 1+🟢🀄️open in new window 🔗open in new window
95不同的二叉搜索树 II[✓] 二叉搜索树 动态规划 2+🟠🀄️open in new window 🔗open in new window
96不同的二叉搜索树[✓] 二叉搜索树 数学 2+🟠🀄️open in new window 🔗open in new window
97交错字符串[✓]字符串 动态规划🟠🀄️open in new window 🔗open in new window
98验证二叉搜索树[✓] 深度优先搜索 二叉搜索树 1+🟠🀄️open in new window 🔗open in new window
99恢复二叉搜索树[✓] 深度优先搜索 二叉搜索树 1+🟠🀄️open in new window 🔗open in new window
100相同的树[✓] 深度优先搜索 广度优先搜索 1+🟢🀄️open in new window 🔗open in new window
101对称二叉树[✓] 深度优先搜索 广度优先搜索 1+🟢🀄️open in new window 🔗open in new window
102二叉树的层序遍历[✓] 广度优先搜索 二叉树🟠🀄️open in new window 🔗open in new window
103二叉树的锯齿形层序遍历[✓] 广度优先搜索 二叉树🟠🀄️open in new window 🔗open in new window
104二叉树的最大深度[✓] 深度优先搜索 广度优先搜索 1+🟢🀄️open in new window 🔗open in new window
105从前序与中序遍历序列构造二叉树[✓] 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
106从中序与后序遍历序列构造二叉树[✓] 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
107二叉树的层序遍历 II[✓] 广度优先搜索 二叉树🟠🀄️open in new window 🔗open in new window
108将有序数组转换为二叉搜索树[✓] 二叉搜索树 数组 2+🟢🀄️open in new window 🔗open in new window
109有序链表转换二叉搜索树[✓] 二叉搜索树 链表 2+🟠🀄️open in new window 🔗open in new window
110平衡二叉树[✓] 深度优先搜索 二叉树🟢🀄️open in new window 🔗open in new window
111二叉树的最小深度[✓] 深度优先搜索 广度优先搜索 1+🟢🀄️open in new window 🔗open in new window
112路径总和[✓] 深度优先搜索 广度优先搜索 1+🟢🀄️open in new window 🔗open in new window
113路径总和 II[✓] 深度优先搜索 回溯 1+🟠🀄️open in new window 🔗open in new window
114二叉树展开为链表[✓] 深度优先搜索 2+🟠🀄️open in new window 🔗open in new window
116填充每个节点的下一个右侧节点指针[✓] 深度优先搜索 广度优先搜索 2+🟠🀄️open in new window 🔗open in new window
117填充每个节点的下一个右侧节点指针 II[✓] 深度优先搜索 广度优先搜索 2+🟠🀄️open in new window 🔗open in new window
118杨辉三角[✓]数组 动态规划🟢🀄️open in new window 🔗open in new window
119杨辉三角 II[✓]数组 动态规划🟢🀄️open in new window 🔗open in new window
120三角形最小路径和[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
121买卖股票的最佳时机[✓]数组 动态规划🟢🀄️open in new window 🔗open in new window
122买卖股票的最佳时机 II[✓]贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
123买卖股票的最佳时机 III[✓]数组 动态规划🔴🀄️open in new window 🔗open in new window
124二叉树中的最大路径和[✓] 深度优先搜索 动态规划 1+🔴🀄️open in new window 🔗open in new window
125验证回文串[✓]双指针 字符串🟢🀄️open in new window 🔗open in new window
127单词接龙[✓]广度优先搜索 哈希表 字符串🔴🀄️open in new window 🔗open in new window
128最长连续序列[✓]并查集 数组 哈希表🟠🀄️open in new window 🔗open in new window
129求根节点到叶节点数字之和[✓] 深度优先搜索 二叉树🟠🀄️open in new window 🔗open in new window
130被围绕的区域[✓]深度优先搜索 广度优先搜索 并查集 2+🟠🀄️open in new window 🔗open in new window
131分割回文串[✓]字符串 动态规划 回溯🟠🀄️open in new window 🔗open in new window
132分割回文串 II[✓]字符串 动态规划🔴🀄️open in new window 🔗open in new window
133克隆图[✓]深度优先搜索 广度优先搜索 1+🟠🀄️open in new window 🔗open in new window
134加油站[✓]贪心 数组🟠🀄️open in new window 🔗open in new window
135分发糖果[✓]贪心 数组🔴🀄️open in new window 🔗open in new window
136只出现一次的数字[✓]位运算 数组🟢🀄️open in new window 🔗open in new window
137只出现一次的数字 II[✓]位运算 数组🟠🀄️open in new window 🔗open in new window
138随机链表的复制[✓]哈希表 链表🟠🀄️open in new window 🔗open in new window
139单词拆分[✓]字典树 记忆化搜索 数组 3+🟠🀄️open in new window 🔗open in new window
140单词拆分 II[✓]字典树 记忆化搜索 数组 4+🔴🀄️open in new window 🔗open in new window
141环形链表[✓]哈希表 链表 双指针🟢🀄️open in new window 🔗open in new window
142环形链表 II[✓]哈希表 链表 双指针🟠🀄️open in new window 🔗open in new window
143重排链表[✓] 递归 链表 1+🟠🀄️open in new window 🔗open in new window
144二叉树的前序遍历[✓] 深度优先搜索 1+🟢🀄️open in new window 🔗open in new window
145二叉树的后序遍历[✓] 深度优先搜索 1+🟢🀄️open in new window 🔗open in new window
146LRU 缓存[✓]设计 哈希表 链表 1+🟠🀄️open in new window 🔗open in new window
147对链表进行插入排序[✓]链表 排序🟠🀄️open in new window 🔗open in new window
148排序链表[✓]链表 双指针 分治 2+🟠🀄️open in new window 🔗open in new window
149直线上最多的点数[✓]几何 数组 哈希表 1+🔴🀄️open in new window 🔗open in new window
150逆波兰表达式求值[✓] 数组 数学🟠🀄️open in new window 🔗open in new window
151反转字符串中的单词[✓]双指针 字符串🟠🀄️open in new window 🔗open in new window
152乘积最大子数组[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
153寻找旋转排序数组中的最小值[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
154寻找旋转排序数组中的最小值 II[✓]数组 二分查找🔴🀄️open in new window 🔗open in new window
155最小栈[✓] 设计🟠🀄️open in new window 🔗open in new window
156上下翻转二叉树 🔒[✓] 深度优先搜索 二叉树🟠🀄️open in new window 🔗open in new window
160相交链表[✓]哈希表 链表 双指针🟢🀄️open in new window 🔗open in new window
162寻找峰值[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
167两数之和 II - 输入有序数组[✓]数组 双指针 二分查找🟠🀄️open in new window 🔗open in new window
168Excel 表列名称[✓]数学 字符串🟢🀄️open in new window 🔗open in new window
169多数元素[✓]数组 哈希表 分治 2+🟢🀄️open in new window 🔗open in new window
170两数之和 III - 数据结构设计 🔒[✓]设计 数组 哈希表 2+🟢🀄️open in new window 🔗open in new window
171Excel 表列序号[✓]数学 字符串🟢🀄️open in new window 🔗open in new window
172阶乘后的零[✓]数学🟠🀄️open in new window 🔗open in new window
173二叉搜索树迭代器[✓] 设计 3+🟠🀄️open in new window 🔗open in new window
174地下城游戏[✓]数组 动态规划 矩阵🔴🀄️open in new window 🔗open in new window
175组合两个表[✓]数据库🟢🀄️open in new window 🔗open in new window
177第N高的薪水[✓]数据库🟠🀄️open in new window 🔗open in new window
181超过经理收入的员工[✓]数据库🟢🀄️open in new window 🔗open in new window
182查找重复的电子邮箱[✓]数据库🟢🀄️open in new window 🔗open in new window
183从不订购的客户[✓]数据库🟢🀄️open in new window 🔗open in new window
188买卖股票的最佳时机 IV[✓]数组 动态规划🔴🀄️open in new window 🔗open in new window
189轮转数组[✓]数组 数学 双指针🟠🀄️open in new window 🔗open in new window
190颠倒二进制位[✓]位运算 分治🟢🀄️open in new window 🔗open in new window
191位1的个数[✓]位运算 分治🟢🀄️open in new window 🔗open in new window
193有效电话号码[✓]Shell🟢🀄️open in new window 🔗open in new window
198打家劫舍[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
199二叉树的右视图[✓] 深度优先搜索 广度优先搜索 1+🟠🀄️open in new window 🔗open in new window
200岛屿数量[✓]深度优先搜索 广度优先搜索 并查集 2+🟠🀄️open in new window 🔗open in new window
201数字范围按位与[✓]位运算🟠🀄️open in new window 🔗open in new window
202快乐数[✓]哈希表 数学 双指针🟢🀄️open in new window 🔗open in new window
203移除链表元素[✓]递归 链表🟢🀄️open in new window 🔗open in new window
205同构字符串[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
206反转链表[✓]递归 链表🟢🀄️open in new window 🔗open in new window
207课程表[✓]深度优先搜索 广度优先搜索 1+🟠🀄️open in new window 🔗open in new window
208实现 Trie (前缀树)[✓]设计 字典树 哈希表 1+🟠🀄️open in new window 🔗open in new window
209长度最小的子数组[✓]数组 二分查找 前缀和 1+🟠🀄️open in new window 🔗open in new window
210课程表 II[✓]深度优先搜索 广度优先搜索 1+🟠🀄️open in new window 🔗open in new window
211添加与搜索单词 - 数据结构设计[✓]深度优先搜索 设计 字典树 1+🟠🀄️open in new window 🔗open in new window
212单词搜索 II[✓]字典树 数组 字符串 2+🔴🀄️open in new window 🔗open in new window
215数组中的第K个最大元素[✓]数组 分治 快速选择 2+🟠🀄️open in new window 🔗open in new window
216组合总和 III[✓]数组 回溯🟠🀄️open in new window 🔗open in new window
217存在重复元素[✓]数组 哈希表 排序🟢🀄️open in new window 🔗open in new window
219存在重复元素 II[✓]数组 哈希表 滑动窗口🟢🀄️open in new window 🔗open in new window
221最大正方形[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
222完全二叉树的节点个数[✓]位运算 二分查找 1+🟢🀄️open in new window 🔗open in new window
224基本计算器[✓] 递归 数学 1+🔴🀄️open in new window 🔗open in new window
225用队列实现栈[✓] 设计 队列🟢🀄️open in new window 🔗open in new window
226翻转二叉树[✓] 深度优先搜索 广度优先搜索 1+🟢🀄️open in new window 🔗open in new window
227基本计算器 II[✓] 数学 字符串🟠🀄️open in new window 🔗open in new window
228汇总区间[✓]数组🟢🀄️open in new window 🔗open in new window
230二叉搜索树中第 K 小的元素[✓] 深度优先搜索 二叉搜索树 1+🟠🀄️open in new window 🔗open in new window
2312 的幂[✓]位运算 递归 数学🟢🀄️open in new window 🔗open in new window
232用栈实现队列[✓] 设计 队列🟢🀄️open in new window 🔗open in new window
233数字 1 的个数[✓]递归 数学 动态规划🔴🀄️open in new window 🔗open in new window
234回文链表[✓] 递归 链表 1+🟢🀄️open in new window 🔗open in new window
235二叉搜索树的最近公共祖先[✓] 深度优先搜索 二叉搜索树 1+🟠🀄️open in new window 🔗open in new window
236二叉树的最近公共祖先[✓] 深度优先搜索 二叉树🟠🀄️open in new window 🔗open in new window
237删除链表中的节点[✓]链表🟠🀄️open in new window 🔗open in new window
238除自身以外数组的乘积[✓]数组 前缀和🟠🀄️open in new window 🔗open in new window
239滑动窗口最大值[✓]队列 数组 滑动窗口 2+🔴🀄️open in new window 🔗open in new window
240搜索二维矩阵 II[✓]数组 二分查找 分治 1+🟠🀄️open in new window 🔗open in new window
242有效的字母异位词[✓]哈希表 字符串 排序🟢🀄️open in new window 🔗open in new window
257二叉树的所有路径[✓] 深度优先搜索 字符串 2+🟢🀄️open in new window 🔗open in new window
258各位相加[✓]数学 数论 模拟🟢🀄️open in new window 🔗open in new window
259较小的三数之和 🔒[✓]数组 双指针 二分查找 1+🟠🀄️open in new window 🔗open in new window
263丑数[✓]数学🟢🀄️open in new window 🔗open in new window
264丑数 II[✓]哈希表 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
268丢失的数字[✓]位运算 数组 哈希表 3+🟢🀄️open in new window 🔗open in new window
274H 指数[✓]数组 计数排序 排序🟠🀄️open in new window 🔗open in new window
275H 指数 II[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
278第一个错误的版本[✓]二分查找 交互🟢🀄️open in new window 🔗open in new window
279完全平方数[✓]广度优先搜索 数学 动态规划🟠🀄️open in new window 🔗open in new window
283移动零[✓]数组 双指针🟢🀄️open in new window 🔗open in new window
287寻找重复数[✓]位运算 数组 双指针 1+🟠🀄️open in new window 🔗open in new window
289生命游戏[✓]数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
290单词规律[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
292Nim 游戏[✓]脑筋急转弯 数学 博弈🟢🀄️open in new window 🔗open in new window
295数据流的中位数[✓]设计 双指针 数据流 2+🔴🀄️open in new window 🔗open in new window
297二叉树的序列化与反序列化[✓] 深度优先搜索 广度优先搜索 3+🔴🀄️open in new window 🔗open in new window
300最长递增子序列[✓]数组 二分查找 动态规划🟠🀄️open in new window 🔗open in new window
303区域和检索 - 数组不可变[✓]设计 数组 前缀和🟢🀄️open in new window 🔗open in new window
307区域和检索 - 数组可修改[✓]设计 树状数组 线段树 1+🟠🀄️open in new window 🔗open in new window
309买卖股票的最佳时机含冷冻期[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
316去除重复字母[✓] 贪心 字符串 1+🟠🀄️open in new window 🔗open in new window
322零钱兑换[✓]广度优先搜索 数组 动态规划🟠🀄️open in new window 🔗open in new window
3263 的幂[✓]递归 数学🟢🀄️open in new window 🔗open in new window
328奇偶链表[✓]链表🟠🀄️open in new window 🔗open in new window
334递增的三元子序列[✓]贪心 数组🟠🀄️open in new window 🔗open in new window
338比特位计数[✓]位运算 动态规划🟢🀄️open in new window 🔗open in new window
3424的幂[✓]位运算 递归 数学🟢🀄️open in new window 🔗open in new window
343整数拆分[✓]数学 动态规划🟠🀄️open in new window 🔗open in new window
344反转字符串[✓]双指针 字符串🟢🀄️open in new window 🔗open in new window
345反转字符串中的元音字母[✓]双指针 字符串🟢🀄️open in new window 🔗open in new window
346数据流中的移动平均值 🔒[✓]设计 队列 数组 1+🟢🀄️open in new window 🔗open in new window
347前 K 个高频元素[✓]数组 哈希表 分治 5+🟠🀄️open in new window 🔗open in new window
349两个数组的交集[✓]数组 哈希表 双指针 2+🟢🀄️open in new window 🔗open in new window
350两个数组的交集 II[✓]数组 哈希表 双指针 2+🟢🀄️open in new window 🔗open in new window
354俄罗斯套娃信封问题[✓]数组 二分查找 动态规划 1+🔴🀄️open in new window 🔗open in new window
355设计推特[✓]设计 哈希表 链表 1+🟠🀄️open in new window 🔗open in new window
366寻找二叉树的叶子节点 🔒[✓] 深度优先搜索 二叉树🟠🀄️open in new window 🔗open in new window
367有效的完全平方数[✓]数学 二分查找🟢🀄️open in new window 🔗open in new window
369给单链表加一 🔒[✓]链表 数学🟠🀄️open in new window 🔗open in new window
373查找和最小的 K 对数字[✓]数组 堆(优先队列)🟠🀄️open in new window 🔗open in new window
374猜数字大小[✓]二分查找 交互🟢🀄️open in new window 🔗open in new window
375猜数字大小 II[✓]数学 动态规划 博弈🟠🀄️open in new window 🔗open in new window
378有序矩阵中第 K 小的元素[✓]数组 二分查找 矩阵 2+🟠🀄️open in new window 🔗open in new window
379电话目录管理系统 🔒[✓]设计 队列 数组 2+🟠🀄️open in new window 🔗open in new window
380O(1) 时间插入、删除和获取随机元素[✓]设计 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
382链表随机节点[✓]水塘抽样 链表 数学 1+🟠🀄️open in new window 🔗open in new window
383赎金信[✓]哈希表 字符串 计数🟢🀄️open in new window 🔗open in new window
387字符串中的第一个唯一字符[✓]队列 哈希表 字符串 1+🟢🀄️open in new window 🔗open in new window
389找不同[✓]位运算 哈希表 字符串 1+🟢🀄️open in new window 🔗open in new window
392判断子序列[✓]双指针 字符串 动态规划🟢🀄️open in new window 🔗open in new window
394字符串解码[✓] 递归 字符串🟠🀄️open in new window 🔗open in new window
399除法求值[✓]深度优先搜索 广度优先搜索 并查集 4+🟠🀄️open in new window 🔗open in new window
400第 N 位数字[✓]数学 二分查找🟠🀄️open in new window 🔗open in new window
401二进制手表[✓]位运算 回溯🟢🀄️open in new window 🔗open in new window
404左叶子之和[✓] 深度优先搜索 广度优先搜索 1+🟢🀄️open in new window 🔗open in new window
405数字转换为十六进制数[✓]位运算 数学🟢🀄️open in new window 🔗open in new window
409最长回文串[✓]贪心 哈希表 字符串🟢🀄️open in new window 🔗open in new window
412Fizz Buzz[✓]数学 字符串 模拟🟢🀄️open in new window 🔗open in new window
414第三大的数[✓]数组 排序🟢🀄️open in new window 🔗open in new window
415字符串相加[✓]数学 字符串 模拟🟢🀄️open in new window 🔗open in new window
416分割等和子集[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
426将二叉搜索树转化为排序的双向链表 🔒[✓] 深度优先搜索 4+🟠🀄️open in new window 🔗open in new window
427建立四叉树[✓] 数组 分治 1+🟠🀄️open in new window 🔗open in new window
430扁平化多级双向链表[✓]深度优先搜索 链表 双向链表🟠🀄️open in new window 🔗open in new window
432全 O(1) 的数据结构[✓]设计 哈希表 链表 1+🔴🀄️open in new window 🔗open in new window
433最小基因变化[✓]广度优先搜索 哈希表 字符串🟠🀄️open in new window 🔗open in new window
434字符串中的单词数[✓]字符串🟢🀄️open in new window 🔗open in new window
435无重叠区间[✓]贪心 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
436寻找右区间[✓]数组 二分查找 排序🟠🀄️open in new window 🔗open in new window
437路径总和 III[✓] 深度优先搜索 二叉树🟠🀄️open in new window 🔗open in new window
438找到字符串中所有字母异位词[✓]哈希表 字符串 滑动窗口🟠🀄️open in new window 🔗open in new window
440字典序的第K小数字[✓]字典树🔴🀄️open in new window 🔗open in new window
441排列硬币[✓]数学 二分查找🟢🀄️open in new window 🔗open in new window
442数组中重复的数据[✓]数组 哈希表🟠🀄️open in new window 🔗open in new window
443压缩字符串[✓]双指针 字符串🟠🀄️open in new window 🔗open in new window
445两数相加 II[✓] 链表 数学🟠🀄️open in new window 🔗open in new window
448找到所有数组中消失的数字[✓]数组 哈希表🟢🀄️open in new window 🔗open in new window
450删除二叉搜索树中的节点[✓] 二叉搜索树 二叉树🟠🀄️open in new window 🔗open in new window
451根据字符出现频率排序[✓]哈希表 字符串 桶排序 3+🟠🀄️open in new window 🔗open in new window
452用最少数量的箭引爆气球[✓]贪心 数组 排序🟠🀄️open in new window 🔗open in new window
455分发饼干[✓]贪心 数组 双指针 1+🟢🀄️open in new window 🔗open in new window
458可怜的小猪[✓]数学 动态规划 组合数学🔴🀄️open in new window 🔗open in new window
459重复的子字符串[✓]字符串 字符串匹配🟢🀄️open in new window 🔗open in new window
460LFU 缓存[✓]设计 哈希表 链表 1+🔴🀄️open in new window 🔗open in new window
461汉明距离[✓]位运算🟢🀄️open in new window 🔗open in new window
463岛屿的周长[✓]深度优先搜索 广度优先搜索 数组 1+🟢🀄️open in new window 🔗open in new window
474一和零[✓]数组 字符串 动态规划🟠🀄️open in new window 🔗open in new window
476数字的补数[✓]位运算🟢🀄️open in new window 🔗open in new window
482密钥格式化[✓]字符串🟢🀄️open in new window 🔗open in new window
485最大连续 1 的个数[✓]数组🟢🀄️open in new window 🔗open in new window
492构造矩形[✓]数学🟢🀄️open in new window 🔗open in new window
494目标和[✓]数组 动态规划 回溯🟠🀄️open in new window 🔗open in new window
495提莫攻击[✓]数组 模拟🟢🀄️open in new window 🔗open in new window
496下一个更大元素 I[✓] 数组 哈希表 1+🟢🀄️open in new window 🔗open in new window
498对角线遍历[✓]数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
500键盘行[✓]数组 哈希表 字符串🟢🀄️open in new window 🔗open in new window
501二叉搜索树中的众数[✓] 深度优先搜索 二叉搜索树 1+🟢🀄️open in new window 🔗open in new window
502IPO[✓]贪心 数组 排序 1+🔴🀄️open in new window 🔗open in new window
503下一个更大元素 II[✓] 数组 单调栈🟠🀄️open in new window 🔗open in new window
504七进制数[✓]数学🟢🀄️open in new window 🔗open in new window
506相对名次[✓]数组 排序 堆(优先队列)🟢🀄️open in new window 🔗open in new window
507完美数[✓]数学🟢🀄️open in new window 🔗open in new window
509斐波那契数[✓]递归 记忆化搜索 数学 1+🟢🀄️open in new window 🔗open in new window
514自由之路[✓]深度优先搜索 广度优先搜索 字符串 1+🔴🀄️open in new window 🔗open in new window
515在每个树行中找最大值[✓] 深度优先搜索 广度优先搜索 1+🟠🀄️open in new window 🔗open in new window
516最长回文子序列[✓]字符串 动态规划🟠🀄️open in new window 🔗open in new window
518零钱兑换 II[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
520检测大写字母[✓]字符串🟢🀄️open in new window 🔗open in new window
521最长特殊序列 Ⅰ[✓]字符串🟢🀄️open in new window 🔗open in new window
528按权重随机选择[✓]数组 数学 二分查找 2+🟠🀄️open in new window 🔗open in new window
530二叉搜索树的最小绝对差[✓] 深度优先搜索 广度优先搜索 2+🟢🀄️open in new window 🔗open in new window
540有序数组中的单一元素[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
541反转字符串 II[✓]双指针 字符串🟢🀄️open in new window 🔗open in new window
543二叉树的直径[✓] 深度优先搜索 二叉树🟢🀄️open in new window 🔗open in new window
547省份数量[✓]深度优先搜索 广度优先搜索 并查集 1+🟠🀄️open in new window 🔗open in new window
551学生出勤记录 I[✓]字符串🟢🀄️open in new window 🔗open in new window
557反转字符串中的单词 III[✓]双指针 字符串🟢🀄️open in new window 🔗open in new window
559N 叉树的最大深度[✓] 深度优先搜索 广度优先搜索🟢🀄️open in new window 🔗open in new window
560和为 K 的子数组[✓]数组 哈希表 前缀和🟠🀄️open in new window 🔗open in new window
561数组拆分[✓]贪心 数组 计数排序 1+🟢🀄️open in new window 🔗open in new window
563二叉树的坡度[✓] 深度优先搜索 二叉树🟢🀄️open in new window 🔗open in new window
566重塑矩阵[✓]数组 矩阵 模拟🟢🀄️open in new window 🔗open in new window
567字符串的排列[✓]哈希表 双指针 字符串 1+🟠🀄️open in new window 🔗open in new window
572另一棵树的子树[✓] 深度优先搜索 二叉树 2+🟢🀄️open in new window 🔗open in new window
575分糖果[✓]数组 哈希表🟢🀄️open in new window 🔗open in new window
583两个字符串的删除操作[✓]字符串 动态规划🟠🀄️open in new window 🔗open in new window
584寻找用户推荐人[✓]数据库🟢🀄️open in new window 🔗open in new window
589N 叉树的前序遍历[✓] 深度优先搜索🟢🀄️open in new window 🔗open in new window
590N 叉树的后序遍历[✓] 深度优先搜索🟢🀄️open in new window 🔗open in new window
594最长和谐子序列[✓]数组 哈希表 计数 2+🟢🀄️open in new window 🔗open in new window
595大的国家[✓]数据库🟢🀄️open in new window 🔗open in new window
598区间加法 II[✓]数组 数学🟢🀄️open in new window 🔗open in new window
599两个列表的最小索引总和[✓]数组 哈希表 字符串🟢🀄️open in new window 🔗open in new window
605种花问题[✓]贪心 数组🟢🀄️open in new window 🔗open in new window
611有效三角形的个数[✓]贪心 数组 双指针 2+🟠🀄️open in new window 🔗open in new window
617合并二叉树[✓] 深度优先搜索 广度优先搜索 1+🟢🀄️open in new window 🔗open in new window
622设计循环队列[✓]设计 队列 数组 1+🟠🀄️open in new window 🔗open in new window
628三个数的最大乘积[✓]数组 数学 排序🟢🀄️open in new window 🔗open in new window
632最小区间[✓]贪心 数组 哈希表 3+🔴🀄️open in new window 🔗open in new window
637二叉树的层平均值[✓] 深度优先搜索 广度优先搜索 1+🟢🀄️open in new window 🔗open in new window
641设计循环双端队列[✓]设计 队列 数组 1+🟠🀄️open in new window 🔗open in new window
643子数组最大平均数 I[✓]数组 滑动窗口🟢🀄️open in new window 🔗open in new window
645错误的集合[✓]位运算 数组 哈希表 1+🟢🀄️open in new window 🔗open in new window
649Dota2 参议院[✓]贪心 队列 字符串🟠🀄️open in new window 🔗open in new window
653两数之和 IV - 输入二叉搜索树[✓] 深度优先搜索 广度优先搜索 4+🟢🀄️open in new window 🔗open in new window
654最大二叉树[✓] 数组 3+🟠🀄️open in new window 🔗open in new window
657机器人能否返回原点[✓]字符串 模拟🟢🀄️open in new window 🔗open in new window
658找到 K 个最接近的元素[✓]数组 双指针 二分查找 3+🟠🀄️open in new window 🔗open in new window
661图片平滑器[✓]数组 矩阵🟢🀄️open in new window 🔗open in new window
662二叉树最大宽度[✓] 深度优先搜索 广度优先搜索 1+🟠🀄️open in new window 🔗open in new window
670最大交换[✓]贪心 数学🟠🀄️open in new window 🔗open in new window
671二叉树中第二小的节点[✓] 深度优先搜索 二叉树🟢🀄️open in new window 🔗open in new window
674最长连续递增序列[✓]数组🟢🀄️open in new window 🔗open in new window
678有效的括号字符串[✓] 贪心 字符串 1+🟠🀄️open in new window 🔗open in new window
680验证回文串 II[✓]贪心 双指针 字符串🟢🀄️open in new window 🔗open in new window
682棒球比赛[✓] 数组 模拟🟢🀄️open in new window 🔗open in new window
689三个无重叠子数组的最大和[✓]数组 动态规划🔴🀄️open in new window 🔗open in new window
693交替位二进制数[✓]位运算🟢🀄️open in new window 🔗open in new window
695岛屿的最大面积[✓]深度优先搜索 广度优先搜索 并查集 2+🟠🀄️open in new window 🔗open in new window
696计数二进制子串[✓]双指针 字符串🟢🀄️open in new window 🔗open in new window
697数组的度[✓]数组 哈希表🟢🀄️open in new window 🔗open in new window
700二叉搜索树中的搜索[✓] 二叉搜索树 二叉树🟢🀄️open in new window 🔗open in new window
701二叉搜索树中的插入操作[✓] 二叉搜索树 二叉树🟠🀄️open in new window 🔗open in new window
703数据流中的第 K 大元素[✓] 设计 二叉搜索树 3+🟢🀄️open in new window 🔗open in new window
704二分查找[✓]数组 二分查找🟢🀄️open in new window 🔗open in new window
705设计哈希集合[✓]设计 数组 哈希表 2+🟢🀄️open in new window 🔗open in new window
706设计哈希映射[✓]设计 数组 哈希表 2+🟢🀄️open in new window 🔗open in new window
707设计链表[✓]设计 链表🟠🀄️open in new window 🔗open in new window
709转换成小写字母[✓]字符串🟢🀄️open in new window 🔗open in new window
712两个字符串的最小ASCII删除和[✓]字符串 动态规划🟠🀄️open in new window 🔗open in new window
714买卖股票的最佳时机含手续费[✓]贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
7171 比特与 2 比特字符[✓]数组🟢🀄️open in new window 🔗open in new window
724寻找数组的中心下标[✓]数组 前缀和🟢🀄️open in new window 🔗open in new window
728自除数[✓]数学🟢🀄️open in new window 🔗open in new window
729我的日程安排表 I[✓]设计 线段树 数组 2+🟠🀄️open in new window 🔗open in new window
731我的日程安排表 II[✓]设计 线段树 数组 3+🟠🀄️open in new window 🔗open in new window
733图像渲染[✓]深度优先搜索 广度优先搜索 数组 1+🟢🀄️open in new window 🔗open in new window
735小行星碰撞[✓] 数组 模拟🟠🀄️open in new window 🔗open in new window
739每日温度[✓] 数组 单调栈🟠🀄️open in new window 🔗open in new window
744寻找比目标字母大的最小字母[✓]数组 二分查找🟢🀄️open in new window 🔗open in new window
746使用最小花费爬楼梯[✓]数组 动态规划🟢🀄️open in new window 🔗open in new window
747至少是其他数字两倍的最大数[✓]数组 排序🟢🀄️open in new window 🔗open in new window
748最短补全词[✓]数组 哈希表 字符串🟢🀄️open in new window 🔗open in new window
762二进制表示中质数个计算置位[✓]位运算 数学🟢🀄️open in new window 🔗open in new window
763划分字母区间[✓]贪心 哈希表 双指针 1+🟠🀄️open in new window 🔗open in new window
766托普利茨矩阵[✓]数组 矩阵🟢🀄️open in new window 🔗open in new window
769最多能完成排序的块[✓] 贪心 数组 2+🟠🀄️open in new window 🔗open in new window
771宝石与石头[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
772基本计算器 III 🔒[✓] 递归 数学 1+🔴🀄️open in new window 🔗open in new window
773滑动谜题[✓]广度优先搜索 数组 矩阵🔴🀄️open in new window 🔗open in new window
783二叉搜索树节点最小距离[✓] 深度优先搜索 广度优先搜索 2+🟢🀄️open in new window 🔗open in new window
790多米诺和托米诺平铺[✓]动态规划🟠🀄️open in new window 🔗open in new window
796旋转字符串[✓]字符串 字符串匹配🟢🀄️open in new window 🔗open in new window
804唯一摩尔斯密码词[✓]数组 哈希表 字符串🟢🀄️open in new window 🔗open in new window
806写字符串需要的行数[✓]数组 字符串🟢🀄️open in new window 🔗open in new window
812最大三角形面积[✓]几何 数组 数学🟢🀄️open in new window 🔗open in new window
819最常见的单词[✓]数组 哈希表 字符串 1+🟢🀄️open in new window 🔗open in new window
821字符的最短距离[✓]数组 双指针 字符串🟢🀄️open in new window 🔗open in new window
824山羊拉丁文[✓]字符串🟢🀄️open in new window 🔗open in new window
830较大分组的位置[✓]字符串🟢🀄️open in new window 🔗open in new window
832翻转图像[✓]位运算 数组 双指针 2+🟢🀄️open in new window 🔗open in new window
836矩形重叠[✓]几何 数学🟢🀄️open in new window 🔗open in new window
841钥匙和房间[✓]深度优先搜索 广度优先搜索 🟠🀄️open in new window 🔗open in new window
843猜猜这个单词[✓]数组 数学 字符串 2+🔴🀄️open in new window 🔗open in new window
844比较含退格的字符串[✓] 双指针 字符串 1+🟢🀄️open in new window 🔗open in new window
845数组中的最长山脉[✓]数组 双指针 动态规划 1+🟠🀄️open in new window 🔗open in new window
852山脉数组的峰顶索引[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
859亲密字符串[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
860柠檬水找零[✓]贪心 数组🟢🀄️open in new window 🔗open in new window
862和至少为 K 的最短子数组[✓]队列 数组 二分查找 4+🔴🀄️open in new window 🔗open in new window
867转置矩阵[✓]数组 矩阵 模拟🟢🀄️open in new window 🔗open in new window
868二进制间距[✓]位运算🟢🀄️open in new window 🔗open in new window
872叶子相似的树[✓] 深度优先搜索 二叉树🟢🀄️open in new window 🔗open in new window
875爱吃香蕉的珂珂[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
876链表的中间结点[✓]链表 双指针🟢🀄️open in new window 🔗open in new window
880索引处的解码字符串[✓] 字符串🟠🀄️open in new window 🔗open in new window
883三维形体投影面积[✓]几何 数组 数学 1+🟢🀄️open in new window 🔗open in new window
884两句话中的不常见单词[✓]哈希表 字符串 计数🟢🀄️open in new window 🔗open in new window
888公平的糖果交换[✓]数组 哈希表 二分查找 1+🟢🀄️open in new window 🔗open in new window
889根据前序和后序遍历构造二叉树[✓] 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
892三维形体的表面积[✓]几何 数组 数学 1+🟢🀄️open in new window 🔗open in new window
896单调数列[✓]数组🟢🀄️open in new window 🔗open in new window
897递增顺序搜索树[✓] 深度优先搜索 2+🟢🀄️open in new window 🔗open in new window
901股票价格跨度[✓] 设计 数据流 1+🟠🀄️open in new window 🔗open in new window
905按奇偶排序数组[✓]数组 双指针 排序🟢🀄️open in new window 🔗open in new window
908最小差值 I[✓]数组 数学🟢🀄️open in new window 🔗open in new window
909蛇梯棋[✓]广度优先搜索 数组 矩阵🟠🀄️open in new window 🔗open in new window
914卡牌分组[✓]数组 哈希表 数学 2+🟢🀄️open in new window 🔗open in new window
917仅仅反转字母[✓]双指针 字符串🟢🀄️open in new window 🔗open in new window
918环形子数组的最大和[✓]队列 数组 分治 2+🟠🀄️open in new window 🔗open in new window
921使括号有效的最少添加[✓] 贪心 字符串🟠🀄️open in new window 🔗open in new window
922按奇偶排序数组 II[✓]数组 双指针 排序🟢🀄️open in new window 🔗open in new window
925长按键入[✓]双指针 字符串🟢🀄️open in new window 🔗open in new window
929独特的电子邮件地址[✓]数组 哈希表 字符串🟢🀄️open in new window 🔗open in new window
931下降路径最小和[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
933最近的请求次数[✓]设计 队列 数据流🟢🀄️open in new window 🔗open in new window
938二叉搜索树的范围和[✓] 深度优先搜索 二叉搜索树 1+🟢🀄️open in new window 🔗open in new window
941有效的山脉数组[✓]数组🟢🀄️open in new window 🔗open in new window
942增减字符串匹配[✓]贪心 数组 双指针 1+🟢🀄️open in new window 🔗open in new window
944删列造序[✓]数组 字符串🟢🀄️open in new window 🔗open in new window
945使数组唯一的最小增量[✓]贪心 数组 计数 1+🟠🀄️open in new window 🔗open in new window
946验证栈序列[✓] 数组 模拟🟠🀄️open in new window 🔗open in new window
951翻转等价二叉树[✓] 深度优先搜索 二叉树🟠🀄️open in new window 🔗open in new window
953验证外星语词典[✓]数组 哈希表 字符串🟢🀄️open in new window 🔗open in new window
954二倍数对数组[✓]贪心 数组 哈希表 1+🟠🀄️open in new window 🔗open in new window
958二叉树的完全性检验[✓] 广度优先搜索 二叉树🟠🀄️open in new window 🔗open in new window
961在长度 2N 的数组中找出重复 N 次的元素[✓]数组 哈希表🟢🀄️open in new window 🔗open in new window
962最大宽度坡[✓] 数组 单调栈🟠🀄️open in new window 🔗open in new window
965单值二叉树[✓] 深度优先搜索 广度优先搜索 1+🟢🀄️open in new window 🔗open in new window
973最接近原点的 K 个点[✓]几何 数组 数学 4+🟠🀄️open in new window 🔗open in new window
976三角形的最大周长[✓]贪心 数组 数学 1+🟢🀄️open in new window 🔗open in new window
977有序数组的平方[✓]数组 双指针 排序🟢🀄️open in new window 🔗open in new window
981基于时间的键值存储[✓]设计 哈希表 字符串 1+🟠🀄️open in new window 🔗open in new window
986区间列表的交集[✓]数组 双指针🟠🀄️open in new window 🔗open in new window
989数组形式的整数加法[✓]数组 数学🟢🀄️open in new window 🔗open in new window
993二叉树的堂兄弟节点[✓] 深度优先搜索 广度优先搜索 1+🟢🀄️open in new window 🔗open in new window
994腐烂的橘子[✓]广度优先搜索 数组 矩阵🟠🀄️open in new window 🔗open in new window
997找到小镇的法官[✓] 数组 哈希表🟢🀄️open in new window 🔗open in new window
999可以被一步捕获的棋子数[✓]数组 矩阵 模拟🟢🀄️open in new window 🔗open in new window
1002查找共用字符[✓]数组 哈希表 字符串🟢🀄️open in new window 🔗open in new window
1004最大连续1的个数 III[✓]数组 二分查找 前缀和 1+🟠🀄️open in new window 🔗open in new window
1005K 次取反后最大化的数组和[✓]贪心 数组 排序🟢🀄️open in new window 🔗open in new window
1008前序遍历构造二叉搜索树[✓] 二叉搜索树 3+🟠🀄️open in new window 🔗open in new window
1009十进制整数的反码[✓]位运算🟢🀄️open in new window 🔗open in new window
1013将数组分成和相等的三个部分[✓]贪心 数组🟢🀄️open in new window 🔗open in new window
1014最佳观光组合[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
1018可被 5 整除的二进制前缀[✓]位运算 数组🟢🀄️open in new window 🔗open in new window
1021删除最外层的括号[✓] 字符串🟢🀄️open in new window 🔗open in new window
1022从根到叶的二进制数之和[✓] 深度优先搜索 二叉树🟢🀄️open in new window 🔗open in new window
1025除数博弈[✓]脑筋急转弯 数学 动态规划 1+🟢🀄️open in new window 🔗open in new window
1030距离顺序排列矩阵单元格[✓]几何 数组 数学 2+🟢🀄️open in new window 🔗open in new window
1037有效的回旋镖[✓]几何 数组 数学🟢🀄️open in new window 🔗open in new window
1046最后一块石头的重量[✓]数组 堆(优先队列)🟢🀄️open in new window 🔗open in new window
1047删除字符串中的所有相邻重复项[✓] 字符串🟢🀄️open in new window 🔗open in new window
1049最后一块石头的重量 II[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
1051高度检查器[✓]数组 计数排序 排序🟢🀄️open in new window 🔗open in new window
1068产品销售分析 I[✓]数据库🟢🀄️open in new window 🔗open in new window
1071字符串的最大公因子[✓]数学 字符串🟢🀄️open in new window 🔗open in new window
1072按列翻转得到最大值等行数[✓]数组 哈希表 矩阵🟠🀄️open in new window 🔗open in new window
1078Bigram 分词[✓]字符串🟢🀄️open in new window 🔗open in new window
1081不同字符的最小子序列[✓] 贪心 字符串 1+🟠🀄️open in new window 🔗open in new window
1089复写零[✓]数组 双指针🟢🀄️open in new window 🔗open in new window
1103分糖果 II[✓]数学 模拟🟢🀄️open in new window 🔗open in new window
1106解析布尔表达式[✓] 递归 字符串🔴🀄️open in new window 🔗open in new window
1108IP 地址无效化[✓]字符串🟢🀄️open in new window 🔗open in new window
1122数组的相对排序[✓]数组 哈希表 计数排序 1+🟢🀄️open in new window 🔗open in new window
1128等价多米诺骨牌对的数量[✓]数组 哈希表 计数🟢🀄️open in new window 🔗open in new window
1137第 N 个泰波那契数[✓]记忆化搜索 数学 动态规划🟢🀄️open in new window 🔗open in new window
1143最长公共子序列[✓]字符串 动态规划🟠🀄️open in new window 🔗open in new window
1146快照数组[✓]设计 数组 哈希表 1+🟠🀄️open in new window 🔗open in new window
1148文章浏览 I[✓]数据库🟢🀄️open in new window 🔗open in new window
1154一年中的第几天[✓]数学 字符串🟢🀄️open in new window 🔗open in new window
1160拼写单词[✓]数组 哈希表 字符串 1+🟢🀄️open in new window 🔗open in new window
1161最大层内元素和[✓] 深度优先搜索 广度优先搜索 1+🟠🀄️open in new window 🔗open in new window
1175质数排列[✓]数学🟢🀄️open in new window 🔗open in new window
1184公交站间的距离[✓]数组🟢🀄️open in new window 🔗open in new window
1185一周中的第几天[✓]数学🟢🀄️open in new window 🔗open in new window
1189“气球” 的最大数量[✓]哈希表 字符串 计数🟢🀄️open in new window 🔗open in new window
1190反转每对括号间的子串[✓] 字符串🟠🀄️open in new window 🔗open in new window
1200最小绝对差[✓]数组 排序🟢🀄️open in new window 🔗open in new window
1207独一无二的出现次数[✓]数组 哈希表🟢🀄️open in new window 🔗open in new window
1217玩筹码[✓]贪心 数组 数学🟢🀄️open in new window 🔗open in new window
1221分割平衡字符串[✓]贪心 字符串 计数🟢🀄️open in new window 🔗open in new window
1232缀点成线[✓]几何 数组 数学🟢🀄️open in new window 🔗open in new window
1233删除子文件夹[✓]深度优先搜索 字典树 数组 1+🟠🀄️open in new window 🔗open in new window
1252奇数值单元格的数目[✓]数组 数学 模拟🟢🀄️open in new window 🔗open in new window
1260二维网格迁移[✓]数组 矩阵 模拟🟢🀄️open in new window 🔗open in new window
1266访问所有点的最小时间[✓]几何 数组 数学🟢🀄️open in new window 🔗open in new window
1268搜索推荐系统[✓]字典树 数组 字符串 3+🟠🀄️open in new window 🔗open in new window
1275找出井字棋的获胜者[✓]数组 哈希表 矩阵 1+🟢🀄️open in new window 🔗open in new window
1277统计全为 1 的正方形子矩阵[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
1281整数的各位积和之差[✓]数学🟢🀄️open in new window 🔗open in new window
1287有序数组中出现次数超过25%的元素[✓]数组🟢🀄️open in new window 🔗open in new window
1288删除被覆盖区间[✓]数组 排序🟠🀄️open in new window 🔗open in new window
1290二进制链表转整数[✓]链表 数学🟢🀄️open in new window 🔗open in new window
1295统计位数为偶数的数字[✓]数组 数学🟢🀄️open in new window 🔗open in new window
1299将每个元素替换为右侧最大元素[✓]数组🟢🀄️open in new window 🔗open in new window
1304和为零的 N 个不同整数[✓]数组 数学🟢🀄️open in new window 🔗open in new window
1309解码字母到整数映射[✓]字符串🟢🀄️open in new window 🔗open in new window
1312让字符串成为回文串的最少插入次数[✓]字符串 动态规划🔴🀄️open in new window 🔗open in new window
1313解压缩编码列表[✓]数组🟢🀄️open in new window 🔗open in new window
1317将整数转换为两个无零整数的和[✓]数学🟢🀄️open in new window 🔗open in new window
1318或运算的最小翻转次数[✓]位运算🟠🀄️open in new window 🔗open in new window
13236 和 9 组成的最大数字[✓]贪心 数学🟢🀄️open in new window 🔗open in new window
1331数组序号转换[✓]数组 哈希表 排序🟢🀄️open in new window 🔗open in new window
1332删除回文子序列[✓]双指针 字符串🟢🀄️open in new window 🔗open in new window
1337矩阵中战斗力最弱的 K 行[✓]数组 二分查找 矩阵 2+🟢🀄️open in new window 🔗open in new window
1342将数字变成 0 的操作次数[✓]位运算 数学🟢🀄️open in new window 🔗open in new window
1346检查整数及其两倍数是否存在[✓]数组 哈希表 双指针 2+🟢🀄️open in new window 🔗open in new window
1351统计有序矩阵中的负数[✓]数组 二分查找 矩阵🟢🀄️open in new window 🔗open in new window
1356根据数字二进制下 1 的数目排序[✓]位运算 数组 计数 1+🟢🀄️open in new window 🔗open in new window
1360日期之间隔几天[✓]数学 字符串🟢🀄️open in new window 🔗open in new window
1365有多少小于当前数字的数字[✓]数组 哈希表 计数 1+🟢🀄️open in new window 🔗open in new window
1370上升下降字符串[✓]哈希表 字符串 计数🟢🀄️open in new window 🔗open in new window
1372二叉树中的最长交错路径[✓] 深度优先搜索 动态规划 1+🟠🀄️open in new window 🔗open in new window
1374生成每种字符都是奇数个的字符串[✓]字符串🟢🀄️open in new window 🔗open in new window
1378使用唯一标识码替换员工ID[✓]数据库🟢🀄️open in new window 🔗open in new window
1379找出克隆二叉树中的相同节点[✓] 深度优先搜索 广度优先搜索 1+🟢🀄️open in new window 🔗open in new window
1380矩阵中的幸运数[✓]数组 矩阵🟢🀄️open in new window 🔗open in new window
1381设计一个支持增量操作的栈[✓] 设计 数组🟠🀄️open in new window 🔗open in new window
1385两个数组间的距离值[✓]数组 双指针 二分查找 1+🟢🀄️open in new window 🔗open in new window
1389按既定顺序创建目标数组[✓]数组 模拟🟢🀄️open in new window 🔗open in new window
1394找出数组中的幸运数[✓]数组 哈希表 计数🟢🀄️open in new window 🔗open in new window
1399统计最大组的数目[✓]哈希表 数学🟢🀄️open in new window 🔗open in new window
1403非递增顺序的最小子序列[✓]贪心 数组 排序🟢🀄️open in new window 🔗open in new window
1405最长快乐字符串[✓]贪心 字符串 堆(优先队列)🟠🀄️open in new window 🔗open in new window
1408数组中的字符串匹配[✓]数组 字符串 字符串匹配🟢🀄️open in new window 🔗open in new window
1413逐步求和得到正数的最小值[✓]数组 前缀和🟢🀄️open in new window 🔗open in new window
1417重新格式化字符串[✓]字符串🟢🀄️open in new window 🔗open in new window
1419数青蛙[✓]字符串 计数🟠🀄️open in new window 🔗open in new window
1422分割字符串的最大得分[✓]字符串 前缀和🟢🀄️open in new window 🔗open in new window
1431拥有最多糖果的孩子[✓]数组🟢🀄️open in new window 🔗open in new window
1436旅行终点站[✓]数组 哈希表 字符串🟢🀄️open in new window 🔗open in new window
1437是否所有 1 都至少相隔 k 个元素[✓]数组🟢🀄️open in new window 🔗open in new window
1441用栈操作构建数组[✓] 数组 模拟🟠🀄️open in new window 🔗open in new window
1446连续字符[✓]字符串🟢🀄️open in new window 🔗open in new window
1448统计二叉树中好节点的数目[✓] 深度优先搜索 广度优先搜索 1+🟠🀄️open in new window 🔗open in new window
1450在既定时间做作业的学生人数[✓]数组🟢🀄️open in new window 🔗open in new window
1455检查单词是否为句中其他单词的前缀[✓]双指针 字符串 字符串匹配🟢🀄️open in new window 🔗open in new window
1456定长子串中元音的最大数目[✓]字符串 滑动窗口🟠🀄️open in new window 🔗open in new window
1460通过翻转子数组使两个数组相等[✓]数组 哈希表 排序🟢🀄️open in new window 🔗open in new window
1464数组中两元素的最大乘积[✓]数组 排序 堆(优先队列)🟢🀄️open in new window 🔗open in new window
1466重新规划路线[✓]深度优先搜索 广度优先搜索 🟠🀄️open in new window 🔗open in new window
1470重新排列数组[✓]数组🟢🀄️open in new window 🔗open in new window
1472设计浏览器历史记录[✓] 设计 数组 3+🟠🀄️open in new window 🔗open in new window
1475商品折扣后的最终价格[✓] 数组 单调栈🟢🀄️open in new window 🔗open in new window
1480一维数组的动态和[✓]数组 前缀和🟢🀄️open in new window 🔗open in new window
1486数组异或操作[✓]位运算 数学🟢🀄️open in new window 🔗open in new window
1491去掉最低工资和最高工资后的工资平均值[✓]数组 排序🟢🀄️open in new window 🔗open in new window
1492n 的第 k 个因子[✓]数学 数论🟠🀄️open in new window 🔗open in new window
1493删掉一个元素以后全为 1 的最长子数组[✓]数组 动态规划 滑动窗口🟠🀄️open in new window 🔗open in new window
1496判断路径是否相交[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
1497检查数组对是否可以被 k 整除[✓]数组 哈希表 计数🟠🀄️open in new window 🔗open in new window
1498满足条件的子序列数目[✓]数组 双指针 二分查找 1+🟠🀄️open in new window 🔗open in new window
1502判断能否形成等差数列[✓]数组 排序🟢🀄️open in new window 🔗open in new window
1507转变日期格式[✓]字符串🟢🀄️open in new window 🔗open in new window
1512好数对的数目[✓]数组 哈希表 数学 1+🟢🀄️open in new window 🔗open in new window
1517查找拥有有效邮箱的用户[✓]数据库🟢🀄️open in new window 🔗open in new window
1518换水问题[✓]数学 模拟🟢🀄️open in new window 🔗open in new window
1522N 叉树的直径 🔒[✓] 深度优先搜索🟠🀄️open in new window 🔗open in new window
1523在区间范围内统计奇数数目[✓]数学🟢🀄️open in new window 🔗open in new window
1527患某种疾病的患者[✓]数据库🟢🀄️open in new window 🔗open in new window
1528重新排列字符串[✓]数组 字符串🟢🀄️open in new window 🔗open in new window
1534统计好三元组[✓]数组 枚举🟢🀄️open in new window 🔗open in new window
1539第 k 个缺失的正整数[✓]数组 二分查找🟢🀄️open in new window 🔗open in new window
1544整理字符串[✓] 字符串🟢🀄️open in new window 🔗open in new window
1545找出第 N 个二进制字符串中的第 K 位[✓]递归 字符串 模拟🟠🀄️open in new window 🔗open in new window
1550存在连续三个奇数的数组[✓]数组🟢🀄️open in new window 🔗open in new window
1556千位分隔数[✓]字符串🟢🀄️open in new window 🔗open in new window
1560圆形赛道上经过次数最多的扇区[✓]数组 模拟🟢🀄️open in new window 🔗open in new window
1566重复至少 K 次且长度为 M 的模式[✓]数组 枚举🟢🀄️open in new window 🔗open in new window
1572矩阵对角线元素的和[✓]数组 矩阵🟢🀄️open in new window 🔗open in new window
1574删除最短的子数组使剩余数组有序[✓] 数组 双指针 2+🟠🀄️open in new window 🔗open in new window
1576替换所有的问号[✓]字符串🟢🀄️open in new window 🔗open in new window
1582二进制矩阵中的特殊位置[✓]数组 矩阵🟢🀄️open in new window 🔗open in new window
1588所有奇数长度子数组的和[✓]数组 数学 前缀和🟢🀄️open in new window 🔗open in new window
1590使数组和能被 P 整除[✓]数组 哈希表 前缀和🟠🀄️open in new window 🔗open in new window
1592重新排列单词间的空格[✓]字符串🟢🀄️open in new window 🔗open in new window
1593拆分字符串使唯一子字符串的数目最大[✓]哈希表 字符串 回溯🟠🀄️open in new window 🔗open in new window
1598文件夹操作日志搜集器[✓] 数组 字符串🟢🀄️open in new window 🔗open in new window
1603设计停车系统[✓]设计 计数 模拟🟢🀄️open in new window 🔗open in new window
1608特殊数组的特征值[✓]数组 二分查找 排序🟢🀄️open in new window 🔗open in new window
1614括号的最大嵌套深度[✓] 字符串🟢🀄️open in new window 🔗open in new window
1619删除某些元素后的数组均值[✓]数组 排序🟢🀄️open in new window 🔗open in new window
1624两个相同字符之间的最长子字符串[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
1629按键持续时间最长的键[✓]数组 字符串🟢🀄️open in new window 🔗open in new window
1636按照频率将数组升序排序[✓]数组 哈希表 排序🟢🀄️open in new window 🔗open in new window
1637两点之间不包含任何点的最宽垂直区域[✓]数组 排序🟢🀄️open in new window 🔗open in new window
1639通过给定词典构造目标字符串的方案数[✓]数组 字符串 动态规划🔴🀄️open in new window 🔗open in new window
1640能否连接形成数组[✓]数组 哈希表🟢🀄️open in new window 🔗open in new window
1646获取生成数组中的最大值[✓]数组 模拟🟢🀄️open in new window 🔗open in new window
1652拆炸弹[✓]数组 滑动窗口🟢🀄️open in new window 🔗open in new window
1656设计有序流[✓]设计 数组 哈希表 1+🟢🀄️open in new window 🔗open in new window
1657确定两个字符串是否接近[✓]哈希表 字符串 计数 1+🟠🀄️open in new window 🔗open in new window
1662检查两个字符串数组是否相等[✓]数组 字符串🟢🀄️open in new window 🔗open in new window
1667修复表中的名字[✓]数据库🟢🀄️open in new window 🔗open in new window
1668最大重复子字符串[✓]字符串 动态规划 字符串匹配🟢🀄️open in new window 🔗open in new window
1671得到山形数组的最少删除次数[✓]贪心 数组 二分查找 1+🔴🀄️open in new window 🔗open in new window
1672最富有客户的资产总量[✓]数组 矩阵🟢🀄️open in new window 🔗open in new window
1678设计 Goal 解析器[✓]字符串🟢🀄️open in new window 🔗open in new window
1679K 和数对的最大数目[✓]数组 哈希表 双指针 1+🟠🀄️open in new window 🔗open in new window
1683无效的推文[✓]数据库🟢🀄️open in new window 🔗open in new window
1684统计一致字符串的数目[✓]位运算 数组 哈希表 2+🟢🀄️open in new window 🔗open in new window
1688比赛中的配对次数[✓]数学 模拟🟢🀄️open in new window 🔗open in new window
1694重新格式化电话号码[✓]字符串🟢🀄️open in new window 🔗open in new window
1700无法吃午餐的学生数量[✓] 队列 数组 1+🟢🀄️open in new window 🔗open in new window
1704判断字符串的两半是否相似[✓]字符串 计数🟢🀄️open in new window 🔗open in new window
1710卡车上的最大单元数[✓]贪心 数组 排序🟢🀄️open in new window 🔗open in new window
1716计算力扣银行的钱[✓]数学🟢🀄️open in new window 🔗open in new window
1720解码异或后的数组[✓]位运算 数组🟢🀄️open in new window 🔗open in new window
1725可以形成最大正方形的矩形数目[✓]数组🟢🀄️open in new window 🔗open in new window
1732找到最高海拔[✓]数组 前缀和🟢🀄️open in new window 🔗open in new window
1736替换隐藏数字得到的最晚时间[✓]贪心 字符串🟢🀄️open in new window 🔗open in new window
1742盒子中小球的最大数量[✓]哈希表 数学 计数🟢🀄️open in new window 🔗open in new window
1748唯一元素的和[✓]数组 哈希表 计数🟢🀄️open in new window 🔗open in new window
1752检查数组是否经排序和轮转得到[✓]数组🟢🀄️open in new window 🔗open in new window
1757可回收且低脂的产品[✓]数据库🟢🀄️open in new window 🔗open in new window
1758生成交替二进制字符串的最少操作数[✓]字符串🟢🀄️open in new window 🔗open in new window
1760袋子里最少数目的球[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
1763最长的美好子字符串[✓]位运算 哈希表 字符串 2+🟢🀄️open in new window 🔗open in new window
1768交替合并字符串[✓]双指针 字符串🟢🀄️open in new window 🔗open in new window
1773统计匹配检索规则的物品数量[✓]数组 字符串🟢🀄️open in new window 🔗open in new window
1779找到最近的有相同 X 或 Y 坐标的点[✓]数组🟢🀄️open in new window 🔗open in new window
1784检查二进制字符串字段[✓]字符串🟢🀄️open in new window 🔗open in new window
1790仅执行一次字符串交换能否使两个字符串相等[✓]哈希表 字符串 计数🟢🀄️open in new window 🔗open in new window
1791找出星型图的中心节点[✓]🟢🀄️open in new window 🔗open in new window
1792最大平均通过率[✓]贪心 数组 堆(优先队列)🟠🀄️open in new window 🔗open in new window
1796字符串中第二大的数字[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
1800最大升序子数组和[✓]数组🟢🀄️open in new window 🔗open in new window
1805字符串中不同整数的数目[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
1812判断国际象棋棋盘中一个格子的颜色[✓]数学 字符串🟢🀄️open in new window 🔗open in new window
1813句子相似性 III[✓]数组 双指针 字符串🟠🀄️open in new window 🔗open in new window
1816截断句子[✓]数组 字符串🟢🀄️open in new window 🔗open in new window
1822数组元素积的符号[✓]数组 数学🟢🀄️open in new window 🔗open in new window
1827最少操作使数组递增[✓]贪心 数组🟢🀄️open in new window 🔗open in new window
1829每个查询的最大异或值[✓]位运算 数组 前缀和🟠🀄️open in new window 🔗open in new window
1832判断句子是否为全字母句[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
1837K 进制表示下的各位数字总和[✓]数学🟢🀄️open in new window 🔗open in new window
1844将所有数字用字符替换[✓]字符串🟢🀄️open in new window 🔗open in new window
1848到目标元素的最小距离[✓]数组🟢🀄️open in new window 🔗open in new window
1854人口最多的年份[✓]数组 计数 前缀和🟢🀄️open in new window 🔗open in new window
1859将句子排序[✓]字符串 排序🟢🀄️open in new window 🔗open in new window
1861旋转盒子[✓]数组 双指针 矩阵🟠🀄️open in new window 🔗open in new window
1863找出所有子集的异或总和再求和[✓]位运算 数组 数学 3+🟢🀄️open in new window 🔗open in new window
1869哪种连续子字符串更长[✓]字符串🟢🀄️open in new window 🔗open in new window
1873计算特殊奖金[✓]数据库🟢🀄️open in new window 🔗open in new window
1876长度为三且各字符不同的子字符串[✓]哈希表 字符串 计数 1+🟢🀄️open in new window 🔗open in new window
1880检查某单词是否等于两单词之和[✓]字符串🟢🀄️open in new window 🔗open in new window
1886判断矩阵经轮转后是否一致[✓]数组 矩阵🟢🀄️open in new window 🔗open in new window
1893检查是否区域内所有整数都被覆盖[✓]数组 哈希表 前缀和🟢🀄️open in new window 🔗open in new window
1897重新分配字符使所有字符串都相等[✓]哈希表 字符串 计数🟢🀄️open in new window 🔗open in new window
1903字符串中的最大奇数[✓]贪心 数学 字符串🟢🀄️open in new window 🔗open in new window
1909删除一个元素使数组严格递增[✓]数组🟢🀄️open in new window 🔗open in new window
1913两个数对之间的最大乘积差[✓]数组 排序🟢🀄️open in new window 🔗open in new window
1920基于排列构建数组[✓]数组 模拟🟢🀄️open in new window 🔗open in new window
1925统计平方和三元组的数目[✓]数学 枚举🟢🀄️open in new window 🔗open in new window
1926迷宫中离入口最近的出口[✓]广度优先搜索 数组 矩阵🟠🀄️open in new window 🔗open in new window
1929数组串联[✓]数组 模拟🟢🀄️open in new window 🔗open in new window
1935可以输入的最大单词数[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
1941检查是否所有字符出现次数相同[✓]哈希表 字符串 计数🟢🀄️open in new window 🔗open in new window
1942最小未被占据椅子的编号[✓]数组 哈希表 堆(优先队列)🟠🀄️open in new window 🔗open in new window
1945字符串转化后的各位数字之和[✓]字符串 模拟🟢🀄️open in new window 🔗open in new window
1952三除数[✓]数学 枚举 数论🟢🀄️open in new window 🔗open in new window
1957删除字符使字符串变好[✓]字符串🟢🀄️open in new window 🔗open in new window
1961检查字符串是否为数组前缀[✓]数组 双指针 字符串🟢🀄️open in new window 🔗open in new window
1963使字符串平衡的最小交换次数[✓] 贪心 双指针 1+🟠🀄️open in new window 🔗open in new window
1967作为子字符串出现在单词中的字符串数目[✓]数组 字符串🟢🀄️open in new window 🔗open in new window
1971寻找图中是否存在路径[✓]深度优先搜索 广度优先搜索 并查集 1+🟢🀄️open in new window 🔗open in new window
1974使用特殊打字机键入单词的最少时间[✓]贪心 字符串🟢🀄️open in new window 🔗open in new window
1975最大方阵和[✓]贪心 数组 矩阵🟠🀄️open in new window 🔗open in new window
1979找出数组的最大公约数[✓]数组 数学 数论🟢🀄️open in new window 🔗open in new window
1984学生分数的最小差值[✓]数组 排序 滑动窗口🟢🀄️open in new window 🔗open in new window
1991找到数组的中间位置[✓]数组 前缀和🟢🀄️open in new window 🔗open in new window
1995统计特殊四元组[✓]数组 哈希表 枚举🟢🀄️open in new window 🔗open in new window
2000反转单词前缀[✓] 双指针 字符串🟢🀄️open in new window 🔗open in new window
2006差的绝对值为 K 的数对数目[✓]数组 哈希表 计数🟢🀄️open in new window 🔗open in new window
2011执行操作后的变量值[✓]数组 字符串 模拟🟢🀄️open in new window 🔗open in new window
2016增量元素之间的最大差值[✓]数组🟢🀄️open in new window 🔗open in new window
2022将一维数组转变成二维数组[✓]数组 矩阵 模拟🟢🀄️open in new window 🔗open in new window
2027转换字符串的最少操作次数[✓]贪心 字符串🟢🀄️open in new window 🔗open in new window
2032至少在两个数组中出现的值[✓]位运算 数组 哈希表🟢🀄️open in new window 🔗open in new window
2037使每位学生都有座位的最少移动次数[✓]贪心 数组 计数排序 1+🟢🀄️open in new window 🔗open in new window
2042检查句子中的数字是否递增[✓]字符串🟢🀄️open in new window 🔗open in new window
2044统计按位或能得到最大值的子集数目[✓]位运算 数组 回溯 1+🟠🀄️open in new window 🔗open in new window
2047句子中的有效单词数[✓]字符串🟢🀄️open in new window 🔗open in new window
2053数组中第 K 个独一无二的字符串[✓]数组 哈希表 字符串 1+🟢🀄️open in new window 🔗open in new window
2054两个最好的不重叠活动[✓]数组 二分查找 动态规划 2+🟠🀄️open in new window 🔗open in new window
2057值相等的最小索引[✓]数组🟢🀄️open in new window 🔗open in new window
2062统计字符串中的元音子字符串[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
2064分配给商店的最多商品的最小值[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
2068检查两个字符串是否几乎相等[✓]哈希表 字符串 计数🟢🀄️open in new window 🔗open in new window
2070每一个查询的最大美丽值[✓]数组 二分查找 排序🟠🀄️open in new window 🔗open in new window
2073买票需要的时间[✓]队列 数组 模拟🟢🀄️open in new window 🔗open in new window
2078两栋颜色不同且距离最远的房子[✓]贪心 数组🟢🀄️open in new window 🔗open in new window
2085统计出现过一次的公共字符串[✓]数组 哈希表 字符串 1+🟢🀄️open in new window 🔗open in new window
2089找出数组排序后的目标下标[✓]数组 二分查找 排序🟢🀄️open in new window 🔗open in new window
2094找出 3 位偶数[✓]数组 哈希表 枚举 1+🟢🀄️open in new window 🔗open in new window
2095删除链表的中间节点[✓]链表 双指针🟠🀄️open in new window 🔗open in new window
2097合法重新排列数对[✓]深度优先搜索 欧拉回路🔴🀄️open in new window 🔗open in new window
2099找到和最大的长度为 K 的子序列[✓]数组 哈希表 排序 1+🟢🀄️open in new window 🔗open in new window
2103环和杆[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
2108找出数组中的第一个回文字符串[✓]数组 双指针 字符串🟢🀄️open in new window 🔗open in new window
2109向字符串添加空格[✓]数组 双指针 字符串 1+🟠🀄️open in new window 🔗open in new window
2114句子中的最多单词数[✓]数组 字符串🟢🀄️open in new window 🔗open in new window
2119反转两次的数字[✓]数学🟢🀄️open in new window 🔗open in new window
2124检查是否所有 A 都在 B 之前[✓]字符串🟢🀄️open in new window 🔗open in new window
2129将标题首字母大写[✓]字符串🟢🀄️open in new window 🔗open in new window
2130链表最大孪生和[✓] 链表 双指针🟠🀄️open in new window 🔗open in new window
2133检查是否每一行每一列都包含全部整数[✓]数组 哈希表 矩阵🟢🀄️open in new window 🔗open in new window
2138将字符串拆分为若干长度为 k 的组[✓]字符串 模拟🟢🀄️open in new window 🔗open in new window
2144打折购买糖果的最小开销[✓]贪心 数组 排序🟢🀄️open in new window 🔗open in new window
2148元素计数[✓]数组 计数 排序🟢🀄️open in new window 🔗open in new window
2154将找到的值乘以 2[✓]数组 哈希表 排序 1+🟢🀄️open in new window 🔗open in new window
2160拆分数位后四位数字的最小和[✓]贪心 数学 排序🟢🀄️open in new window 🔗open in new window
2164对奇偶下标分别排序[✓]数组 排序🟢🀄️open in new window 🔗open in new window
2169得到 0 的操作数[✓]数学 模拟🟢🀄️open in new window 🔗open in new window
2176统计数组中相等且可以被整除的数对[✓]数组🟢🀄️open in new window 🔗open in new window
2180统计各位数字之和为偶数的整数个数[✓]数学 模拟🟢🀄️open in new window 🔗open in new window
2182构造限制重复的字符串[✓]贪心 哈希表 字符串 2+🟠🀄️open in new window 🔗open in new window
2185统计包含给定前缀的字符串[✓]数组 字符串 字符串匹配🟢🀄️open in new window 🔗open in new window
2190数组中紧跟 key 之后出现最频繁的数字[✓]数组 哈希表 计数🟢🀄️open in new window 🔗open in new window
2194Excel 表中某个范围内的单元格[✓]字符串🟢🀄️open in new window 🔗open in new window
2196根据描述创建二叉树[✓] 数组 哈希表 1+🟠🀄️open in new window 🔗open in new window
2200找出数组中的所有 K 近邻下标[✓]数组 双指针🟢🀄️open in new window 🔗open in new window
2206将数组划分成相等数对[✓]位运算 数组 哈希表 1+🟢🀄️open in new window 🔗open in new window
2210统计数组中峰和谷的数量[✓]数组🟢🀄️open in new window 🔗open in new window
2215找出两数组的不同[✓]数组 哈希表🟢🀄️open in new window 🔗open in new window
2220转换数字的最少位翻转次数[✓]位运算🟢🀄️open in new window 🔗open in new window
2224转化时间需要的最少操作数[✓]贪心 字符串🟢🀄️open in new window 🔗open in new window
2231按奇偶性交换后的最大数字[✓]排序 堆(优先队列)🟢🀄️open in new window 🔗open in new window
2235两整数相加[✓]数学🟢🀄️open in new window 🔗open in new window
2236判断根结点是否等于子结点之和[✓] 二叉树🟢🀄️open in new window 🔗open in new window
2239找到最接近 0 的数字[✓]数组🟢🀄️open in new window 🔗open in new window
2243计算字符串的数字和[✓]字符串 模拟🟢🀄️open in new window 🔗open in new window
2248多个数组求交集[✓]数组 哈希表 计数 1+🟢🀄️open in new window 🔗open in new window
2255统计是给定字符串前缀的字符串数目[✓]数组 字符串🟢🀄️open in new window 🔗open in new window
2257统计网格图中没有被保卫的格子数[✓]数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
2259移除指定数字得到的最大结果[✓]贪心 字符串 枚举🟢🀄️open in new window 🔗open in new window
2260必须拿起的最小连续卡牌数[✓]数组 哈希表 滑动窗口🟠🀄️open in new window 🔗open in new window
2261含最多 K 个可整除元素的子数组[✓]字典树 数组 哈希表 3+🟠🀄️open in new window 🔗open in new window
2262字符串的总引力[✓]哈希表 字符串 动态规划🔴🀄️open in new window 🔗open in new window
2264字符串中最大的 3 位相同数字[✓]字符串🟢🀄️open in new window 🔗open in new window
2269找到一个数字的 K 美丽值[✓]数学 字符串 滑动窗口🟢🀄️open in new window 🔗open in new window
2273移除字母异位词后的结果数组[✓]数组 哈希表 字符串 1+🟢🀄️open in new window 🔗open in new window
2275按位与结果大于零的最长组合[✓]位运算 数组 哈希表 1+🟠🀄️open in new window 🔗open in new window
2278字母在字符串中的百分比[✓]字符串🟢🀄️open in new window 🔗open in new window
2283判断一个数的数字计数是否等于数位的值[✓]哈希表 字符串 计数🟢🀄️open in new window 🔗open in new window
2287重排字符形成目标字符串[✓]哈希表 字符串 计数🟢🀄️open in new window 🔗open in new window
2290到达角落需要移除障碍物的最小数目[✓]广度优先搜索 数组 3+🔴🀄️open in new window 🔗open in new window
2293极大极小游戏[✓]数组 模拟🟢🀄️open in new window 🔗open in new window
2299强密码检验器 II[✓]字符串🟢🀄️open in new window 🔗open in new window
2300咒语和药水的成功对数[✓]数组 双指针 二分查找 1+🟠🀄️open in new window 🔗open in new window
2303计算应缴税款总额[✓]数组 模拟🟢🀄️open in new window 🔗open in new window
2309兼具大小写的最好英文字母[✓]哈希表 字符串 枚举🟢🀄️open in new window 🔗open in new window
2315统计星号[✓]字符串🟢🀄️open in new window 🔗open in new window
2319判断矩阵是否是一个 X 矩阵[✓]数组 矩阵🟢🀄️open in new window 🔗open in new window
2325解密消息[✓]哈希表 字符串🟢🀄️open in new window 🔗open in new window
2331计算布尔二叉树的值[✓] 深度优先搜索 二叉树🟢🀄️open in new window 🔗open in new window
2335装满杯子需要的最短总时长[✓]贪心 数组 排序 1+🟢🀄️open in new window 🔗open in new window
2336无限集中的最小数字[✓]设计 哈希表 有序集合 1+🟠🀄️open in new window 🔗open in new window
2337移动片段得到字符串[✓]双指针 字符串🟠🀄️open in new window 🔗open in new window
2341数组能形成多少数对[✓]数组 哈希表 计数🟢🀄️open in new window 🔗open in new window
2352相等行列对[✓]数组 哈希表 矩阵 1+🟠🀄️open in new window 🔗open in new window
2390从字符串中移除星号[✓] 字符串 模拟🟠🀄️open in new window 🔗open in new window
2405子字符串的最优划分[✓]贪心 哈希表 字符串🟠🀄️open in new window 🔗open in new window
2406将区间分为最少组数[✓]贪心 数组 双指针 3+🟠🀄️open in new window 🔗open in new window
2410运动员和训练师的最大匹配数[✓]贪心 数组 双指针 1+🟠🀄️open in new window 🔗open in new window
2415反转二叉树的奇数层[✓] 深度优先搜索 广度优先搜索 1+🟠🀄️open in new window 🔗open in new window
2416字符串的前缀分数和[✓]字典树 数组 字符串 1+🔴🀄️open in new window 🔗open in new window
2458移除子树后的二叉树高度[✓] 深度优先搜索 广度优先搜索 2+🔴🀄️open in new window 🔗open in new window
2461长度为 K 子数组中的最大和[✓]数组 哈希表 滑动窗口🟠🀄️open in new window 🔗open in new window
2462雇佣 K 位工人的总代价[✓]数组 双指针 模拟 1+🟠🀄️open in new window 🔗open in new window
2463最小移动总距离[✓]数组 动态规划 排序🔴🀄️open in new window 🔗open in new window
2471逐层排序二叉树所需的最少操作数目[✓] 广度优先搜索 二叉树🟠🀄️open in new window 🔗open in new window
2490回环句[✓]字符串🟢🀄️open in new window 🔗open in new window
2491划分技能点相等的团队[✓]数组 哈希表 双指针 1+🟠🀄️open in new window 🔗open in new window
2501数组中最长的方波[✓]数组 哈希表 二分查找 2+🟠🀄️open in new window 🔗open in new window
2516每种字符至少取 K 个[✓]哈希表 字符串 滑动窗口🟠🀄️open in new window 🔗open in new window
2530执行 K 次操作后的最大分数[✓]贪心 数组 堆(优先队列)🟠🀄️open in new window 🔗open in new window
2542最大子序列的分数[✓]贪心 数组 排序 1+🟠🀄️open in new window 🔗open in new window
2554从一个范围内选择最多整数 I[✓]贪心 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
2558从数量最多的堆取走礼物[✓]数组 模拟 堆(优先队列)🟢🀄️open in new window 🔗open in new window
2563统计公平数对的数目[✓]数组 双指针 二分查找 1+🟠🀄️open in new window 🔗open in new window
2577在网格图中访问一个格子的最少时间[✓]广度优先搜索 数组 3+🔴🀄️open in new window 🔗open in new window
2583二叉树中的第 K 大层和[✓] 广度优先搜索 二叉树 1+🟠🀄️open in new window 🔗open in new window
2593标记所有元素后数组的分数[✓]数组 哈希表 排序 2+🟠🀄️open in new window 🔗open in new window
2601质数减法运算[✓]贪心 数组 数学 2+🟠🀄️open in new window 🔗open in new window
2618检查是否是类的对象实例[✓]🟠🀄️open in new window 🔗open in new window
2619数组原型对象的最后一个元素[✓]🟢🀄️open in new window 🔗open in new window
2620计数器[✓]🟢🀄️open in new window 🔗open in new window
2621睡眠函数[✓]🟢🀄️open in new window 🔗open in new window
2622有时间限制的缓存[✓]🟠🀄️open in new window 🔗open in new window
2623记忆函数[✓]🟠🀄️open in new window 🔗open in new window
2624蜗牛排序[✓]🟠🀄️open in new window 🔗open in new window
2625扁平化嵌套数组[✓]🟠🀄️open in new window 🔗open in new window
2626数组归约运算[✓]🟢🀄️open in new window 🔗open in new window
2627函数防抖[✓]🟠🀄️open in new window 🔗open in new window
2628完全相等的 JSON 字符串 🔒[✓]🟠🀄️open in new window 🔗open in new window
2629复合函数[✓]🟢🀄️open in new window 🔗open in new window
2630记忆函数 II[✓]🔴🀄️open in new window 🔗open in new window
2631分组[✓]🟠🀄️open in new window 🔗open in new window
2632柯里化 🔒[✓]🟠🀄️open in new window 🔗open in new window
2633将对象转换为 JSON 字符串 🔒[✓]🟠🀄️open in new window 🔗open in new window
2634过滤数组中的元素[✓]🟢🀄️open in new window 🔗open in new window
2635转换数组中的每个元素[✓]🟢🀄️open in new window 🔗open in new window
2636Promise 对象池 🔒[✓]🟠🀄️open in new window 🔗open in new window
2637有时间限制的 Promise 对象[✓]🟠🀄️open in new window 🔗open in new window
2641二叉树的堂兄弟节点 II[✓] 深度优先搜索 广度优先搜索 2+🟠🀄️open in new window 🔗open in new window
2648生成斐波那契数列[✓]🟢🀄️open in new window 🔗open in new window
2649嵌套数组生成器[✓]🟠🀄️open in new window 🔗open in new window
2650设计可取消函数[✓]🔴🀄️open in new window 🔗open in new window
2665计数器 II[✓]🟢🀄️open in new window 🔗open in new window
2666只允许一次函数调用[✓]🟢🀄️open in new window 🔗open in new window
2667创建 Hello World 函数[✓]🟢🀄️open in new window 🔗open in new window
2675将对象数组转换为矩阵 🔒[✓]🔴🀄️open in new window 🔗open in new window
2676节流 🔒[✓]🟠🀄️open in new window 🔗open in new window
2677分块数组[✓]🟢🀄️open in new window 🔗open in new window
2684矩阵中移动的最大次数[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
2690无穷方法对象 🔒[✓]🟢🀄️open in new window 🔗open in new window
2691不可变辅助工具 🔒[✓]🔴🀄️open in new window 🔗open in new window
2692使对象不可变 🔒[✓]🟠🀄️open in new window 🔗open in new window
2693使用自定义上下文调用函数[✓]🟠🀄️open in new window 🔗open in new window
2694事件发射器[✓]🟠🀄️open in new window 🔗open in new window
2695包装数组[✓]🟢🀄️open in new window 🔗open in new window
2696删除子串后的字符串最小长度[✓] 字符串 模拟🟢🀄️open in new window 🔗open in new window
2700两个对象之间的差异 🔒[✓]🟠🀄️open in new window 🔗open in new window
2703返回传递的参数的长度[✓]🟢🀄️open in new window 🔗open in new window
2704相等还是不相等[✓]🟢🀄️open in new window 🔗open in new window
2705精简对象[✓]🟠🀄️open in new window 🔗open in new window
2715执行可取消的延迟函数[✓]🟢🀄️open in new window 🔗open in new window
2721并行执行异步函数[✓]🟠🀄️open in new window 🔗open in new window
2722根据 ID 合并两个数组[✓]🟠🀄️open in new window 🔗open in new window
2723两个 Promise 对象相加[✓]🟢🀄️open in new window 🔗open in new window
2724排序方式[✓]🟢🀄️open in new window 🔗open in new window
2725间隔取消[✓]🟢🀄️open in new window 🔗open in new window
2726使用方法链的计算器[✓]🟢🀄️open in new window 🔗open in new window
2727判断对象是否为空[✓]🟢🀄️open in new window 🔗open in new window
2740找出分区值[✓]数组 排序🟠🀄️open in new window 🔗open in new window
2754将函数绑定到上下文 🔒[✓]🟠🀄️open in new window 🔗open in new window
2755深度合并两个对象 🔒[✓]🟠🀄️open in new window 🔗open in new window
2756批处理查询 🔒[✓]🔴🀄️open in new window 🔗open in new window
2757生成循环数组的值 🔒[✓]🟠🀄️open in new window 🔗open in new window
2758下一天 🔒[✓]🟢🀄️open in new window 🔗open in new window
2759将 JSON 字符串转换为对象 🔒[✓]🔴🀄️open in new window 🔗open in new window
2762不间断子数组[✓]队列 数组 有序集合 3+🟠🀄️open in new window 🔗open in new window
2774数组的上界 🔒[✓]🟢🀄️open in new window 🔗open in new window
2775将 undefined 转为 null 🔒[✓]🟠🀄️open in new window 🔗open in new window
2776转换回调函数为 Promise 函数 🔒[✓]🟠🀄️open in new window 🔗open in new window
2777日期范围生成器 🔒[✓]🟠🀄️open in new window 🔗open in new window
2779数组的最大美丽值[✓]数组 二分查找 排序 1+🟠🀄️open in new window 🔗open in new window
2794从两个数组中创建对象 🔒[✓]🟢🀄️open in new window 🔗open in new window
2795并行执行 Promise 以获取独有的结果 🔒[✓]🟠🀄️open in new window 🔗open in new window
2796重复字符串 🔒[✓]🟢🀄️open in new window 🔗open in new window
2797带有占位符的部分函数 🔒[✓]🟢🀄️open in new window 🔗open in new window
2803阶乘生成器 🔒[✓]🟢🀄️open in new window 🔗open in new window
2804数组原型的 forEach 方法 🔒[✓]🟢🀄️open in new window 🔗open in new window
2805自定义间隔 🔒[✓]🟠🀄️open in new window 🔗open in new window
2821延迟每个 Promise 对象的解析 🔒[✓]🟠🀄️open in new window 🔗open in new window
2822对象反转 🔒[✓]🟢🀄️open in new window 🔗open in new window
2823深度对象筛选 🔒[✓]🟠🀄️open in new window 🔗open in new window
2825循环增长使字符串子序列等于另一个字符串[✓]双指针 字符串🟠🀄️open in new window 🔗open in new window
2872可以被 K 整除连通块的最大数目[✓] 深度优先搜索🔴🀄️open in new window 🔗open in new window
2877从表中创建 DataFrame[✓]🟢🀄️open in new window 🔗open in new window
2878获取 DataFrame 的大小[✓]🟢🀄️open in new window 🔗open in new window
2879显示前三行[✓]🟢🀄️open in new window 🔗open in new window
2880数据选取[✓]🟢🀄️open in new window 🔗open in new window
2881创建新列[✓]🟢🀄️open in new window 🔗open in new window
2882删去重复的行[✓]🟢🀄️open in new window 🔗open in new window
2883删去丢失的数据[✓]🟢🀄️open in new window 🔗open in new window
2884修改列[✓]🟢🀄️open in new window 🔗open in new window
2885重命名列[✓]🟢🀄️open in new window 🔗open in new window
2886改变数据类型[✓]🟢🀄️open in new window 🔗open in new window
2887填充缺失值[✓]🟢🀄️open in new window 🔗open in new window
2888重塑数据:连结[✓]🟢🀄️open in new window 🔗open in new window
2889数据重塑:透视[✓]🟢🀄️open in new window 🔗open in new window
2890重塑数据:融合[✓]🟢🀄️open in new window 🔗open in new window
2891方法链[✓]🟢🀄️open in new window 🔗open in new window
2914使二进制字符串变美丽的最少修改次数[✓]字符串🟠🀄️open in new window 🔗open in new window
2924找到冠军 II[✓]🟠🀄️open in new window 🔗open in new window
2938区分黑球与白球[✓]贪心 双指针 字符串🟠🀄️open in new window 🔗open in new window
2940找到 Alice 和 Bob 可以相遇的建筑[✓] 树状数组 线段树 4+🔴🀄️open in new window 🔗open in new window
3011判断一个数组是否可以变为有序[✓]位运算 数组 排序🟠🀄️open in new window 🔗open in new window
3097或值至少为 K 的最短子数组 II[✓]位运算 数组 滑动窗口🟠🀄️open in new window 🔗open in new window
3133数组最后一个元素的最小值[✓]位运算🟠🀄️open in new window 🔗open in new window
3136有效单词[✓]字符串🟢🀄️open in new window 🔗open in new window
3152特殊数组 II[✓]数组 二分查找 前缀和🟠🀄️open in new window 🔗open in new window
3163压缩字符串 III[✓]字符串🟠🀄️open in new window 🔗open in new window
3203合并两棵树后的最小直径[✓] 深度优先搜索 广度优先搜索 1+🔴🀄️open in new window 🔗open in new window
3243新增道路查询后的最短距离 I[✓]广度优先搜索 数组🟠🀄️open in new window 🔗open in new window
3264K 次乘运算后的最终数组 I[✓]数组 数学 模拟 1+🟢🀄️open in new window 🔗open in new window
3309连接二进制表示可形成的最大数值[✓]位运算 数组 枚举🟠🀄️open in new window 🔗open in new window
3318计算子数组的 x-sum I[✓]数组 哈希表 滑动窗口 1+🟢🀄️open in new window 🔗open in new window
3319第 K 大的完美二叉子树的大小[✓] 深度优先搜索 二叉树 1+🟠🀄️open in new window 🔗open in new window
3321计算子数组的 x-sum II[✓]数组 哈希表 滑动窗口 1+🔴🀄️open in new window 🔗open in new window