2170 |
使数组变成交替数组的最少操作数 |
[贪心] [数组] [哈希表] [计数] |
Medium |
2168 |
Unique Substrings With Equal Digit Frequency 🔒 |
[哈希表] [字符串] [计数] [哈希函数] [滚动哈希] |
Medium |
2166 |
设计位集 |
[设计] [数组] [哈希表] |
Medium |
2154 |
将找到的值乘以 2 |
[数组] [哈希表] [排序] [模拟] |
Easy |
2152 |
Minimum Number of Lines to Cover Points 🔒 |
[位运算] [几何] [数组] [哈希表] [数学] [动态规划] [回溯] [状态压缩] |
Medium |
2150 |
找出数组中的所有孤独数字 |
[数组] [哈希表] [计数] |
Medium |
2135 |
统计追加字母可以获得的单词数 |
[位运算] [数组] [哈希表] [字符串] [排序] |
Medium |
2133 |
检查是否每一行每一列都包含全部整数 |
[数组] [哈希表] [矩阵] |
Easy |
2131 |
连接两字母单词得到的最长回文串 |
[贪心] [数组] [哈希表] [字符串] [计数] |
Medium |
2122 |
还原原数组 |
[数组] [哈希表] [枚举] [排序] |
Hard |
2121 |
相同元素的间隔之和 |
[数组] [哈希表] [前缀和] |
Medium |
2115 |
从给定原材料中找到所有可以做出的菜 |
[图] [拓扑排序] [数组] [哈希表] [字符串] |
Medium |
2107 |
Number of Unique Flavors After Sharing K Candies 🔒 |
[数组] [哈希表] [滑动窗口] |
Medium |
2103 |
环和杆 |
[哈希表] [字符串] |
Easy |
2099 |
找到和最大的长度为 K 的子序列 |
[数组] [哈希表] [排序] [堆(优先队列)] |
Easy |
2094 |
找出 3 位偶数 |
[数组] [哈希表] [枚举] [排序] |
Easy |
2085 |
统计出现过一次的公共字符串 |
[数组] [哈希表] [字符串] [计数] |
Easy |
2083 |
求以相同字母开头和结尾的子串总数 🔒 |
[哈希表] [数学] [字符串] [计数] [前缀和] |
Medium |
2080 |
区间内查询数字的频率 |
[设计] [线段树] [数组] [哈希表] [二分查找] |
Medium |
2068 |
检查两个字符串是否几乎相等 |
[哈希表] [字符串] [计数] |
Easy |
2062 |
统计字符串中的元音子字符串 |
[哈希表] [字符串] |
Easy |
2053 |
数组中第 K 个独一无二的字符串 |
[数组] [哈希表] [字符串] [计数] |
Easy |
2043 |
简易银行系统 |
[设计] [数组] [哈希表] [模拟] |
Medium |
2034 |
股票价格波动 |
[设计] [哈希表] [数据流] [有序集合] [堆(优先队列)] |
Medium |
2032 |
至少在两个数组中出现的值 |
[数组] [哈希表] |
Easy |
2025 |
分割数组的最多方案数 |
[数组] [哈希表] [计数] [枚举] [前缀和] |
Hard |
2013 |
检测正方形 |
[设计] [数组] [哈希表] [计数] |
Medium |
2007 |
从双倍数组中还原原数组 |
[贪心] [数组] [哈希表] [排序] |
Medium |
2006 |
差的绝对值为 K 的数对数目 |
[数组] [哈希表] [计数] |
Easy |
2001 |
可互换矩形的组数 |
[数组] [哈希表] [数学] [计数] [数论] |
Medium |
1993 |
树上的操作 |
[树] [广度优先搜索] [设计] [哈希表] |
Medium |
1948 |
删除系统中的重复文件夹 |
[字典树] [数组] [哈希表] [字符串] [哈希函数] |
Hard |
1941 |
检查是否所有字符出现次数相同 |
[哈希表] [字符串] [计数] |
Easy |
1940 |
排序数组之间的最长公共子序列 🔒 |
[数组] [哈希表] [计数] |
Medium |
1935 |
可以输入的最大单词数 |
[哈希表] [字符串] |
Easy |
1932 |
合并多棵二叉搜索树 |
[树] [深度优先搜索] [哈希表] [二分查找] [二叉树] |
Hard |
1930 |
长度为 3 的不同回文子序列 |
[哈希表] [字符串] [前缀和] |
Medium |
1915 |
最美子字符串的数目 |
[位运算] [哈希表] [字符串] [前缀和] |
Medium |
1912 |
设计电影租借系统 |
[设计] [数组] [哈希表] [有序集合] [堆(优先队列)] |
Hard |
1906 |
查询差绝对值的最小值 |
[数组] [哈希表] |
Medium |
1897 |
重新分配字符使所有字符串都相等 |
[哈希表] [字符串] [计数] |
Easy |
1893 |
检查是否区域内所有整数都被覆盖 |
[数组] [哈希表] [前缀和] |
Easy |
1876 |
长度为三且各字符不同的子字符串 |
[哈希表] [字符串] [计数] [滑动窗口] |
Easy |
1865 |
找出和为指定值的下标对 |
[设计] [数组] [哈希表] |
Medium |
1857 |
有向图中最大颜色值 |
[图] [拓扑排序] [记忆化搜索] [哈希表] [动态规划] [计数] |
Hard |
1852 |
每个子数组的数字种类数 🔒 |
[数组] [哈希表] [滑动窗口] |
Medium |
1836 |
从未排序的链表中移除重复元素 🔒 |
[哈希表] [链表] |
Medium |
1832 |
判断句子是否为全字母句 |
[哈希表] [字符串] |
Easy |
1817 |
查找用户活跃分钟数 |
[数组] [哈希表] |
Medium |
1814 |
统计一个数组中好对子的数目 |
[数组] [哈希表] [数学] [计数] |
Medium |
1807 |
替换字符串中的括号内容 |
[数组] [哈希表] [字符串] |
Medium |
1805 |
字符串中不同整数的数目 |
[哈希表] [字符串] |
Easy |
1804 |
实现 Trie (前缀树) II 🔒 |
[设计] [字典树] [哈希表] [字符串] |
Medium |
1797 |
设计一个验证系统 |
[设计] [哈希表] |
Medium |
1796 |
字符串中第二大的数字 |
[哈希表] [字符串] |
Easy |
1794 |
统计距离最小的子串对个数 🔒 |
[贪心] [哈希表] [字符串] |
Medium |
1790 |
仅执行一次字符串交换能否使两个字符串相等 |
[哈希表] [字符串] [计数] |
Easy |
1781 |
所有子字符串美丽值之和 |
[哈希表] [字符串] [计数] |
Medium |
1775 |
通过最少操作次数使数组的和相等 |
[贪心] [数组] [哈希表] [计数] |
Medium |
1772 |
按受欢迎程度排列功能 🔒 |
[数组] [哈希表] [字符串] [排序] |
Medium |
1763 |
最长的美好子字符串 |
[位运算] [哈希表] [字符串] [滑动窗口] |
Easy |
1756 |
设计最近使用(MRU)队列 🔒 |
[栈] [设计] [树状数组] [数组] [哈希表] [有序集合] |
Medium |
1748 |
唯一元素的和 |
[数组] [哈希表] [计数] |
Easy |
1743 |
从相邻元素对还原数组 |
[数组] [哈希表] |
Medium |
1742 |
盒子中小球的最大数量 |
[哈希表] [数学] [计数] |
Easy |
1740 |
找到二叉树中的距离 🔒 |
[树] [深度优先搜索] [广度优先搜索] [哈希表] [二叉树] |
Medium |
1737 |
满足三条件之一需改变的最少字符数 |
[哈希表] [字符串] [计数] [前缀和] |
Medium |
1726 |
同积元组 |
[数组] [哈希表] |
Medium |
1713 |
得到子序列的最少操作次数 |
[贪心] [数组] [哈希表] [二分查找] |
Hard |
1711 |
大餐计数 |
[数组] [哈希表] |
Medium |
1695 |
删除子数组的最大得分 |
[数组] [哈希表] [滑动窗口] |
Medium |
1684 |
统计一致字符串的数目 |
[位运算] [数组] [哈希表] [字符串] |
Easy |
1679 |
K 和数对的最大数目 |
[数组] [哈希表] [双指针] [排序] |
Medium |
1674 |
使数组互补的最少操作次数 |
[数组] [哈希表] [前缀和] |
Medium |
1660 |
纠正二叉树 🔒 |
[树] [深度优先搜索] [广度优先搜索] [哈希表] [二叉树] |
Medium |
1658 |
将 x 减到 0 的最小操作数 |
[数组] [哈希表] [二分查找] [前缀和] [滑动窗口] |
Medium |
1657 |
确定两个字符串是否接近 |
[哈希表] [字符串] [排序] |
Medium |
1656 |
设计有序流 |
[设计] [数组] [哈希表] [数据流] |
Easy |
1650 |
二叉树的最近公共祖先 III 🔒 |
[树] [哈希表] [二叉树] |
Medium |
1640 |
能否连接形成数组 |
[数组] [哈希表] |
Easy |
1638 |
统计只差一个字符的子串数目 |
[哈希表] [字符串] [动态规划] |
Medium |
1636 |
按照频率将数组升序排序 |
[数组] [哈希表] [排序] |
Easy |
1624 |
两个相同字符之间的最长子字符串 |
[哈希表] [字符串] |
Easy |
1604 |
警告一小时内使用相同员工卡大于等于三次的人 |
[数组] [哈希表] [字符串] [排序] |
Medium |
1600 |
皇位继承顺序 |
[树] [深度优先搜索] [设计] [哈希表] |
Medium |
1593 |
拆分字符串使唯一子字符串的数目最大 |
[哈希表] [字符串] [回溯] |
Medium |
1590 |
使数组和能被 P 整除 |
[数组] [哈希表] [前缀和] |
Medium |
1577 |
数的平方等于两数乘积的方法数 |
[数组] [哈希表] [数学] [双指针] |
Medium |
1570 |
两个稀疏向量的点积 🔒 |
[设计] [数组] [哈希表] [双指针] |
Medium |
1554 |
只有一个不同字符的字符串 🔒 |
[哈希表] [字符串] [哈希函数] [滚动哈希] |
Medium |
1546 |
和为目标值且不重叠的非空子数组的最大数目 |
[贪心] [数组] [哈希表] [前缀和] |
Medium |
1542 |
找出最长的超赞子字符串 |
[位运算] [哈希表] [字符串] |
Hard |
1540 |
K 次操作转变字符串 |
[哈希表] [字符串] |
Medium |
1512 |
好数对的数目 |
[数组] [哈希表] [数学] [计数] |
Easy |
1506 |
找到 N 叉树的根节点 🔒 |
[位运算] [树] [深度优先搜索] [哈希表] |
Medium |
1500 |
设计文件分享系统 🔒 |
[设计] [哈希表] [数据流] [堆(优先队列)] |
Medium |
1497 |
检查数组对是否可以被 k 整除 |
[数组] [哈希表] [计数] |
Medium |
1496 |
判断路径是否相交 |
[哈希表] [字符串] |
Easy |
1490 |
克隆 N 叉树 🔒 |
[树] [深度优先搜索] [广度优先搜索] [哈希表] |
Medium |
1488 |
避免洪水泛滥 |
[贪心] [数组] [哈希表] [二分查找] [堆(优先队列)] |
Medium |
1487 |
保证文件名唯一 |
[数组] [哈希表] [字符串] |
Medium |
1485 |
克隆含随机指针的二叉树 🔒 |
[树] [深度优先搜索] [广度优先搜索] [哈希表] [二叉树] |
Medium |
1481 |
不同整数的最少数目 |
[贪心] [数组] [哈希表] [计数] [排序] |
Medium |
1477 |
找两个和为目标值且不重叠的子数组 |
[数组] [哈希表] [二分查找] [动态规划] [滑动窗口] |
Medium |
1461 |
检查一个字符串是否包含所有长度为 K 的二进制子串 |
[位运算] [哈希表] [字符串] [哈希函数] [滚动哈希] |
Medium |
1460 |
通过翻转子数组使两个数组相等 |
[数组] [哈希表] [排序] |
Easy |
1452 |
收藏清单 |
[数组] [哈希表] [字符串] |
Medium |
1443 |
收集树上所有苹果的最少时间 |
[树] [深度优先搜索] [广度优先搜索] [哈希表] |
Medium |
1442 |
形成两个异或相等数组的三元组数目 |
[位运算] [数组] [哈希表] [数学] [前缀和] |
Medium |
1436 |
旅行终点站 |
[哈希表] [字符串] |
Easy |
1429 |
第一个唯一数字 🔒 |
[设计] [队列] [数组] [哈希表] [数据流] |
Medium |
1426 |
数元素 🔒 |
[数组] [哈希表] |
Easy |
1418 |
点菜展示表 |
[数组] [哈希表] [字符串] [有序集合] [排序] |
Medium |
1410 |
HTML 实体解析器 |
[哈希表] [字符串] |
Medium |
1400 |
构造 K 个回文字符串 |
[贪心] [哈希表] [字符串] [计数] |
Medium |
1399 |
统计最大组的数目 |
[哈希表] [数学] |
Easy |
1396 |
设计地铁系统 |
[设计] [哈希表] [字符串] |
Medium |
1394 |
找出数组中的幸运数 |
[数组] [哈希表] [计数] |
Easy |
1386 |
安排电影院座位 |
[贪心] [位运算] [数组] [哈希表] |
Medium |
1371 |
每个元音包含偶数次的最长子字符串 |
[位运算] [哈希表] [字符串] [前缀和] |
Medium |
1370 |
上升下降字符串 |
[哈希表] [字符串] [计数] |
Easy |
1366 |
通过投票对团队排名 |
[数组] [哈希表] [字符串] [计数] [排序] |
Medium |
1365 |
有多少小于当前数字的数字 |
[数组] [哈希表] [计数] [排序] |
Easy |
1358 |
包含所有三种字符的子字符串数目 |
[哈希表] [字符串] [滑动窗口] |
Medium |
1357 |
每隔 n 个顾客打折 |
[设计] [数组] [哈希表] |
Medium |
1348 |
推文计数 |
[设计] [哈希表] [二分查找] [有序集合] [排序] |
Medium |
1347 |
制造字母异位词的最小步骤数 |
[哈希表] [字符串] |
Medium |
1346 |
检查整数及其两倍数是否存在 |
[数组] [哈希表] [双指针] [二分查找] [排序] |
Easy |
1345 |
跳跃游戏 IV |
[广度优先搜索] [数组] [哈希表] |
Hard |
1338 |
数组大小减半 |
[贪心] [数组] [哈希表] [排序] [堆(优先队列)] |
Medium |
1331 |
数组序号转换 |
[数组] [哈希表] [排序] |
Easy |
1325 |
删除给定值的叶子节点 |
[树] [深度优先搜索] [广度优先搜索] [哈希表] [二叉树] |
Medium |
1311 |
获取你好友已观看的视频 |
[广度优先搜索] [数组] [哈希表] [排序] |
Medium |
1297 |
子串的最大出现次数 |
[哈希表] [字符串] [滑动窗口] |
Medium |
1296 |
划分数组为连续数字的集合 |
[贪心] [数组] [哈希表] [排序] |
Medium |
1282 |
用户分组 |
[数组] [哈希表] |
Medium |
1275 |
找出井字棋的获胜者 |
[数组] [哈希表] [矩阵] [模拟] |
Easy |
1258 |
近义词句子 🔒 |
[并查集] [数组] [哈希表] [字符串] [回溯] |
Medium |
1257 |
最小公共区域 🔒 |
[树] [深度优先搜索] [广度优先搜索] [数组] [哈希表] [字符串] |
Medium |
1248 |
统计「优美子数组」 |
[数组] [哈希表] [数学] [滑动窗口] |
Medium |
1244 |
力扣排行榜 🔒 |
[设计] [哈希表] [排序] |
Medium |
1224 |
最大相等频率 |
[数组] [哈希表] |
Hard |
1218 |
最长定差子序列 |
[数组] [哈希表] [动态规划] |
Medium |
1213 |
三个有序数组的交集 🔒 |
[数组] [哈希表] [二分查找] [计数] |
Easy |
1207 |
独一无二的出现次数 |
[数组] [哈希表] |
Easy |
1202 |
交换字符串中的元素 |
[深度优先搜索] [广度优先搜索] [并查集] [哈希表] [字符串] |
Medium |
1198 |
找出所有行中最小公共元素 🔒 |
[数组] [哈希表] [二分查找] [计数] [矩阵] |
Medium |
1189 |
“气球” 的最大数量 |
[哈希表] [字符串] [计数] |
Easy |
1181 |
前后拼接 🔒 |
[数组] [哈希表] [字符串] [排序] |
Medium |
1178 |
猜字谜 |
[位运算] [字典树] [数组] [哈希表] [字符串] |
Hard |
1177 |
构建回文串检测 |
[位运算] [哈希表] [字符串] [前缀和] |
Medium |
1172 |
餐盘栈 |
[栈] [设计] [哈希表] [堆(优先队列)] |
Hard |
1171 |
从链表中删去总和值为零的连续节点 |
[哈希表] [链表] |
Medium |
1170 |
比较字符串最小字母出现频次 |
[数组] [哈希表] [字符串] [二分查找] [排序] |
Medium |
1169 |
查询无效交易 |
[数组] [哈希表] [字符串] [排序] |
Medium |
1166 |
设计文件系统 🔒 |
[设计] [字典树] [哈希表] [字符串] |
Medium |
1165 |
单行键盘 🔒 |
[哈希表] [字符串] |
Easy |
1160 |
拼写单词 |
[数组] [哈希表] [字符串] |
Easy |
1153 |
字符串转化 🔒 |
[哈希表] [字符串] |
Hard |
1152 |
用户网站访问行为分析 🔒 |
[数组] [哈希表] [排序] |
Medium |
1146 |
快照数组 |
[设计] [数组] [哈希表] [二分查找] |
Medium |
1138 |
字母板上的路径 |
[哈希表] [字符串] |
Medium |
1133 |
最大唯一数 🔒 |
[数组] [哈希表] [排序] |
Easy |
1128 |
等价多米诺骨牌对的数量 |
[数组] [哈希表] [计数] |
Easy |
1124 |
表现良好的最长时间段 |
[栈] [数组] [哈希表] [前缀和] [单调栈] |
Medium |
1123 |
最深叶节点的最近公共祖先 |
[树] [深度优先搜索] [广度优先搜索] [哈希表] [二叉树] |
Medium |
1122 |
数组的相对排序 |
[数组] [哈希表] [计数排序] [排序] |
Easy |
1100 |
长度为 K 的无重复字符子串 🔒 |
[哈希表] [字符串] [滑动窗口] |
Medium |
1090 |
受标签影响的最大值 |
[贪心] [数组] [哈希表] [计数] [排序] |
Medium |
1086 |
前五科的均分 🔒 |
[数组] [哈希表] [排序] |
Easy |
1074 |
元素和为目标值的子矩阵数量 |
[数组] [哈希表] [矩阵] [前缀和] |
Hard |
1072 |
按列翻转得到最大值等行数 |
[数组] [哈希表] [矩阵] |
Medium |
1054 |
距离相等的条形码 |
[贪心] [数组] [哈希表] [计数] [排序] [堆(优先队列)] |
Medium |
1048 |
最长字符串链 |
[数组] [哈希表] [双指针] [字符串] [动态规划] |
Medium |
1036 |
逃离大迷宫 |
[深度优先搜索] [广度优先搜索] [数组] [哈希表] |
Hard |
1027 |
最长等差数列 |
[数组] [哈希表] [二分查找] [动态规划] |
Medium |
1015 |
可被 K 整除的最小整数 |
[哈希表] [数学] |
Medium |
1010 |
总持续时间可被 60 整除的歌曲 |
[数组] [哈希表] [计数] |
Medium |
1002 |
查找共用字符 |
[数组] [哈希表] [字符串] |
Easy |
1001 |
网格照明 |
[数组] [哈希表] |
Hard |
997 |
找到小镇的法官 |
[图] [数组] [哈希表] |
Easy |
992 |
K 个不同整数的子数组 |
[数组] [哈希表] [计数] [滑动窗口] |
Hard |
987 |
二叉树的垂序遍历 |
[树] [深度优先搜索] [广度优先搜索] [哈希表] [二叉树] |
Hard |
982 |
按位与为零的三元组 |
[位运算] [数组] [哈希表] |
Hard |
981 |
基于时间的键值存储 |
[设计] [哈希表] [字符串] [二分查找] |
Medium |
974 |
和可被 K 整除的子数组 |
[数组] [哈希表] [前缀和] |
Medium |
970 |
强整数 |
[哈希表] [数学] |
Medium |
966 |
元音拼写检查器 |
[数组] [哈希表] [字符串] |
Medium |
961 |
在长度 2N 的数组中找出重复 N 次的元素 |
[数组] [哈希表] |
Easy |
957 |
N 天后的牢房 |
[位运算] [数组] [哈希表] [数学] |
Medium |
954 |
二倍数对数组 |
[贪心] [数组] [哈希表] [排序] |
Medium |
953 |
验证外星语词典 |
[数组] [哈希表] [字符串] |
Easy |
939 |
最小面积矩形 |
[几何] [数组] [哈希表] [数学] [排序] |
Medium |
930 |
和相同的二元子数组 |
[数组] [哈希表] [前缀和] [滑动窗口] |
Medium |
929 |
独特的电子邮件地址 |
[数组] [哈希表] [字符串] |
Easy |
923 |
三数之和的多种可能 |
[数组] [哈希表] [双指针] [计数] [排序] |
Medium |
916 |
单词子集 |
[数组] [哈希表] [字符串] |
Medium |
914 |
卡牌分组 |
[数组] [哈希表] [数学] [计数] [数论] |
Easy |
911 |
在线选举 |
[设计] [数组] [哈希表] [二分查找] |
Medium |
904 |
水果成篮 |
[数组] [哈希表] [滑动窗口] |
Medium |
895 |
最大频率栈 |
[栈] [设计] [哈希表] [有序集合] |
Hard |
893 |
特殊等价字符串组 |
[数组] [哈希表] [字符串] |
Medium |
890 |
查找和替换模式 |
[数组] [哈希表] [字符串] |
Medium |
889 |
根据前序和后序遍历构造二叉树 |
[树] [数组] [哈希表] [分治] [二叉树] |
Medium |
888 |
公平的糖果交换 |
[数组] [哈希表] [二分查找] [排序] |
Easy |
884 |
两句话中的不常见单词 |
[哈希表] [字符串] |
Easy |
873 |
最长的斐波那契子序列的长度 |
[数组] [哈希表] [动态规划] |
Medium |
865 |
具有所有最深节点的最小子树 |
[树] [深度优先搜索] [广度优先搜索] [哈希表] [二叉树] |
Medium |
859 |
亲密字符串 |
[哈希表] [字符串] |
Easy |
846 |
一手顺子 |
[贪心] [数组] [哈希表] [排序] |
Medium |
823 |
带因子的二叉树 |
[数组] [哈希表] [动态规划] |
Medium |
822 |
翻转卡片游戏 |
[数组] [哈希表] |
Medium |
820 |
单词的压缩编码 |
[字典树] [数组] [哈希表] [字符串] |
Medium |
819 |
最常见的单词 |
[哈希表] [字符串] |
Easy |
817 |
链表组件 |
[哈希表] [链表] |
Medium |
815 |
公交路线 |
[广度优先搜索] [数组] [哈希表] |
Hard |
811 |
子域名访问计数 |
[数组] [哈希表] [字符串] [计数] |
Medium |
804 |
唯一摩尔斯密码词 |
[数组] [哈希表] [字符串] |
Easy |
792 |
匹配子序列的单词数 |
[字典树] [哈希表] [字符串] [排序] |
Medium |
791 |
自定义字符串排序 |
[哈希表] [字符串] [排序] |
Medium |
781 |
森林中的兔子 |
[贪心] [数组] [哈希表] [数学] |
Medium |
771 |
宝石与石头 |
[哈希表] [字符串] |
Easy |
770 |
基本计算器 IV |
[栈] [递归] [哈希表] [数学] [字符串] |
Hard |
767 |
重构字符串 |
[贪心] [哈希表] [字符串] [计数] [排序] [堆(优先队列)] |
Medium |
763 |
划分字母区间 |
[贪心] [哈希表] [双指针] [字符串] |
Medium |
760 |
找出变位映射 🔒 |
[数组] [哈希表] |
Easy |
758 |
字符串中的加粗单词 🔒 |
[字典树] [数组] [哈希表] [字符串] [字符串匹配] |
Medium |
752 |
打开转盘锁 |
[广度优先搜索] [数组] [哈希表] [字符串] |
Medium |
748 |
最短补全词 |
[数组] [哈希表] [字符串] |
Easy |
740 |
删除并获得点数 |
[数组] [哈希表] [动态规划] |
Medium |
737 |
句子相似性 II 🔒 |
[深度优先搜索] [广度优先搜索] [并查集] [数组] [哈希表] [字符串] |
Medium |
736 |
Lisp 语法解析 |
[栈] [递归] [哈希表] [字符串] |
Hard |
734 |
句子相似性 🔒 |
[数组] [哈希表] [字符串] |
Easy |
726 |
原子的数量 |
[栈] [哈希表] [字符串] [排序] |
Hard |
720 |
词典中最长的单词 |
[字典树] [数组] [哈希表] [字符串] [排序] |
Easy |
711 |
不同岛屿的数量 II 🔒 |
[深度优先搜索] [广度优先搜索] [并查集] [哈希表] [哈希函数] |
Hard |
710 |
黑名单中的随机数 |
[哈希表] [数学] [二分查找] [排序] [随机化] |
Hard |
706 |
设计哈希映射 |
[设计] [数组] [哈希表] [链表] [哈希函数] |
Easy |
705 |
设计哈希集合 |
[设计] [数组] [哈希表] [链表] [哈希函数] |
Easy |
697 |
数组的度 |
[数组] [哈希表] |
Easy |
694 |
不同岛屿的数量 🔒 |
[深度优先搜索] [广度优先搜索] [并查集] [哈希表] [哈希函数] |
Medium |
692 |
前K个高频单词 |
[字典树] [哈希表] [字符串] [桶排序] [计数] [排序] [堆(优先队列)] |
Medium |
690 |
员工的重要性 |
[深度优先搜索] [广度优先搜索] [哈希表] |
Medium |
677 |
键值映射 |
[设计] [字典树] [哈希表] [字符串] |
Medium |
676 |
实现一个魔法字典 |
[设计] [字典树] [哈希表] [字符串] |
Medium |
659 |
分割数组为连续子序列 |
[贪心] [数组] [哈希表] [堆(优先队列)] |
Medium |
653 |
两数之和 IV - 输入 BST |
[树] [深度优先搜索] [广度优先搜索] [二叉搜索树] [哈希表] [双指针] [二叉树] |
Easy |
648 |
单词替换 |
[字典树] [数组] [哈希表] [字符串] |
Medium |
645 |
错误的集合 |
[位运算] [数组] [哈希表] [排序] |
Easy |
635 |
设计日志存储系统 🔒 |
[设计] [哈希表] [字符串] [有序集合] |
Medium |
632 |
最小区间 |
[贪心] [数组] [哈希表] [排序] [滑动窗口] [堆(优先队列)] |
Hard |
621 |
任务调度器 |
[贪心] [数组] [哈希表] [计数] [排序] [堆(优先队列)] |
Medium |
616 |
给字符串添加加粗标签 🔒 |
[字典树] [数组] [哈希表] [字符串] [字符串匹配] |
Medium |
609 |
在系统中查找重复文件 |
[数组] [哈希表] [字符串] |
Medium |
604 |
迭代压缩字符串 🔒 |
[设计] [数组] [哈希表] [字符串] [迭代器] |
Easy |
599 |
两个列表的最小索引总和 |
[数组] [哈希表] [字符串] |
Easy |
594 |
最长和谐子序列 |
[数组] [哈希表] [排序] |
Easy |
588 |
设计内存文件系统 🔒 |
[设计] [字典树] [哈希表] [字符串] |
Hard |
582 |
杀掉进程 🔒 |
[树] [深度优先搜索] [广度优先搜索] [数组] [哈希表] |
Medium |
575 |
分糖果 |
[数组] [哈希表] |
Easy |
567 |
字符串的排列 |
[哈希表] [双指针] [字符串] [滑动窗口] |
Medium |
560 |
和为 K 的子数组 |
[数组] [哈希表] [前缀和] |
Medium |
554 |
砖墙 |
[数组] [哈希表] |
Medium |
535 |
TinyURL 的加密与解密 |
[设计] [哈希表] [字符串] [哈希函数] |
Medium |
533 |
孤独像素 II 🔒 |
[数组] [哈希表] [矩阵] |
Medium |
532 |
数组中的 k-diff 数对 |
[数组] [哈希表] [双指针] [二分查找] [排序] |
Medium |
531 |
孤独像素 I 🔒 |
[数组] [哈希表] [矩阵] |
Medium |
525 |
连续数组 |
[数组] [哈希表] [前缀和] |
Medium |
523 |
连续的子数组和 |
[数组] [哈希表] [数学] [前缀和] |
Medium |
522 |
最长特殊序列 II |
[数组] [哈希表] [双指针] [字符串] [排序] |
Medium |
519 |
随机翻转矩阵 |
[水塘抽样] [哈希表] [数学] [随机化] |
Medium |
508 |
出现次数最多的子树元素和 |
[树] [深度优先搜索] [哈希表] [二叉树] |
Medium |
500 |
键盘行 |
[数组] [哈希表] [字符串] |
Easy |
496 |
下一个更大元素 I |
[栈] [数组] [哈希表] [单调栈] |
Easy |
491 |
递增子序列 |
[位运算] [数组] [哈希表] [回溯] |
Medium |
480 |
滑动窗口中位数 |
[数组] [哈希表] [滑动窗口] [堆(优先队列)] |
Hard |
460 |
LFU 缓存 |
[设计] [哈希表] [链表] [双向链表] |
Hard |
457 |
环形数组是否存在循环 |
[数组] [哈希表] [双指针] |
Medium |
454 |
四数相加 II |
[数组] [哈希表] |
Medium |
451 |
根据字符出现频率排序 |
[哈希表] [字符串] [桶排序] [计数] [排序] [堆(优先队列)] |
Medium |
448 |
找到所有数组中消失的数字 |
[数组] [哈希表] |
Easy |
447 |
回旋镖的数量 |
[数组] [哈希表] [数学] |
Medium |
442 |
数组中重复的数据 |
[数组] [哈希表] |
Medium |
438 |
找到字符串中所有字母异位词 |
[哈希表] [字符串] [滑动窗口] |
Medium |
433 |
最小基因变化 |
[广度优先搜索] [哈希表] [字符串] |
Medium |
432 |
全 O(1) 的数据结构 |
[设计] [哈希表] [链表] [双向链表] |
Hard |
424 |
替换后的最长重复字符 |
[哈希表] [字符串] [滑动窗口] |
Medium |
423 |
从英文中重建数字 |
[哈希表] [数学] [字符串] |
Medium |
421 |
数组中两个数的最大异或值 |
[位运算] [字典树] [数组] [哈希表] |
Medium |
409 |
最长回文串 |
[贪心] [哈希表] [字符串] |
Easy |
398 |
随机数索引 |
[水塘抽样] [哈希表] [数学] [随机化] |
Medium |
395 |
至少有 K 个重复字符的最长子串 |
[哈希表] [字符串] [分治] [滑动窗口] |
Medium |
389 |
找不同 |
[位运算] [哈希表] [字符串] [排序] |
Easy |
387 |
字符串中的第一个唯一字符 |
[队列] [哈希表] [字符串] [计数] |
Easy |
383 |
赎金信 |
[哈希表] [字符串] [计数] |
Easy |
381 |
O(1) 时间插入、删除和获取随机元素 - 允许重复 |
[设计] [数组] [哈希表] [数学] [随机化] |
Hard |
380 |
O(1) 时间插入、删除和获取随机元素 |
[设计] [数组] [哈希表] [数学] [随机化] |
Medium |
379 |
电话目录管理系统 🔒 |
[设计] [队列] [数组] [哈希表] [链表] |
Medium |
362 |
敲击计数器 🔒 |
[设计] [队列] [数组] [哈希表] [二分查找] |
Medium |
359 |
日志速率限制器 🔒 |
[设计] [哈希表] |
Easy |
358 |
K 距离间隔重排字符串 🔒 |
[贪心] [哈希表] [字符串] [计数] [排序] [堆(优先队列)] |
Hard |
356 |
直线镜像 🔒 |
[数组] [哈希表] [数学] |
Medium |
355 |
设计推特 |
[设计] [哈希表] [链表] [堆(优先队列)] |
Medium |
350 |
两个数组的交集 II |
[数组] [哈希表] [双指针] [二分查找] [排序] |
Easy |
349 |
两个数组的交集 |
[数组] [哈希表] [双指针] [二分查找] [排序] |
Easy |
348 |
设计井字棋 🔒 |
[设计] [数组] [哈希表] [矩阵] |
Medium |
347 |
前 K 个高频元素 |
[数组] [哈希表] [分治] [桶排序] [计数] [快速选择] [排序] [堆(优先队列)] |
Medium |
340 |
至多包含 K 个不同字符的最长子串 🔒 |
[哈希表] [字符串] [滑动窗口] |
Medium |
336 |
回文对 |
[字典树] [数组] [哈希表] [字符串] |
Hard |
325 |
和等于 k 的最长子数组长度 🔒 |
[数组] [哈希表] |
Medium |
314 |
二叉树的垂直遍历 🔒 |
[树] [深度优先搜索] [广度优先搜索] [哈希表] [二叉树] |
Medium |
313 |
超级丑数 |
[数组] [哈希表] [数学] [动态规划] [堆(优先队列)] |
Medium |
311 |
稀疏矩阵的乘法 🔒 |
[数组] [哈希表] [矩阵] |
Medium |
299 |
猜数字游戏 |
[哈希表] [字符串] [计数] |
Medium |
291 |
单词规律 II 🔒 |
[哈希表] [字符串] [回溯] |
Medium |
290 |
单词规律 |
[哈希表] [字符串] |
Easy |
288 |
单词的唯一缩写 🔒 |
[设计] [数组] [哈希表] [字符串] |
Medium |
268 |
丢失的数字 |
[位运算] [数组] [哈希表] [数学] [排序] |
Easy |
267 |
回文排列 II 🔒 |
[哈希表] [字符串] [回溯] |
Medium |
266 |
回文排列 🔒 |
[位运算] [哈希表] [字符串] |
Easy |
264 |
丑数 II |
[哈希表] [数学] [动态规划] [堆(优先队列)] |
Medium |
249 |
移位字符串分组 🔒 |
[数组] [哈希表] [字符串] |
Medium |
246 |
中心对称数 🔒 |
[哈希表] [双指针] [字符串] |
Easy |
244 |
最短单词距离 II 🔒 |
[设计] [数组] [哈希表] [双指针] [字符串] |
Medium |
242 |
有效的字母异位词 |
[哈希表] [字符串] [排序] |
Easy |
229 |
求众数 II |
[数组] [哈希表] [计数] [排序] |
Medium |
219 |
存在重复元素 II |
[数组] [哈希表] [滑动窗口] |
Easy |
217 |
存在重复元素 |
[数组] [哈希表] [排序] |
Easy |
208 |
实现 Trie (前缀树) |
[设计] [字典树] [哈希表] [字符串] |
Medium |
205 |
同构字符串 |
[哈希表] [字符串] |
Easy |
202 |
快乐数 |
[哈希表] [数学] [双指针] |
Easy |
187 |
重复的DNA序列 |
[位运算] [哈希表] [字符串] [滑动窗口] [哈希函数] [滚动哈希] |
Medium |
170 |
两数之和 III - 数据结构设计 🔒 |
[设计] [数组] [哈希表] [双指针] [数据流] |
Easy |
169 |
多数元素 |
[数组] [哈希表] [分治] [计数] [排序] |
Easy |
166 |
分数到小数 |
[哈希表] [数学] [字符串] |
Medium |
160 |
相交链表 |
[哈希表] [链表] [双指针] |
Easy |
159 |
至多包含两个不同字符的最长子串 🔒 |
[哈希表] [字符串] [滑动窗口] |
Medium |
149 |
直线上最多的点数 |
[几何] [数组] [哈希表] [数学] |
Hard |
146 |
LRU 缓存 |
[设计] [哈希表] [链表] [双向链表] |
Medium |
142 |
环形链表 II |
[哈希表] [链表] [双指针] |
Medium |
141 |
环形链表 |
[哈希表] [链表] [双指针] |
Easy |
140 |
单词拆分 II |
[字典树] [记忆化搜索] [哈希表] [字符串] [动态规划] [回溯] |
Hard |
139 |
单词拆分 |
[字典树] [记忆化搜索] [哈希表] [字符串] [动态规划] |
Medium |
138 |
复制带随机指针的链表 |
[哈希表] [链表] |
Medium |
133 |
克隆图 |
[深度优先搜索] [广度优先搜索] [图] [哈希表] |
Medium |
128 |
最长连续序列 |
[并查集] [数组] [哈希表] |
Medium |
127 |
单词接龙 |
[广度优先搜索] [哈希表] [字符串] |
Hard |
126 |
单词接龙 II |
[广度优先搜索] [哈希表] [字符串] [回溯] |
Hard |
106 |
从中序与后序遍历序列构造二叉树 |
[树] [数组] [哈希表] [分治] [二叉树] |
Medium |
105 |
从前序与中序遍历序列构造二叉树 |
[树] [数组] [哈希表] [分治] [二叉树] |
Medium |
76 |
最小覆盖子串 |
[哈希表] [字符串] [滑动窗口] |
Hard |
73 |
矩阵置零 |
[数组] [哈希表] [矩阵] |
Medium |
49 |
字母异位词分组 |
[哈希表] [字符串] [排序] |
Medium |
41 |
缺失的第一个正数 |
[数组] [哈希表] |
Hard |
36 |
有效的数独 |
[数组] [哈希表] [矩阵] |
Medium |
30 |
串联所有单词的子串 |
[哈希表] [字符串] [滑动窗口] |
Hard |
17 |
电话号码的字母组合 |
[哈希表] [字符串] [回溯] |
Medium |
13 |
罗马数字转整数 |
[哈希表] [数学] [字符串] |
Easy |
12 |
整数转罗马数字 |
[哈希表] [数学] [字符串] |
Medium |
3 |
无重复字符的最长子串 |
[哈希表] [字符串] [滑动窗口] |
Medium |
1 |
两数之和 |
[数组] [哈希表] |
Easy |