(print-moves n from to aux)
Print all the moves for solving the puzzle. n is the total number of disks. from, to and aux are the names for the rods.
Print all the moves for solving the puzzle. n is the total number of disks. from, to and aux are the names for the rods.
(total-moves n)
Calculate the number of moves for the given number of disks. n is the total number of disks. Formula: (2 pow n) - 1
Calculate the number of moves for the given number of disks. n is the total number of disks. Formula: (2 pow n) - 1
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |