leetcode.com 2026-03-23
🟡1594.maximum-non-negative-product-in-a-matrix
🏷️ Tags
#array #dynamic_programming #matrix
🟡1594.maximum-non-negative-product-in-a-matrix
🏷️ Tags
#array #dynamic_programming #matrix
Telegraph
maximum-non-negative-product-in-a-matrix
You are given a m x n matrix grid. Initially, you are located at the top-left corner (0, 0), and in each step, you can only move right or down in the matrix. Among all possible paths starting from the top-left corner (0, 0) and ending in the bottom-right…
leetcode.cn 2026-03-28
🔴2573.find-the-string-with-lcp
🏷️ Tags
#greedy #union_find #array #string #dynamic_programming #matrix
🔴2573.find-the-string-with-lcp
🏷️ Tags
#greedy #union_find #array #string #dynamic_programming #matrix
Telegraph
find-the-string-with-lcp
对任一由 n 个小写英文字母组成的字符串 word ,我们可以定义一个 n x n 的矩阵,并满足:
leetcode.cn 2026-04-02
🟡3418.maximum-amount-of-money-robot-can-earn
🏷️ Tags
#array #dynamic_programming #matrix
🟡3418.maximum-amount-of-money-robot-can-earn
🏷️ Tags
#array #dynamic_programming #matrix
Telegraph
maximum-amount-of-money-robot-can-earn
给你一个 m x n 的网格。一个机器人从网格的左上角 (0, 0) 出发,目标是到达网格的右下角 (m - 1, n - 1)。在任意时刻,机器人只能向右或向下移动。 网格中的每个单元格包含一个值 coins[i][j]:
leetcode.com 2026-04-02
🟡3418.maximum-amount-of-money-robot-can-earn
🏷️ Tags
#array #dynamic_programming #matrix
🟡3418.maximum-amount-of-money-robot-can-earn
🏷️ Tags
#array #dynamic_programming #matrix
Telegraph
maximum-amount-of-money-robot-can-earn
You are given an m x n grid. A robot starts at the top-left corner of the grid (0, 0) and wants to reach the bottom-right corner (m - 1, n - 1). The robot can move either right or down at any point in time. The grid contains a value coins[i][j] in each cell:
leetcode.cn 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] 是第 i 个机器人的位置。
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…