跳至主要內容

模拟


模拟

全部标签

数据结构

数组 矩阵 链表 双向链表 单调栈 队列 单调队列 堆(优先队列) 哈希表 字符串 字符串匹配 二叉树 二叉搜索树 最小生成树 有序集合 拓扑排序 最短路 强连通分量 欧拉回路 双连通分量 并查集 字典树 线段树 树状数组 后缀数组

算法

枚举 递归 分治 回溯 贪心 动态规划 排序 桶排序 计数排序 基数排序 归并排序 快速选择 二分查找 记忆化搜索 深度优先搜索 广度优先搜索 双指针 位运算 前缀和 计数 滑动窗口 状态压缩 哈希函数 滚动哈希 扫描线

其他

数学 数论 几何 博弈 模拟 组合数学 随机化 概率与统计 水塘抽样 拒绝采样 数据库 设计 数据流 脑筋急转弯 交互 迭代器 多线程


题号标题题解标签难度力扣
43字符串相乘[✓]数学 字符串 模拟🟠🀄️open in new window 🔗open in new window
54螺旋矩阵[✓]数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
59螺旋矩阵 II[✓]数组 矩阵 模拟🟠🀄️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
157用 Read4 读取 N 个字符 🔒数组 交互 模拟🟢🀄️open in new window 🔗open in new window
158用 Read4 读取 N 个字符 II - 多次调用 🔒数组 交互 模拟🔴🀄️open in new window 🔗open in new window
258各位相加数学 数论 模拟🟢🀄️open in new window 🔗open in new window
289生命游戏[✓]数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
348设计井字棋 🔒设计 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
353贪吃蛇 🔒设计 队列 数组 2+🟠🀄️open in new window 🔗open in new window
412Fizz Buzz数学 字符串 模拟🟢🀄️open in new window 🔗open in new window
415字符串相加[✓]数学 字符串 模拟🟢🀄️open in new window 🔗open in new window
495提莫攻击数组 模拟🟢🀄️open in new window 🔗open in new window
498对角线遍历[✓]数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
537复数乘法数学 字符串 模拟🟠🀄️open in new window 🔗open in new window
544输出比赛匹配对 🔒递归 字符串 模拟🟠🀄️open in new window 🔗open in new window
566重塑矩阵数组 矩阵 模拟🟢🀄️open in new window 🔗open in new window
592分数加减运算数学 字符串 模拟🟠🀄️open in new window 🔗open in new window
640求解方程数学 字符串 模拟🟠🀄️open in new window 🔗open in new window
657机器人能否返回原点字符串 模拟🟢🀄️open in new window 🔗open in new window
682棒球比赛[✓] 数组 模拟🟢🀄️open in new window 🔗open in new window
723粉碎糖果 🔒数组 双指针 矩阵 1+🟠🀄️open in new window 🔗open in new window
735小行星碰撞[✓] 数组 模拟🟠🀄️open in new window 🔗open in new window
749隔离病毒深度优先搜索 广度优先搜索 数组 2+🔴🀄️open in new window 🔗open in new window
755倒水 🔒数组 模拟🟠🀄️open in new window 🔗open in new window
832翻转图像位运算 数组 双指针 2+🟢🀄️open in new window 🔗open in new window
844比较含退格的字符串[✓] 双指针 字符串 1+🟢🀄️open in new window 🔗open in new window
867转置矩阵数组 矩阵 模拟🟢🀄️open in new window 🔗open in new window
874模拟行走机器人数组 哈希表 模拟🟠🀄️open in new window 🔗open in new window
885螺旋矩阵 III数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
946验证栈序列[✓] 数组 模拟🟠🀄️open in new window 🔗open in new window
950按递增顺序显示卡牌队列 数组 排序 1+🟠🀄️open in new window 🔗open in new window
985查询后的偶数和数组 模拟🟠🀄️open in new window 🔗open in new window
999可以被一步捕获的棋子数数组 矩阵 模拟🟢🀄️open in new window 🔗open in new window
1006笨阶乘 数学 模拟🟠🀄️open in new window 🔗open in new window
1041困于环中的机器人数学 字符串 模拟🟠🀄️open in new window 🔗open in new window
1094拼车数组 前缀和 排序 2+🟠🀄️open in new window 🔗open in new window
1103分糖果 II数学 模拟🟢🀄️open in new window 🔗open in new window
1222可以攻击国王的皇后数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
1243数组变换 🔒数组 模拟🟢🀄️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
1275找出井字棋的获胜者数组 哈希表 矩阵 1+🟢🀄️open in new window 🔗open in new window
1324竖直打印单词数组 字符串 模拟🟠🀄️open in new window 🔗open in new window
1389按既定顺序创建目标数组数组 模拟🟢🀄️open in new window 🔗open in new window
1409查询带键的排列树状数组 数组 模拟🟠🀄️open in new window 🔗open in new window
1441用栈操作构建数组[✓] 数组 模拟🟠🀄️open in new window 🔗open in new window
1503所有蚂蚁掉下来前的最后一刻脑筋急转弯 数组 模拟🟠🀄️open in new window 🔗open in new window
1518换水问题数学 模拟🟢🀄️open in new window 🔗open in new window
1535找出数组游戏的赢家数组 模拟🟠🀄️open in new window 🔗open in new window
1545找出第 N 个二进制字符串中的第 K 位[✓]递归 字符串 模拟🟠🀄️open in new window 🔗open in new window
1560圆形赛道上经过次数最多的扇区数组 模拟🟢🀄️open in new window 🔗open in new window
1562查找大小为 M 的最新分组数组 哈希表 二分查找 1+🟠🀄️open in new window 🔗open in new window
1583统计不开心的朋友数组 模拟🟠🀄️open in new window 🔗open in new window
1599经营摩天轮的最大利润数组 模拟🟠🀄️open in new window 🔗open in new window
1603设计停车系统设计 计数 模拟🟢🀄️open in new window 🔗open in new window
1646获取生成数组中的最大值数组 模拟🟢🀄️open in new window 🔗open in new window
1680连接连续二进制数字位运算 数学 模拟🟠🀄️open in new window 🔗open in new window
1688比赛中的配对次数数学 模拟🟢🀄️open in new window 🔗open in new window
1700无法吃午餐的学生数量 队列 数组 1+🟢🀄️open in new window 🔗open in new window
1701平均等待时间数组 模拟🟠🀄️open in new window 🔗open in new window
1706球会落何处数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
1801积压订单中的订单总数数组 模拟 堆(优先队列)🟠🀄️open in new window 🔗open in new window
1806还原排列的最少操作步数数组 数学 模拟🟠🀄️open in new window 🔗open in new window
1823找出游戏的获胜者递归 队列 数组 2+🟠🀄️open in new window 🔗open in new window
1860增长的内存泄露数学 模拟🟠🀄️open in new window 🔗open in new window
1894找到需要补充粉笔的学生编号数组 二分查找 前缀和 1+🟠🀄️open in new window 🔗open in new window
1910删除一个字符串中所有出现的给定子字符串 字符串 模拟🟠🀄️open in new window 🔗open in new window
1914循环轮转矩阵数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
1920基于排列构建数组数组 模拟🟢🀄️open in new window 🔗open in new window
1929数组串联数组 模拟🟢🀄️open in new window 🔗open in new window
1945字符串转化后的各位数字之和字符串 模拟🟢🀄️open in new window 🔗open in new window
2011执行操作后的变量值数组 字符串 模拟🟢🀄️open in new window 🔗open in new window
2022将一维数组转变成二维数组数组 矩阵 模拟🟢🀄️open in new window 🔗open in new window
2028找出缺失的观测数据数组 数学 模拟🟠🀄️open in new window 🔗open in new window
2043简易银行系统设计 数组 哈希表 1+🟠🀄️open in new window 🔗open in new window
2056棋盘上有效移动组合的数目数组 字符串 回溯 1+🔴🀄️open in new window 🔗open in new window
2061扫地机器人清扫过的空间个数 🔒数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
2069模拟行走机器人 II设计 模拟🟠🀄️open in new window 🔗open in new window
2073买票需要的时间队列 数组 模拟🟢🀄️open in new window 🔗open in new window
2075解码斜向换位密码字符串 模拟🟠🀄️open in new window 🔗open in new window
2079给植物浇水数组 模拟🟠🀄️open in new window 🔗open in new window
2105给植物浇水 II数组 双指针 模拟🟠🀄️open in new window 🔗open in new window
2109向字符串添加空格数组 双指针 字符串 1+🟠🀄️open in new window 🔗open in new window
2120执行所有后缀指令字符串 模拟🟠🀄️open in new window 🔗open in new window
2138将字符串拆分为若干长度为 k 的组字符串 模拟🟢🀄️open in new window 🔗open in new window
2149按符号重排数组数组 双指针 模拟🟠🀄️open in new window 🔗open in new window
2154将找到的值乘以 2数组 哈希表 排序 1+🟢🀄️open in new window 🔗open in new window
2161根据给定数字划分数组数组 双指针 模拟🟠🀄️open in new window 🔗open in new window
2169得到 0 的操作数数学 模拟🟢🀄️open in new window 🔗open in new window
2177找到和为给定整数的三个连续整数数学 模拟🟠🀄️open in new window 🔗open in new window
2180统计各位数字之和为偶数的整数个数数学 模拟🟢🀄️open in new window 🔗open in new window
2181合并零之间的节点链表 模拟🟠🀄️open in new window 🔗open in new window
2201统计可以提取的工件数组 哈希表 模拟🟠🀄️open in new window 🔗open in new window
2211统计道路上的碰撞次数 字符串 模拟🟠🀄️open in new window 🔗open in new window
2221数组的三角和数组 数学 组合数学 1+🟠🀄️open in new window 🔗open in new window
2243计算字符串的数字和字符串 模拟🟢🀄️open in new window 🔗open in new window
2257统计网格图中没有被保卫的格子数数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
2293极大极小游戏数组 模拟🟢🀄️open in new window 🔗open in new window
2295替换数组中的元素数组 哈希表 模拟🟠🀄️open in new window 🔗open in new window
2296设计一个文本编辑器 设计 链表 3+🔴🀄️open in new window 🔗open in new window
2303计算应缴税款总额数组 模拟🟢🀄️open in new window 🔗open in new window
2326螺旋矩阵 IV数组 链表 矩阵 1+🟠🀄️open in new window 🔗open in new window
2327知道秘密的人数队列 动态规划 模拟🟠🀄️open in new window 🔗open in new window
2352相等行列对[✓]数组 哈希表 矩阵 1+🟠🀄️open in new window 🔗open in new window
2357使数组中所有元素都等于零贪心 数组 哈希表 3+🟢🀄️open in new window 🔗open in new window
2365任务调度器 II数组 哈希表 模拟🟠🀄️open in new window 🔗open in new window
2380二进制字符串重新安排顺序需要的时间字符串 动态规划 模拟🟠🀄️open in new window 🔗open in new window
2390从字符串中移除星号[✓] 字符串 模拟🟠🀄️open in new window 🔗open in new window
2402会议室 III数组 哈希表 排序 2+🔴🀄️open in new window 🔗open in new window
2460对数组执行操作数组 双指针 模拟🟢🀄️open in new window 🔗open in new window
2462雇佣 K 位工人的总代价数组 双指针 模拟 1+🟠🀄️open in new window 🔗open in new window
2482行和列中一和零的差值数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
2500删除每行中的最大值数组 矩阵 排序 2+🟢🀄️open in new window 🔗open in new window
2502设计内存分配器设计 数组 哈希表 1+🟠🀄️open in new window 🔗open in new window
2507使用质因数之和替换后可以取到的最小值数学 数论 模拟🟠🀄️open in new window 🔗open in new window
2532过桥的时间数组 模拟 堆(优先队列)🔴🀄️open in new window 🔗open in new window
2534通过门的时间 🔒队列 数组 模拟🔴🀄️open in new window 🔗open in new window
2549统计桌面上的不同数字数组 哈希表 数学 1+🟢🀄️open in new window 🔗open in new window
2553分割数组中数字的数位数组 模拟🟢🀄️open in new window 🔗open in new window
2558从数量最多的堆取走礼物数组 模拟 堆(优先队列)🟢🀄️open in new window 🔗open in new window
2562找出数组的串联值数组 双指针 模拟🟢🀄️open in new window 🔗open in new window
2582递枕头数学 模拟🟢🀄️open in new window 🔗open in new window
2593标记所有元素后数组的分数数组 哈希表 排序 2+🟠🀄️open in new window 🔗open in new window
2596检查骑士巡视方案深度优先搜索 广度优先搜索 数组 2+🟠🀄️open in new window 🔗open in new window
2660保龄球游戏的获胜者数组 模拟🟢🀄️open in new window 🔗open in new window
2679矩阵中的和数组 矩阵 排序 2+🟠🀄️open in new window 🔗open in new window
2682找出转圈游戏输家数组 哈希表 模拟🟢🀄️open in new window 🔗open in new window
2696删除子串后的字符串最小长度[✓] 字符串 模拟🟢🀄️open in new window 🔗open in new window
2717半有序排列数组 模拟🟢🀄️open in new window 🔗open in new window
2739总行驶距离数学 模拟🟢🀄️open in new window 🔗open in new window
2744最大字符串配对数目数组 哈希表 字符串 1+🟢🀄️open in new window 🔗open in new window
2751机器人碰撞 数组 排序 1+🔴🀄️open in new window 🔗open in new window
2766重新放置石块数组 哈希表 排序 1+🟠🀄️open in new window 🔗open in new window
2810故障键盘字符串 模拟🟢🀄️open in new window 🔗open in new window
2899上一个遍历的整数数组 模拟🟢🀄️open in new window 🔗open in new window
2946循环移位后的矩阵相似检查数组 数学 矩阵 1+🟢🀄️open in new window 🔗open in new window
2960统计已测试设备数组 计数 模拟🟢🀄️open in new window 🔗open in new window
2961双模幂运算数组 数学 模拟🟠🀄️open in new window 🔗open in new window
2974最小数字游戏数组 排序 模拟 1+🟢🀄️open in new window 🔗open in new window
3028边界上的蚂蚁数组 前缀和 模拟🟢🀄️open in new window 🔗open in new window
3038相同分数的最大操作数目 I数组 模拟🟢🀄️open in new window 🔗open in new window
3066超过阈值的最少操作数 II数组 模拟 堆(优先队列)🟠🀄️open in new window 🔗open in new window
3069将元素分配到两个数组中 I数组 模拟🟢🀄️open in new window 🔗open in new window
3072将元素分配到两个数组中 II树状数组 线段树 数组 1+🔴🀄️open in new window 🔗open in new window
3080执行操作标记数组中的元素数组 哈希表 排序 2+🟠🀄️open in new window 🔗open in new window
3100换水问题 II数学 模拟🟠🀄️open in new window 🔗open in new window
3160所有球里面不同颜色的数目数组 哈希表 模拟🟠🀄️open in new window 🔗open in new window
3168候诊室中的最少椅子数字符串 模拟🟢🀄️open in new window 🔗open in new window
3174清除数字 字符串 模拟🟢🀄️open in new window 🔗open in new window
3175找到连续赢 K 场比赛的第一位玩家数组 模拟🟠🀄️open in new window 🔗open in new window
3178找出 K 秒后拿着球的孩子数学 模拟🟢🀄️open in new window 🔗open in new window
3179K 秒后第 N 个元素的值数组 数学 组合数学 2+🟠🀄️open in new window 🔗open in new window
3222求出硬币游戏的赢家数学 博弈 模拟🟢🀄️open in new window 🔗open in new window
3237Alt 和 Tab 模拟 🔒数组 哈希表 模拟🟠🀄️open in new window 🔗open in new window
3242设计相邻元素求和服务设计 数组 哈希表 2+🟢🀄️open in new window 🔗open in new window
3248矩阵中的蛇数组 字符串 模拟🟢🀄️open in new window 🔗open in new window
3264K 次乘运算后的最终数组 I数组 数学 模拟 1+🟢🀄️open in new window 🔗open in new window
3266K 次乘运算后的最终数组 II数组 模拟 堆(优先队列)🔴🀄️open in new window 🔗open in new window
3271哈希分割字符串字符串 模拟🟠🀄️open in new window 🔗open in new window
3279活塞占据的最大总区域 🔒数组 哈希表 字符串 3+🔴🀄️open in new window 🔗open in new window
3304找出第 K 个字符 I位运算 递归 数学 1+🟢🀄️open in new window 🔗open in new window
3324出现在屏幕上的字符串序列字符串 模拟🟠🀄️open in new window 🔗open in new window
LCP 02分式化简数组 数学 数论 1+🟢🀄️open in new window
LCP 03机器人大冒险数组 哈希表 模拟🟠🀄️open in new window
LCP 17速算机器人数学 字符串 模拟🟢🀄️open in new window
LCP 23魔术排列队列 数组 模拟🟠🀄️open in new window
LCP 50宝石补给数组 模拟🟢🀄️open in new window
剑指 Offer 29顺时针打印矩阵[✓]数组 矩阵 模拟🟢🀄️open in new window
剑指 Offer 31栈的压入、弹出序列[✓] 数组 模拟🟠🀄️open in new window
剑指 Offer II 101分割等和子集[✓]数学 字符串 模拟🟢🀄️open in new window
剑指 Offer II 2二进制加法[✓]位运算 数学 字符串 1+🟢🀄️open in new window
剑指 Offer II 37小行星碰撞 数组 模拟🟠🀄️open in new window
面试题 16.22兰顿蚂蚁数组 哈希表 字符串 2+🟠🀄️open in new window