thousanda / go-hanoi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Hanoi

ハノイの塔の解き方をprintする

使い方

第一引数に、何段のハノイの塔を解きたいか入力する

$ go run ./main.go 3
from 1 to 2
from 1 to 3
from 2 to 3
from 1 to 2
from 3 to 1
from 3 to 2
from 1 to 2

About


Languages

Language:Go 100.0%