this post was submitted on 30 Nov 2023
66 points (100.0% liked)
Programmer Humor
19486 readers
415 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You don't know if the person is lighter or heavier yet.
That's not the question. Either the scales balance, and the third is heavier or lighter, or the scales don't balance and you get both answers, but the question is purposely framed this way
I mean that not knowing it is part of the question, and the proposed solution doesn't work without knowing if the person is heavier or lighter.
If you know if the person is heavier or lighter, the question becomes trivial.
The question is to figure out who is different, not how they are different. That takes one more step, half the time.
Yes, I'm aware. But with 12 people you can't simply divvy the groups in threes constantly, because if you weigh and the groups are unequal, then you don't know in which group the different person is (yet). E.g., weighing ABCD - EFGH can tell you the different person is in IJKL if the groups are even, but if they're uneven you don't know in which of the other two groups the different person is.
The question was to find who doesnt weigh the same and if its heavier or lighter. Watch the clip again.