Skip to content

Manmartin/hanoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Tower of Hanoi solver

Compilation

gcc -O3 hanoi.c -o hanoi

Usage

  • For step to step solution:
$> hanoi 3
1 -> 3
1 -> 2
3 -> 2
1 -> 3
2 -> 1
2 -> 3
1 -> 3
  • For step count:
$> hanoi 3 --count
7

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages