(更新)發現是 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 "