I once had a professor ask to solve the tower of hanoi using only 2 pegs.
Programmer Humor
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
How did that turn out?
It was a trick question.
Yeah of course but what did he expect to happen?
Realize it was impossible I guess?
Hm, okay. The word "professor" made me think that it may be something really interesting and not just "do this" — "not possible" — "yeah, you're right"
Oh god Hanoi's towers... Incredible that I programmed it in BASIC on my ZX81 in the 80s, and now at 50+yo I would have no clue how to program it lol
M-x hanoi
Hey I'm Vietnamese, nothing to scared of tower of Hanoi ok? Come vitsit us, it would be nice experience for u I'm sure
And then someone starts talking about dining philosophers...
I don't get this meme. Can anyone explain what this meme means?
This is called Tower of Hanoi problem, usually introduced as main task when learning about recursion in programming
The meme basically shows how a non-programmer sees the Towers of Hanoi game as a fun little puzzle, while a programmer sees it as a traumatizing experience due to the recursive nature of the algorithm behind it
.
Any other recursive algorithm was no problem for me, but I couldn't wrap my head around this game.