My Code:
def stones(pile, moves):
results = [True] + [False] * pile
for count in range(1, pile + 1):
possible = [x for x in moves if count - x >= 0]
results[count] = all(results[count - i] for i in possible)
return results
I try do it using hints, but my result always True, what I doing wrong?
Created at: 2018/09/23 16:52; Updated at: 2019/04/09 10:03
The question is resolved.