• palordrolap@fedia.io
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    If I correctly remember the minimum number of moves required to get all the disks from one tower to another, 10 layers is going to be a slog.

    • christos@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      The minimum number of moves required to solve a Tower of Hanoi puzzle is 2**n − 1, where n is the number of disks. 1023 for 10 disks, 5011 for 9 disks (updated max disks in the game). Recursion to the max.

      • lornosaj@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        I might be just tired, but it took me a stupidly long second to get that minimum number of moves formula - not to nitpick, but isn’t that exp. usually written as 2^n - 1 ?