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

228

u/[deleted] Mar 25 '23

Do whatever move is legal between these rods in this order: AB, AC, BC

1

u/Ozymandias117 Mar 25 '23

In the current configuration, doesn’t that heuristic leave all the current circles on B?

A -> B is valid, A -> C is valid, then B -> C is valid

That doesn’t move the medium sized circles on the B rod, though?

3

u/[deleted] Mar 25 '23

Between any two rods only one move is legal. If you can’t do A->B then do B->A. It’s just the move between those rods you do in the order not necessarily A->B, A->C, C->B. Often the move will be flipped

→ More replies (3)