How can I fix this if-then structure to break out of the loop as needed?

前端 未结 0 509
陌清茗
陌清茗 2021-01-26 08:10

The problem I seek to solve is a game of cups. The user enters a string with no spaces of a series of connected A\'s, B\'s, and C\'s. An example is "AB" or "ABBBC

相关标签:
回答
  • 消灭零回复
提交回复
热议问题