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!


Doesn’t say I can’t leave the door open of the room with a light, or just put someone else in the room while I flick the switchs, use a few mirrors to bounce the light back to me,
of course, nothing says you can’t but programming (and engineering) is not just solving the problem, but solving the problem efficiently.
one who lacks optimization knowledge would run into situations like the rockstar employee who originally wrote the parser for GTAO that made it take over 5 minutes to load GTAO, till someone else rewrote the parser in order to get people loaded in quicker. It’s basically the weed out for the devs people complain about when something uses way more resources than it needs to.
I was confused why you had brought programming into it but I realised where I was lol I could always take the light out, can’t waste resources on something that doesn’t exist