(更新)发现是 Leetcode 的 test case 不够完整造成的误会,感谢收看。 因为是锁起来的题目所以直接贴: You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take turns to flip two consecutive "++" into "