这个小朋友天生不是学CS的料?看着真累

v
vdfex
楼主 (北美华人网)
The Tower of Hanoi is solved using these rules: - Only one disc can be moved at a time. - Only the top disc of one stack can be transferred to the top of another stack or an empty rod. - Larger discs cannot be stacked over smaller ones.
In celebration of math festival, Playing Tower of hanoi in just 3 mins pic.twitter.com/irAn0M8HIL — Damn That's Amazing (@ThatsAmazingVid) March 28, 2024
s
shanggj
vdfex 发表于 2024-03-29 16:33
The Tower of Hanoi is solved using these rules: - Only one disc can be moved at a time. - Only the top disc of one stack can be transferred to the top of another stack or an empty rod. - Larger discs cannot be stacked over smaller ones.
In celebration of math festival, Playing Tower of hanoi in just 3 mins pic.twitter.com/irAn0M8HIL — Damn That's Amazing (@ThatsAmazingVid) March 28, 2024

不是从头开始的呀。
l
lhu2006
回复 1楼 vdfex 的帖子
太多重复无用的步骤?
a
abonsk
上次看到玩这个游戏的是个大猩猩。。
g
gokgs
recursive, 其实一开始学的时候还是很难的。