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
相关文章
相关标签/搜索