this post was submitted on 05 May 2024
823 points (99.0% liked)
Programmer Humor
19572 readers
1851 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Is this a hard problem to solve? I've not attempted it yet myself.
I seem to remember this was a problem in Advent of Code one year?
I'm imagining there are plenty of algorithms to solve this already, right? With varying numbers of towers and plates? A general solution for solvable amounts of each? Maybe?
This is not a hard problem once you wrap your head around it. It is the earliest that some programmers learn about recursion which has a lot of pitfalls and can be frustrating at times.
Thank god my first time was building a dynamic tree with loads of metadata and sorting from database records and not some strange game 😐
You can easily tell if you did something wrong with Towers of Hanoi.
You can with a bitchy customer as well 💖