LeetCode題-coins in a line

There are n coins in a line. Two players take turns to take acoin from one of the ends of the line until there are no more coinsleft. The player with the larger amount of money wins. Assume thatyou go
相關文章
相關標籤/搜索