I still have nightmares (not OC)

3 years ago by illectrility to c/programmerhumor

CannotSleep420 9 points 3 years ago

I once had a professor ask to solve the tower of hanoi using only 2 pegs.

path: 0 184041, hotness: undefined, score: 9, children: 5
illectrility 2 points 3 years ago

How did that turn out?

path: 0 184041 184899, hotness: undefined, score: 2, children: 4
CannotSleep420 5 points 3 years ago

It was a trick question.

path: 0 184041 184899 184914, hotness: undefined, score: 5, children: 3
illectrility 2 points 3 years ago

Yeah of course but what did he expect to happen?

path: 0 184041 184899 184914 185301, hotness: undefined, score: 2, children: 2
CannotSleep420 5 points 3 years ago

Realize it was impossible I guess?

path: 0 184041 184899 184914 185301 185325, hotness: undefined, score: 5, children: 1
Frederic 9 points 3 years ago

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

path: 0 161667, hotness: undefined, score: 9, children: 0
legalpenguin 4 points 3 years ago

Any other recursive algorithm was no problem for me, but I couldn't wrap my head around this game.

path: 0 165399, hotness: undefined, score: 4, children: 0
gylotip 3 points 3 years ago
path: 0 165933, hotness: undefined, score: 3, children: 2
Xanvial 6 points 3 years ago

This is called Tower of Hanoi problem, usually introduced as main task when learning about recursion in programming

path: 0 165933 172519, hotness: undefined, score: 6, children: 0
sweetlemon 6 points 3 years ago

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

path: 0 165933 166661, hotness: undefined, score: 6, children: 0
aspensmonster 3 points 3 years ago

And then someone starts talking about dining philosophers...

path: 0 146805, hotness: undefined, score: 3, children: 0
Cassilda 2 points 3 years ago

M-x hanoi

path: 0 149230, hotness: undefined, score: 2, children: 2
assa123 2 points 3 years ago

Good ol' emacs, relevant xkcd (although I don't think there's anyone that hasn't seen it).

path: 0 149230 178640, hotness: undefined, score: 2, children: 0
NotYourSocialWorker 1 point 3 years ago

Sure, but can you shut it off?

path: 0 149230 183879, hotness: undefined, score: 1, children: 0
howarddo 2 points 3 years ago

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

path: 0 181326, hotness: undefined, score: 2, children: 0
Puzzlehead 1 point 3 years ago
path: 0 240988, hotness: undefined, score: 1, children: 0
programmerhumor
programmerhumor

@lemmy.ml

login for more options
43751
1628
1186

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.

go to feed...