It seems that you can choose the initial state of the game, this implies that the number 1000 is no restriction (if it takes a million steps you take the 999000 as the initial state. You can program some greedy…
It seems that you can choose the initial state of the game, this implies that the number 1000 is no restriction (if it takes a million steps you take the 999000 as the initial state. You can program some greedy…