话题分类 > 前缀和
# | 题目 | 标签 | 难度 |
---|---|---|---|
2171 | 拿出最少数目的魔法豆 | [数组] [前缀和] [排序] | Medium |
2145 | 统计隐藏数组数目 | [数组] [前缀和] | Medium |
2132 | 用邮票贴满网格图 | [贪心] [数组] [矩阵] [前缀和] | Hard |
2121 | 相同元素的间隔之和 | [数组] [哈希表] [前缀和] | Medium |
2106 | 摘水果 | [数组] [二分查找] [前缀和] [滑动窗口] | Hard |
2100 | 适合打劫银行的日子 | [数组] [动态规划] [前缀和] | Medium |
2083 | 求以相同字母开头和结尾的子串总数 🔒 | [哈希表] [数学] [字符串] [计数] [前缀和] | Medium |
2067 | Number of Equal Count Substrings 🔒 | [字符串] [计数] [前缀和] | Medium |
2055 | 蜡烛之间的盘子 | [数组] [字符串] [二分查找] [前缀和] | Medium |
2025 | 分割数组的最多方案数 | [数组] [哈希表] [计数] [枚举] [前缀和] | Hard |
2024 | 考试的最大困扰度 | [字符串] [二分查找] [前缀和] [滑动窗口] | Medium |
2021 | 街上最亮的位置 🔒 | [数组] [有序集合] [前缀和] | Medium |
2017 | 网格游戏 | [数组] [矩阵] [前缀和] | Medium |
1991 | 找到数组的中间位置 | [数组] [前缀和] | Easy |
1943 | 描述绘画结果 | [数组] [前缀和] | Medium |
1930 | 长度为 3 的不同回文子序列 | [哈希表] [字符串] [前缀和] | Medium |
1915 | 最美子字符串的数目 | [位运算] [哈希表] [字符串] [前缀和] | Medium |
1895 | 最大的幻方 | [数组] [矩阵] [前缀和] | Medium |
1894 | 找到需要补充粉笔的学生编号 | [数组] [二分查找] [前缀和] [模拟] | Medium |
1893 | 检查是否区域内所有整数都被覆盖 | [数组] [哈希表] [前缀和] | Easy |
1889 | 装包裹的最小浪费空间 | [数组] [二分查找] [前缀和] [排序] | Hard |
1878 | 矩阵中最大的三个菱形和 | [数组] [数学] [矩阵] [前缀和] [排序] [堆(优先队列)] | Medium |
1872 | 石子游戏 VIII | [数组] [数学] [动态规划] [博弈] [前缀和] | Hard |
1871 | 跳跃游戏 VII | [双指针] [字符串] [前缀和] | Medium |
1862 | 向下取整数对和 | [数组] [数学] [二分查找] [前缀和] | Hard |
1856 | 子数组最小乘积的最大值 | [栈] [数组] [前缀和] [单调栈] | Medium |
1838 | 最高频元素的频数 | [数组] [二分查找] [前缀和] [滑动窗口] | Medium |
1829 | 每个查询的最大异或值 | [位运算] [数组] [前缀和] | Medium |
1788 | 最大化花园的美观度 🔒 | [贪心] [数组] [前缀和] | Hard |
1744 | 你能在你最喜欢的那天吃到你最喜欢的糖果吗? | [数组] [前缀和] | Medium |
1738 | 找出第 K 大的异或坐标值 | [位运算] [数组] [分治] [矩阵] [前缀和] [快速选择] [堆(优先队列)] | Medium |
1737 | 满足三条件之一需改变的最少字符数 | [哈希表] [字符串] [计数] [前缀和] | Medium |
1732 | 找到最高海拔 | [数组] [前缀和] | Easy |
1712 | 将数组分成三个子数组的方案数 | [数组] [双指针] [二分查找] [前缀和] | Medium |
1703 | 得到连续 K 个 1 的最少相邻交换次数 | [贪心] [数组] [前缀和] [滑动窗口] | Hard |
1685 | 有序数组中差绝对值之和 | [数组] [数学] [前缀和] | Medium |
1674 | 使数组互补的最少操作次数 | [数组] [哈希表] [前缀和] | Medium |
1658 | 将 x 减到 0 的最小操作数 | [数组] [哈希表] [二分查找] [前缀和] [滑动窗口] | Medium |
1590 | 使数组和能被 P 整除 | [数组] [哈希表] [前缀和] | Medium |
1589 | 所有排列中的最大和 | [贪心] [数组] [前缀和] [排序] | Medium |
1588 | 所有奇数长度子数组的和 | [数组] [数学] [前缀和] | Easy |
1546 | 和为目标值且不重叠的非空子数组的最大数目 | [贪心] [数组] [哈希表] [前缀和] | Medium |
1524 | 和为奇数的子数组数目 | [数组] [数学] [动态规划] [前缀和] | Medium |
1480 | 一维数组的动态和 | [数组] [前缀和] | Easy |
1442 | 形成两个异或相等数组的三元组数目 | [位运算] [数组] [哈希表] [数学] [前缀和] | Medium |
1423 | 可获得的最大点数 | [数组] [前缀和] [滑动窗口] | Medium |
1413 | 逐步求和得到正数的最小值 | [数组] [前缀和] | Easy |
1371 | 每个元音包含偶数次的最长子字符串 | [位运算] [哈希表] [字符串] [前缀和] | Medium |
1314 | 矩阵区域和 | [数组] [矩阵] [前缀和] | Medium |
1310 | 子数组异或查询 | [位运算] [数组] [前缀和] | Medium |
1292 | 元素和小于等于阈值的正方形的最大边长 | [数组] [二分查找] [矩阵] [前缀和] | Medium |
1208 | 尽可能使字符串相等 | [字符串] [二分查找] [前缀和] [滑动窗口] | Medium |
1177 | 构建回文串检测 | [位运算] [哈希表] [字符串] [前缀和] | Medium |
1124 | 表现良好的最长时间段 | [栈] [数组] [哈希表] [前缀和] [单调栈] | Medium |
1109 | 航班预订统计 | [数组] [前缀和] | Medium |
1094 | 拼车 | [数组] [前缀和] [排序] [模拟] [堆(优先队列)] | Medium |
1074 | 元素和为目标值的子矩阵数量 | [数组] [哈希表] [矩阵] [前缀和] | Hard |
1004 | 最大连续1的个数 III | [数组] [二分查找] [前缀和] [滑动窗口] | Medium |
995 | K 连续位的最小翻转次数 | [位运算] [数组] [前缀和] [滑动窗口] | Hard |
974 | 和可被 K 整除的子数组 | [数组] [哈希表] [前缀和] | Medium |
930 | 和相同的二元子数组 | [数组] [哈希表] [前缀和] [滑动窗口] | Medium |
862 | 和至少为 K 的最短子数组 | [队列] [数组] [二分查找] [前缀和] [滑动窗口] [单调队列] [堆(优先队列)] | Hard |
798 | 得分最高的最小轮调 | [数组] [前缀和] | Hard |
724 | 寻找数组的中心下标 | [数组] [前缀和] | Easy |
560 | 和为 K 的子数组 | [数组] [哈希表] [前缀和] | Medium |
548 | 将数组分割成和相等的子数组 🔒 | [数组] [前缀和] | Hard |
528 | 按权重随机选择 | [数学] [二分查找] [前缀和] [随机化] | Medium |
525 | 连续数组 | [数组] [哈希表] [前缀和] | Medium |
523 | 连续的子数组和 | [数组] [哈希表] [数学] [前缀和] | Medium |
497 | 非重叠矩形中的随机点 | [水塘抽样] [数学] [二分查找] [有序集合] [前缀和] [随机化] | Medium |
370 | 区间加法 🔒 | [数组] [前缀和] | Medium |
304 | 二维区域和检索 - 矩阵不可变 | [设计] [数组] [矩阵] [前缀和] | Medium |
303 | 区域和检索 - 数组不可变 | [设计] [数组] [前缀和] | Easy |
238 | 除自身以外数组的乘积 | [数组] [前缀和] | Medium |
209 | 长度最小的子数组 | [数组] [二分查找] [前缀和] [滑动窗口] | Medium |