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

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 19 points 6 months ago (14 children)

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?

[–] [email protected] 50 points 6 months ago (12 children)

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.

[–] [email protected] 2 points 6 months ago (2 children)

Thank god my first time was building a dynamic tree with loads of metadata and sorting from database records and not some strange game 😐

[–] [email protected] 4 points 6 months ago (1 children)

You can easily tell if you did something wrong with Towers of Hanoi.

[–] [email protected] 4 points 6 months ago

You can with a bitchy customer as well 💖

load more comments (9 replies)
load more comments (10 replies)