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!

  • reddit_sux@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    12 分钟前

    Remove the switches put a microcontroller like esp32, connected via wifi to an app on your phone. Go to the other room and see which switch switches on the bulb.

    If there is no wifi, why the hell do you want a programmer. I can’t work without internet.

  • quinkin@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    3 小时前

    Unlabelled switches controlling lights in another room isn’t Workplace Health and Safety approved.

    Lockout both rooms and log a job with maintenance.

  • usernamefactory@lemmy.ca
    link
    fedilink
    English
    arrow-up
    13
    ·
    5 小时前

    Go into the room and unscrew the bulb. You can now truthfully say that no switch affects the bulb’s condition, without messing with a bunch of switches whose function you don’t understand. You even know for a fact that the lack of bulb won’t cause a problem down the line, since the room is apparently no longer accessible.

  • SCmSTR@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    9
    ·
    6 小时前

    This question becomes more a test of age as time goes. I’ve been asked this question even after the movement towards all-LEDs.

    This question is also stupid, both because it has a correct question and because almost certainly some people have advantages over others that have nothing to do with the actual job.

    20+ years ago? Sure, this was a somewhat viable question. But now? It’s incredibly messy.

    Over my years, I’ve asked dozens of very, very smart people from all kinds of walks of life, extremely smart to seemingly dumb as hell - nobody has ever gotten it right.

    Probably the only thing this question is good for is seeing how an applicant does when faced with a diplomatic situation and a really dumb interviewer.

    I’m super curious what the people who unironically ask this question think they’re testing.

    • kryptonianCodeMonkey@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      3 小时前

      It’s a silly riddle that, for some reason, has stuck around in my head for decades, I think from an old tv show (anyone else remember Crashbox?). I remembered the answer immediately. So, this would be less of a test of my reasoning/problem solving skills, and more of a test of my ability to find and store vast amounts of useless trivia and instantly recall it decades after the fact. If that’s what you’re hiring for, I’m your guy!

  • Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    37
    ·
    12 小时前

    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?

  • fartographer@lemmy.world
    link
    fedilink
    arrow-up
    22
    ·
    12 小时前

    “First, I would get a label maker and ask a coworker to assist me. Then, we’d work together to quickly figure out what each switch does, and then label them accordingly. In a business of this size and reputation, documenting your work and synergistic teamwork are foundational to value and growth.”

    Then, reject whatever offer they send and say that it’s because they showed you a workplace culture that enabled middle management to test employees with busywork instead of minding their own business or solving their own damn trivial problems.

  • Wirlocke@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    9
    ·
    11 小时前

    Here’s my answer that works with any kind of lightbulb.

    Flip switch 1 on, switch 2 off, and get switch 3 stuck in a halfway point which I’ve done on both lever switches and flat switches.

    If it’s on it’s switch 1, if it’s off it’s switch 2, if it’s flickering or dimmed it’s switch 3 and you should probably turn it off to stop damaging the relay.

    • xthexder@l.sw0.com
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      9 小时前

      Trying to get a switch stuck half way sounds like a good way to start a fire. If the bulb is dimmed, that means not all the power is making it to the bulb, and half of it is probably going into heating up the switch contacts. It could also be arcing inside the switch, which will also destroy the contacts. I think some new building codes require “arc fault protection” on circuits for this type of reason, in addition to “ground fault protection” (GFCI) on bathroom/kitchen circuits.

  • Modern_medicine_isnt@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    14 小时前

    I would say, I do enjoy riddles, so this will be fun. But I am concerned that if you think my skill at riddles is critical, that it may mean your management has gotten used to not fully thinking through the objectives they give and how those objectives interact with the existing systems or other objectives. That would result in the kind of product that looks like the right hand doesn’t know what the left is doing. If that is your reasoning for the question, how is the company countering it to create a coherent product.

    And the reason I might say this is tgat in my experience, companies who ask such questions aren’t the kind I want to work for.

  • ilinamorato@lemmy.world
    link
    fedilink
    arrow-up
    36
    ·
    edit-2
    16 小时前

    Ok. The classic answer is “turn on the first switch for five minutes. Then turn switch 1 back off, turn on the second switch and go in the room immediately. If the light is hot, it’s controlled by switch 1; if it’s on, it’s controlled by switch 2; if it’s off and cold it’s controlled by switch 3.”

    Except that a light bulb in 2025 is very likely to be an LED bulb, so it wouldn’t actually get hot. At least not hot enough to feel even a few moments later. And in a corporate setting (this is classically an interview question), the switch has been more likely to control a fluorescent tube, which can get hot, but typically not as quickly as an incandescent one.

    My answer, if I were in an interview, would be to ask questions (Chesterton’s Fence).

    • First of all, why do we have the one-visit limit? Is this a prod light bulb? We need a dev light bulb environment, with the bulbs and switches in the same room. (While we’re making new environments, let’s get a QA and regression environment, too. Maybe a fallback environment, depending on SLAs.)

    • Second, what might the other switches do? What’s the downside to just turning them all on? If that’s not known, why not? What is the risk? For that matter, do we know that only one switch needs to be turned on to turn on the light, or is it possible that the switches represent some sort of 3-bit binary encoding?

    • Third, why were the switches designed this way? Can they be redesigned to provide better feedback? Or simplified to a single switch? If not, better documentation (labeling) is a must.

    • Fourth, we need to reduce the length of the feedback loop. A five minute test and then physically going to touch the bulb is way too long. Let’s look into moving the switches or the light in our dev environment so that the light can be seen from the switches.

  • Rose@slrpnk.net
    link
    fedilink
    arrow-up
    12
    ·
    15 小时前

    I’ll look through the door.

    Or, set up a webcam to see when the light is on.

    If this isn’t allowed somehow, I’ll tell the building management to consider rewiring this absolutely cursed light switch situation ASAP because it’s gotten so bad that it’s being used as a brainteaser by the recruiting department

  • bcovertigo@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    14 小时前

    I’d walk into the other room first and drop a mirror in the hallway on my way back so I could see lmao. My employer wouldn’t want me touching a hot bulb since that might be a workplace hazard they’d be liable for after training me with stupid riddles.

  • sga@piefed.social
    link
    fedilink
    English
    arrow-up
    13
    ·
    16 小时前

    After reading the incandescent bulb solution, and problems regarding touching the bulb, i would switch first switch on for a appreciably long time, such that bulb has hit maximum luminousity (they heat up as they run, the hotter they get, the brighter they are), then turn switch off, and turn second switch on and quicky run to other room. we are trying to observe change in luminousity as time elapses. if it reduces, it was first (we ran it for a long time, there would be some residual glow, from my irl observations from when i was small suggest roughly 1 min period where i can still tell, but bulb wattage, contrat with background and distance matter). if increasing or max luminous, then second, if nothing then third.

    but it was a stupid question. my naive guess was it can not be done, because with just 1 binary observation, you can not tell from 3 switches (you need atleast 2, which the solution assumes as temp and light state, i substitute heat with light state in transition). but still stupid. my natural assumption was leds, even when i head incandascent bulbs in my house somewhere for nearly half of my life. it is also stupid, because when you allow me to do something i was mentioned in question to do, i could just bend my way to do anything. like punch/drill through wall, or hack surveillance systems, or just pull out my handy multimeter that i always have on me, open switch box and see which switch is live, which is dead, or see voltage/current/wattage change across the loop, or measure resistance and guess what thing is there, or like blackmail the interviewer to extract the answer.

    • Pulptastic@midwest.social
      link
      fedilink
      English
      arrow-up
      6
      ·
      15 小时前

      You’re almost there. Turn the first one on for a while. Then then it off and turn the second one on and run to the room. There are theee possible scenarios. If the bulb is on, switch 2 controls it. If the bulb is hot but off switch 1 controls it. If the bulb is cold and off, switch 3 controls it.

      • sga@piefed.social
        link
        fedilink
        English
        arrow-up
        4
        ·
        15 小时前

        i know this solution, but many problems are there, what if it is in a ceiling fixture, or enclosed in something such that i can not know the temp (hot or cold), then i can still observe luminosity changes. if you feel your eyes do a bad job, get a camera properly color and temp caliberated, and just focus on filament (now auto exposure or temperature adjustment).

        tl:dr i am still trying to poke holes in this thermocol wall of defence.

        • xthexder@l.sw0.com
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          9 小时前

          If it’s an LED or flourencent bulb they usually have a small amount of glow after turning them off from the phosphor coating. You might be able to catch that instead of the residual heat, but generally it dissipates pretty quickly, and it might be hard to see with one of the other lights on.

            • xthexder@l.sw0.com
              link
              fedilink
              arrow-up
              1
              ·
              4 小时前

              I think your house might be wired wrong if this is happening… The only thing I can think of is maybe if you’ve got some smart switch and no neutral, so the wifi in the switch has to power itself by leaking current through the light, which is a pretty unusual setup. I don’t see how this could ever happen on a regular dumb switch.

              • Tlaloc_Temporal@lemmy.ca
                link
                fedilink
                arrow-up
                1
                ·
                2 小时前

                LEDs are so efficient that even microamps can power them. If your LED driver is cheap, it’ll run on basically nothing, or charge up enough to start for a fraction of a second.

                The microamps come from a hot wire running next to a switched wire behaving as a capacitor when carrying AC voltage, letting microamps leak through. (It’s not required that the light is on the hot side of the switch as I said previously, my bad).

                This can happen if the switch box is a terminal box with hot and switched wires in the same cable, which is rather common. Probably some other configurations too.

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    94
    ·
    1 天前

    Ha! Easy! Go in the other room and take a picture of the bulb. Now go back to the switches and flip each one in order, while looking at the picture. When the picture of the bulb shows it lit up, that’s the switch.

  • GreenKnight23@lemmy.world
    link
    fedilink
    arrow-up
    20
    ·
    19 小时前

    if asked this I would go into a complicated explanation of how I would dismantle the switches to identify if they were functioning first because of sub-par outsourced manufacturing standards.

    they’d probably attempt to move on to a different question, but I would always bring it back to those shoddy light switches.

    “so do you have any questions for us?”

    yeah, do you know who the manufacturer of the light switches are? it’s probably Leviton, but I’m hoping it’s Honeywell because they’re far superior in quality. you see Leviton uses brass plated contacts vs Honeywell uses full brass fittings that don’t cause resistance and increases the potential for fires. are you aware that using one brand over another could reduce your insurance costs by up to 3%?