About tower of hanoi, given the current state, how to discover the original peg?
I think I can determine the initial position based on whether or not the max disc has been moved. But I don't know how to tell if the max disc has been moved or not.
About tower of hanoi, given the current state, how to discover the original peg?
I think I can determine the initial position based on whether or not the max disc has been moved. But I don't know how to tell if the max disc has been moved or not.