• lad@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Hanoi […] practice problems.

      Like you come to the exam and there’s a 64 piece Tower of Hanoi you need to solve manually to pass the exam

  • harrys_balzac@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    I didn’t have to program this, thankfully. The code was used as an example of recursion but the explanation was lacking so I ended up writing out each frame by end until I understood it. Took a few pages and a couple of hours.

    I am grateful that I learned what I did going through it but I’d rather not do it again.