加载中...
分类详情
中等 分类
2012-数组美丽值求和(Sum of Beauty in the Array)
原文链接: https://leetcode-cn.com/problems/sum-of-beauty-in-the-array 英文原文You are given a 0-indexed integer array nums. For each index i (1 <= i <= nums.length - 2) the beauty of nums[i] equals: 2, if nums[j] < nums[i] < nums[k], for all 0 <= j < i and f…
2021-12-03
2017-网格游戏(Grid Game)
原文链接: https://leetcode-cn.com/problems/grid-game 英文原文You are given a 0-indexed 2D array grid of size 2 x n, where grid[r][c] represents the number of points at position (r, c) on the matrix. Two robots are playing a game on this matrix. Both robots i…
2021-12-03