Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Here's my solution.
It's surely not optimal, but it's a very basic extension to the 3-peg solution, so the code is very short.
It uses (Updated fomula again. The O sign is meant if p is constant but d->inf) Update: this is probably very suboptimal for more than 4 pegs.
In reply to Re: Hanoi Challenge
by ambrus
|
|