This commit is contained in:
halfrost
2022-05-18 06:26:28 -07:00
parent a328ec1724
commit 2155b7e2cd

View File

@ -1,4 +1,4 @@
# [2038. Remove Colored Pieces if Both Neighbors are the Same Color](https://leetcode-cn.com/problems/remove-colored-pieces-if-both-neighbors-are-the-same-color/)
# [2038. Remove Colored Pieces if Both Neighbors are the Same Color](https://leetcode.com/problems/remove-colored-pieces-if-both-neighbors-are-the-same-color/)
## 题目
@ -71,8 +71,8 @@ Alice 和 Bob 在玩一个游戏,他们轮流从这个字符串中删除颜色
## 解题思路
- 统计AliceBob分别可以操作的次数记为AsBs
- 因为Alice先手所以只要As大于BsAlice获胜返回true否则Bob获胜返回false
- 统计 AliceBob 分别可以操作的次数记为 AsBs
- 因为 Alice 先手,所以只要 As 大于 BsAlice 获胜返回 true否则 Bob 获胜返回 false
# 代码