Scaling an iterative, bitwise algorithm to solve the Towers of Hanoi using X discs and Y towers

Posted by Robb on Stack Overflow See other posts from Stack Overflow or by Robb
Published on 2010-03-27T20:40:51Z Indexed on 2010/03/27 20:43 UTC
Read the original article Hit count: 281

Filed under:
|
|
|

I like the algorithm mentioned in this question: "How does this work? Weird Towers of Hanoi Solution" http://stackoverflow.com/questions/2209860/how-does-this-work-weird-towers-of-hanoi-solution

Is there any way to scale that non-recursive solution of Towers of Hanoi to use X disks and Y towers, with towers represented as stacks?

© Stack Overflow or respective owner

Related posts about c++

Related posts about towers-of-hanoi