话题分类 > 计数
# | 题目 | 标签 | 难度 |
---|---|---|---|
2170 | 使数组变成交替数组的最少操作数 | [贪心] [数组] [哈希表] [计数] | Medium |
2168 | Unique Substrings With Equal Digit Frequency 🔒 | [哈希表] [字符串] [计数] [哈希函数] [滚动哈希] | Medium |
2150 | 找出数组中的所有孤独数字 | [数组] [哈希表] [计数] | Medium |
2131 | 连接两字母单词得到的最长回文串 | [贪心] [数组] [哈希表] [字符串] [计数] | Medium |
2085 | 统计出现过一次的公共字符串 | [数组] [哈希表] [字符串] [计数] | Easy |
2083 | 求以相同字母开头和结尾的子串总数 🔒 | [哈希表] [数学] [字符串] [计数] [前缀和] | Medium |
2068 | 检查两个字符串是否几乎相等 | [哈希表] [字符串] [计数] | Easy |
2067 | Number of Equal Count Substrings 🔒 | [字符串] [计数] [前缀和] | Medium |
2053 | 数组中第 K 个独一无二的字符串 | [数组] [哈希表] [字符串] [计数] | Easy |
2029 | 石子游戏 IX | [贪心] [数组] [数学] [计数] [博弈] | Medium |
2025 | 分割数组的最多方案数 | [数组] [哈希表] [计数] [枚举] [前缀和] | Hard |
2014 | 重复 K 次的最长子序列 | [贪心] [字符串] [回溯] [计数] [枚举] | Hard |
2013 | 检测正方形 | [设计] [数组] [哈希表] [计数] | Medium |
2006 | 差的绝对值为 K 的数对数目 | [数组] [哈希表] [计数] | Easy |
2001 | 可互换矩形的组数 | [数组] [哈希表] [数学] [计数] [数论] | Medium |
1941 | 检查是否所有字符出现次数相同 | [哈希表] [字符串] [计数] | Easy |
1940 | 排序数组之间的最长公共子序列 🔒 | [数组] [哈希表] [计数] | Medium |
1897 | 重新分配字符使所有字符串都相等 | [哈希表] [字符串] [计数] | Easy |
1876 | 长度为三且各字符不同的子字符串 | [哈希表] [字符串] [计数] [滑动窗口] | Easy |
1857 | 有向图中最大颜色值 | [图] [拓扑排序] [记忆化搜索] [哈希表] [动态规划] [计数] | Hard |
1854 | 人口最多的年份 | [数组] [计数] | Easy |
1819 | 序列中不同最大公约数的数目 | [数组] [数学] [计数] [数论] | Hard |
1814 | 统计一个数组中好对子的数目 | [数组] [哈希表] [数学] [计数] | Medium |
1790 | 仅执行一次字符串交换能否使两个字符串相等 | [哈希表] [字符串] [计数] | Easy |
1781 | 所有子字符串美丽值之和 | [哈希表] [字符串] [计数] | Medium |
1775 | 通过最少操作次数使数组的和相等 | [贪心] [数组] [哈希表] [计数] | Medium |
1748 | 唯一元素的和 | [数组] [哈希表] [计数] | Easy |
1742 | 盒子中小球的最大数量 | [哈希表] [数学] [计数] | Easy |
1737 | 满足三条件之一需改变的最少字符数 | [哈希表] [字符串] [计数] [前缀和] | Medium |
1704 | 判断字符串的两半是否相似 | [字符串] [计数] | Easy |
1603 | 设计停车系统 | [设计] [计数] [模拟] | Easy |
1512 | 好数对的数目 | [数组] [哈希表] [数学] [计数] | Easy |
1497 | 检查数组对是否可以被 k 整除 | [数组] [哈希表] [计数] | Medium |
1481 | 不同整数的最少数目 | [贪心] [数组] [哈希表] [计数] [排序] | Medium |
1419 | 数青蛙 | [字符串] [计数] | Medium |
1400 | 构造 K 个回文字符串 | [贪心] [哈希表] [字符串] [计数] | Medium |
1394 | 找出数组中的幸运数 | [数组] [哈希表] [计数] | Easy |
1370 | 上升下降字符串 | [哈希表] [字符串] [计数] | Easy |
1366 | 通过投票对团队排名 | [数组] [哈希表] [字符串] [计数] [排序] | Medium |
1365 | 有多少小于当前数字的数字 | [数组] [哈希表] [计数] [排序] | Easy |
1356 | 根据数字二进制下 1 的数目排序 | [位运算] [数组] [计数] [排序] | Easy |
1267 | 统计参与通信的服务器 | [深度优先搜索] [广度优先搜索] [并查集] [数组] [计数] [矩阵] | Medium |
1221 | 分割平衡字符串 | [贪心] [字符串] [计数] | Easy |
1213 | 三个有序数组的交集 🔒 | [数组] [哈希表] [二分查找] [计数] | Easy |
1198 | 找出所有行中最小公共元素 🔒 | [数组] [哈希表] [二分查找] [计数] [矩阵] | Medium |
1189 | “气球” 的最大数量 | [哈希表] [字符串] [计数] | Easy |
1128 | 等价多米诺骨牌对的数量 | [数组] [哈希表] [计数] | Easy |
1090 | 受标签影响的最大值 | [贪心] [数组] [哈希表] [计数] [排序] | Medium |
1054 | 距离相等的条形码 | [贪心] [数组] [哈希表] [计数] [排序] [堆(优先队列)] | Medium |
1010 | 总持续时间可被 60 整除的歌曲 | [数组] [哈希表] [计数] | Medium |
992 | K 个不同整数的子数组 | [数组] [哈希表] [计数] [滑动窗口] | Hard |
945 | 使数组唯一的最小增量 | [贪心] [数组] [计数] [排序] | Medium |
923 | 三数之和的多种可能 | [数组] [哈希表] [双指针] [计数] [排序] | Medium |
914 | 卡牌分组 | [数组] [哈希表] [数学] [计数] [数论] | Easy |
900 | RLE 迭代器 | [设计] [数组] [计数] [迭代器] | Medium |
869 | 重新排序得到 2 的幂 | [数学] [计数] [枚举] [排序] | Medium |
811 | 子域名访问计数 | [数组] [哈希表] [字符串] [计数] | Medium |
767 | 重构字符串 | [贪心] [哈希表] [字符串] [计数] [排序] [堆(优先队列)] | Medium |
692 | 前K个高频单词 | [字典树] [哈希表] [字符串] [桶排序] [计数] [排序] [堆(优先队列)] | Medium |
621 | 任务调度器 | [贪心] [数组] [哈希表] [计数] [排序] [堆(优先队列)] | Medium |
451 | 根据字符出现频率排序 | [哈希表] [字符串] [桶排序] [计数] [排序] [堆(优先队列)] | Medium |
387 | 字符串中的第一个唯一字符 | [队列] [哈希表] [字符串] [计数] | Easy |
383 | 赎金信 | [哈希表] [字符串] [计数] | Easy |
358 | K 距离间隔重排字符串 🔒 | [贪心] [哈希表] [字符串] [计数] [排序] [堆(优先队列)] | Hard |
347 | 前 K 个高频元素 | [数组] [哈希表] [分治] [桶排序] [计数] [快速选择] [排序] [堆(优先队列)] | Medium |
299 | 猜数字游戏 | [哈希表] [字符串] [计数] | Medium |
229 | 求众数 II | [数组] [哈希表] [计数] [排序] | Medium |
169 | 多数元素 | [数组] [哈希表] [分治] [计数] [排序] | Easy |