加载中...
分类详情
中等 分类
1927-求和游戏(Sum Game)
原文链接: https://leetcode-cn.com/problems/sum-game 英文原文Alice and Bob take turns playing a game, with Alice starting first. You are given a string num of even length consisting of digits and '?' characters. On each turn, a player will do the following if…
2021-12-03
1922-统计好数字的数目(Count Good Numbers)
原文链接: https://leetcode-cn.com/problems/count-good-numbers 英文原文A digit string is good if the digits (0-indexed) at even indices are even and the digits at odd indices are prime (2, 3, 5, or 7). For example, "2582" is good because the digits (2 and 8) …
2021-12-03
1943-描述绘画结果(Describe the Painting)
原文链接: https://leetcode-cn.com/problems/describe-the-painting 英文原文There is a long and thin painting that can be represented by a number line. The painting was painted with multiple overlapping segments where each segment was painted with a unique colo…
2021-12-03
1936-新增的最少台阶数(Add Minimum Number of Rungs)
原文链接: https://leetcode-cn.com/problems/add-minimum-number-of-rungs 英文原文You are given a strictly increasing integer array rungs that represents the height of rungs on a ladder. You are currently on the floor at height 0, and you want to reach the last…
2021-12-03
1975-最大方阵和(Maximum Matrix Sum)
原文链接: https://leetcode-cn.com/problems/maximum-matrix-sum 英文原文You are given an n x n integer matrix. You can do the following operation any number of times: Choose any two adjacent elements of matrix and multiply each of them by -1. Two elements are …
2021-12-03