this post was submitted on 25 Dec 2025
543 points (96.9% liked)

Programmer Humor

28045 readers
563 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

founded 2 years ago
MODERATORS
 

Post:

You have three switches in one room and a single light bulb in another room. You are allowed to visit the room with the light bulb only once. How do you figure out which switch controls the bulb? Write your answer in the comments before looking at other answers.


Comment:

If this were an interview question, the correct response would be "Do you have any relevant questions for me? Because have a long list of things that more deserving of my precious time than to think about this!

you are viewing a single comment's thread
view the rest of the comments
[–] captain_aggravated@sh.itjust.works 56 points 2 days ago (13 children)

The official answer to this riddle is turn switch 1 on for a minute or so, switch it off then switch 2 on. if the bulb is hot but dark, its 1, if it's lit it's 2 and if it's out and cold its 3.

the adult answer is why do I have only one chance to walk in the room?

[–] mojofrododojo@lemmy.world 13 points 1 day ago (7 children)

if the bulb is hot

if hot they're using out of date lighting, who the fuck uses incandescent bulbs this far into the 21st century? they have failed their interview with me.

[–] Dremor@lemmy.world 4 points 1 day ago* (last edited 1 day ago) (3 children)

LED do not have a 100% efficiency, and do produce waste heat. A lot less than an incandescence one, sure, but enough for that answer to be valid.
Well, maybe you'd better wait 10min instead of one, to make sure the led lightbulb heats enough, but still...

[–] mojofrododojo@lemmy.world 1 points 23 hours ago

note the premise specifies HOT.

none of my LED bulbs get hot even after hours. they do warm up from 'cold' but HOT?

ymmv.

load more comments (2 replies)
load more comments (5 replies)
load more comments (10 replies)