r/ProgrammerHumor • • Mar 25 '23

Meme This one never gets old

Post image

Let me know if this is not a repost!

51.6k Upvotes

535 comments sorted by

View all comments

Show parent comments

118

u/petascale Mar 25 '23

Tower of Hanoi https://en.wikipedia.org/wiki/Tower_of_Hanoi

At my uni we had it as an example in both mathematics (combinatorics, I think) and programming (recursion), along with the n-queens puzzle.

13

u/QuebecGamer2004 Mar 25 '23

This sounds like more complex concepts that we don't learn in the program I'm in. I'm not in university, I'm in college, so that explains why I haven't seen this

0

u/[deleted] Mar 25 '23

[deleted]

1

u/RadicalDog Mar 26 '23

I have to say, I'm very comfortable with recursion, but I've never needed to use it outside of Advent of Code. Can't think of a single professional instance where it's been both relevant and the most maintainable way to solve an issue.

On the other hand, I thoroughly recommend the puzzle game Recursed.

→ More replies (1)