leetcode.com 2026-04-03
🔴3661.maximum-walls-destroyed-by-robots
🏷️ Tags
#array #binary_search #dynamic_programming #sorting
🔴3661.maximum-walls-destroyed-by-robots
🏷️ Tags
#array #binary_search #dynamic_programming #sorting
Telegraph
maximum-walls-destroyed-by-robots
robots[i] is the position of the ith robot.
leetcode.cn 2026-04-12
🔴1320.minimum-distance-to-type-a-word-using-two-fingers
🏷️ Tags
#string #dynamic_programming
🔴1320.minimum-distance-to-type-a-word-using-two-fingers
🏷️ Tags
#string #dynamic_programming
Telegraph
minimum-distance-to-type-a-word-using-two-fingers
二指输入法定制键盘在 X-Y 平面上的布局如上图所示,其中每个大写英文字母都位于某个坐标处。
leetcode.com 2026-04-12
🔴1320.minimum-distance-to-type-a-word-using-two-fingers
🏷️ Tags
#string #dynamic_programming
🔴1320.minimum-distance-to-type-a-word-using-two-fingers
🏷️ Tags
#string #dynamic_programming
Telegraph
minimum-distance-to-type-a-word-using-two-fingers
You have a keyboard layout as shown above in the X-Y plane, where each English uppercase letter is located at some coordinate.
leetcode.cn 2026-04-14
🔴2463.minimum-total-distance-traveled
🏷️ Tags
#array #dynamic_programming #sorting
🔴2463.minimum-total-distance-traveled
🏷️ Tags
#array #dynamic_programming #sorting
Telegraph
minimum-total-distance-traveled
X 轴上有一些机器人和工厂。给你一个整数数组 robot ,其中 robot[i] 是第 i 个机器人的位置。再给你一个二维整数数组 factory ,其中 factory[j] = [positionj, limitj] ,表示第 j 个工厂的位置在 positionj ,且第 j 个工厂最多可以修理 limitj 个机器人。 每个机器人所在的位置 互不相同 。每个工厂所在的位置也 互不相同 。注意一个机器人可能一开始跟一个工厂在 相同的位置 。 所有机器人一开始都是坏的,他们会沿着设定的方向一直移动。设定的方向要么是…
leetcode.com 2026-04-14
🔴2463.minimum-total-distance-traveled
🏷️ Tags
#array #dynamic_programming #sorting
🔴2463.minimum-total-distance-traveled
🏷️ Tags
#array #dynamic_programming #sorting
Telegraph
minimum-total-distance-traveled
There are some robots and factories on the X-axis. You are given an integer array robot where robot[i] is the position of the ith robot. You are also given a 2D integer array factory where factory[j] = [positionj, limitj] indicates that positionj is the position…
leetcode.cn 2026-04-29
🔴3225.maximum-score-from-grid-operations
🏷️ Tags
#array #dynamic_programming #matrix #prefix_sum
🔴3225.maximum-score-from-grid-operations
🏷️ Tags
#array #dynamic_programming #matrix #prefix_sum
Telegraph
maximum-score-from-grid-operations
给你一个大小为 n x n 的二维矩阵 grid ,一开始所有格子都是白色的。一次操作中,你可以选择任意下标为 (i, j) 的格子,并将第 j 列中从最上面到第 i 行所有格子改成黑色。 如果格子 (i, j) 为白色,且左边或者右边的格子至少一个格子为黑色,那么我们将 grid[i][j] 加到最后网格图的总分中去。 请你返回执行任意次操作以后,最终网格图的 最大 总分数。 示例 1: 输入:grid = [[0,0,0,0,0],[0,0,3,0,0],[0,1,0,0,0],[5,0,0,3…
leetcode.com 2026-04-29
🔴3225.maximum-score-from-grid-operations
🏷️ Tags
#array #dynamic_programming #matrix #prefix_sum
🔴3225.maximum-score-from-grid-operations
🏷️ Tags
#array #dynamic_programming #matrix #prefix_sum
Telegraph
maximum-score-from-grid-operations
You are given a 2D matrix grid of size n x n. Initially, all cells of the grid are colored white. In one operation, you can select any cell of indices (i, j), and color black all the cells of the jth column starting from the top row down to the ith row. The…
leetcode.cn 2026-05-10
🟡2770.maximum-number-of-jumps-to-reach-the-last-index
🏷️ Tags
#array #dynamic_programming
🟡2770.maximum-number-of-jumps-to-reach-the-last-index
🏷️ Tags
#array #dynamic_programming
Telegraph
maximum-number-of-jumps-to-reach-the-last-index
给你一个下标从 0 开始、由 n 个整数组成的数组 nums 和一个整数 target 。 你的初始位置在下标 0 。在一步操作中,你可以从下标 i 跳跃到任意满足下述条件的下标 j :
leetcode.com 2026-05-10
🟡2770.maximum-number-of-jumps-to-reach-the-last-index
🏷️ Tags
#array #dynamic_programming
🟡2770.maximum-number-of-jumps-to-reach-the-last-index
🏷️ Tags
#array #dynamic_programming
Telegraph
maximum-number-of-jumps-to-reach-the-last-index
You are given a 0-indexed array nums of n integers and an integer target. You are initially positioned at index 0. In one step, you can jump from index i to any index j such that: