6 ms·
The first time I encountered a "riddle" type interview question, I'd already held 5+ jobs and I nominally had 8 years' experience in IT. The job was for a Unix
by Eleison23 4y ago
The first time I encountered a "riddle" type interview question, I'd already held 5+ jobs and I nominally had 8 years' experience in IT.
The job was for a Unix sysadmin job in academia. The interviewer described a room with two lightbulbs in it, and a room down the hall with two switches, and I was supposed to figure out which switch controlled which bulb without going back-and-forth so much.
I was stumped & didn't really know how to proceed, so I just gave up. They hired me anyway. Afterward they explained the answer to me. Start with both bulbs dark; turn on one switch, wait a few minutes, then turn on the other and touch the bulbs. The hot bulb corresponds to the first switch. (This only makes sense in the age of incandescent bulbs.)
I thought it was nice and a clever touch to see whether a candidate can think outside the box, and of course I was grateful to be hired even though I couldn't do so.
Oftentimes I'll report for an interview and it's more like a preliminary onboarding and tour of the premises. Sometimes a company has already made that hire decision before they call you in-person. This might raise a red flag for you, if a company is so desparate to put you at a desk that they don't even make you run the gauntlet, so think about it.
- thallium205 4y agoBulbs nowadays are LED and don't get warm.
- orlp 4y agoNowadays everyone and their mother has a smartphone on them. Place down your smartphone and start recording. Move to the switches and flip them as needed. Check back the recording to provide your answer.
- solardev 4y agoAs an aside, this isn't really true. LEDs are way more efficient (more watts in visible light and not just heat), but not 100% so. They still get warm and need heat sinks and sometimes airflow, etc. or they can still overheat. If you leave a LED bulb on for a while next to one that's been off, you can definitely feel the heat difference with your bare hands. This is especially true at the higher end of lumen output, where you're optimizing for peak brightness instead of max efficiency. The power vs brightness curve isn't linear for a given emitter (and the human perception of brightness isn't linear either). A LED that's twice as bright will be more than twice as hot. If you have a bright headlight it will typically be in metal housing that also doubles as a heat sink, and probably have internal thermo regulation to turn itself down before overheating.
- mrguyorama 4y agoIt's also the big reason why low price LEDs barely last longer than incandescent did. The LED itself is not burning out, but the heat it generated cooks the capacitor used to generate the correct power output, which dies pretty quickly under heat stress.
- LtWorf 4y agoYou never touched a LED light bulb uh?
- confidantlake 4y agoTurn on one. Wait a few years. Turn on the other. The one that is off has burned out so it is the first one.
- supernewton 4y agoLEDs themselves don't really get warm, but LED bulbs that plug into a wall socket have a transformer in their base to step mains voltage down to something the LED can handle, and that can get quite warm.
- netrap 4y agoI had this same question on my first IT job interview. Stumped me also... I think now I'd probably do some interview prep next time. I didn't get the job. :-)
- _uhtu 4y agoWhy is the heat thing even necessary? Turn on one switch, walk down, see which light is on, process of elimination for the other one. Am I missing something?
- Ancalagon 4y agoObviously I don't get the question. But, two switches, two lightbulbs, can't you just turn one switch on, leave one switch off, and see which lightbulb is lit? You only interact with each room once. Unless there's some funny business going on? Edit: oh, the bulbs need to be off at the end? Nah
- sudosysgen 4y agoI guess the idea is you turn both on for a while, then turn one off. The hottest one is the one that was recently turned off
- Ancalagon 4y agobut then wouldn't one of the switches still be on? therefore one of the lights would be on, so you could correlate which switch was on with the on light?
- sudosysgen 4y agoYou'd turn off the second switch right before entering, so that the bulb associated with it would be hotter.