Towers(Count, Source, Dest, Spare);
if (Count is 1)
Move disk from Source to Dest pole.
else
{ Solve Towers( Count -1, Source, Spare, Dest);
Solve Towers(1, Source, Dest, Spare);
Solve Towers(Count -1, Spare, Dest, Source);
}
Previous slide
Next slide
Back to first slide
View graphic version