A classic problem. Format would be similar to the reverse challenge. Output any sequence of moves that solves the puzzle.
Like/dislike?
I was thinking input would be the number of disks on peg A, and output would be any sequence of moves to get them all to peg C. This would be python friendly input :)
I had not considered starting from arbitrary positions, I'll have to think about that more.
1
2 4
3
1 to B
1 to A
2 to C
1 to C
1 to B
2 to A
1 to A
3 to B
1 to C
2 to B
1 to B
Like/dislike?