sweet_dreams吧 关注:37贴子:1,434
  • 0回复贴,共1

Recursive thinking example: Tower of Hanoi

只看楼主收藏回复

The story:
3 spikes
stack of 64 difference sized discs - stat on one spike
increasing order: smallest top, biggest bottom
need to move stack to second spike
can only move one disc at a time
can never cover up a smaller disc with a bigger one


1楼2014-03-28 01:54回复