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!

    • d00ery@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      6 days ago

      Tbh, I quite enjoy the question / challenge. But on the other hand I’ve been a dev for awhile so could also easily give a long list of real world examples of clients asking me ridiculous (and sometimes interesting) questions.

    • Shanmugha@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      edit-2
      6 days ago

      Well…

      case 1: I know beforehand that this is going to be an interview to look at how good I am at reasoning. No problem, give me the question about bus to fill with balls

      case 2: this is going to be a more informal interview, question goes in the same list as “your name, what were you doing at your previous job, did you work with X… by the way, what about switches and bulbs” - nope. That means interviewer did a lousy job at preparing for interview, so who is wasting whose time - up to me to decide on the spot

  • aarch64@programming.dev
    link
    fedilink
    arrow-up
    13
    ·
    6 days ago

    My burn-the-house-down take on this: very slowly flip each switch on and listen for arcing. Works fine assuming the other two switches aren’t connected to anything.

  • fartographer@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    5 days ago

    “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.

  • Stupidmanager@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    4 days ago

    I’ve walked out of interviews that had these popular puzzle questions in the 00s. The company you’re interviewing for is not testing you for your job, it wants a corporate drone that is ok with bureaucracy and can navigate the red tape they’ve put in place.

    Really a waste of time, but if I run into this at my age now I ask if they can tell me how their company is making something for the betterment of human kind.

  • Bluewing@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    3
    ·
    6 days ago

    If the installation of the circuit was done correctly in the first place, all 3 switches will turn the light on and off.

    If they do not, there is a problem and it needs to be fixed. If you don’t fix the issue, you have a major underlying problem in your company. And you are not worth my time.

      • Bluewing@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        5 days ago

        That’s a question that the C-Suite needs to answer for. But the point is, if those switches are installed -for whatever reason- they do need to work correctly. And if they do not, that’s an indication of a failing management.

  • GreenKnight23@lemmy.world
    link
    fedilink
    arrow-up
    22
    ·
    6 days ago

    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%?

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    15
    ·
    6 days ago

    This is either a really clever test of your problem solving and neccessary-information-extraction skills. Or a really dumb one with loads of asumptions and artifical restrictions and based on outdated data (comments hint to the lightbulb getting hot).

  • Strlcpy@1@lemmy.sdf.org
    link
    fedilink
    arrow-up
    11
    ·
    5 days ago

    What bothers me about this specific question, apart from it being dated, is that it breaks the rules of these kind of riddles. They’re implied to be in a sort of frictionless sphere universe, the whole preposition is silly except as an abstract puzzle. To then rely on the physical properties of real lamps is cheating. You’re supposed to ignore all the real-world aspects of the setting except that one.

    • usernamefactory@lemmy.ca
      link
      fedilink
      English
      arrow-up
      15
      ·
      5 days ago

      Agreed, it presents as an abstract logic puzzle, but then gives a very concrete answer. It’s like presenting the trolly problem to someone, and when they give one of the two expected answers saying “no, stupid, you run ahead and untie the victims before the trolly reaches them.”

      It’s compounded by the fact that the proposed physical solution isn’t even very reliable, as lots of people in this thread have said. If we’re stepping outside of the logic puzzle constraints, why not just leave the door to the room open? Or have someone stand inside and shout when the light turns on? Or ask someone who knows these switches? Or any number of boring non-brain teaser solutions.

  • stray@pawb.social
    link
    fedilink
    arrow-up
    32
    ·
    6 days ago

    I don’t understand. You don’t need to visit a room to know whether the light is on in it.

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      20
      ·
      6 days ago

      This is the real answer. If there is a light switch that turns on a light in a room, rarely ever would you not see the results of switching it on from where the switch itself is located. Visiting the room is a red herring.

  • Rose@slrpnk.net
    link
    fedilink
    arrow-up
    13
    ·
    5 days ago

    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

  • JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    7
    ·
    5 days ago

    Impossible even if you know if the light is on or off to start with. Even then, there are 2 possible outcomes which means the solution space halves on each test. 3 divided by 2 is greater than 1 (1.5) so we cannot figure it out in a single test.

    That’s my recollection of how to solve these from computer science. The classic one is 8 coins and figuring out which one weighs a different amount (and you don’t know if it is more or less). You have a scale that tells you which side is heavier (or equal) but it doesn’t give readouts (as in it doesn’t say a side is X pounds/grams). With only three uses of the scale, how can you find the fake coin? I’m not going to go into the process in depth but because you have THREE outcomes (left heavier, equal, and right heavier) you reduce the solution space (which of the 8 coins is the bad one) by a THIRD each test. The number 8 sort of lures into thinking powers of 2. You can actually do it with 9 coins in 3 tests.

    Some of the details of my explanation may be wrong, it’s been over a decade since I took that class in college lol. It was my worst professor (while different story lol) but I distinctly remember him talking about this. He had a very thick accent, some form of eastern European or Russian, I’m not really sure what exactly. But he gave us that problem as homework or something or maybe just to think about. And he’d ask us to explain how we’d do it. Whenever someone began to describe something doing like test 4, 2, etc instead of the correct way (which involves using coins you already tested) he’d say “YOU’RE DOOMED!” Then someone else would try, and when they got to a way that wouldn’t work “YOU’RE DOOMED!” It was hilarious. Very memorable.

    • Atlas_@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      5 days ago

      Also the number of outcomes isn’t connected to the solution space reduction the way you say. If you don’t know whether the fake coin is heavier or lighter, both tilt-right and tilt-left are effectively the same result. So at least your first test really only has 2 meaningful outcomes.

      In general, you’ll only reduce your solution space DOWN TO (not by) 1/(number of distinguishable outcomes) if the possible solutions are evenly divided among those outcomes. It’s easy to have a problem where “result 1 narrows it down a lot, result 2 doesn’t tell us much”

    • chaos@beehaw.org
      link
      fedilink
      arrow-up
      5
      ·
      5 days ago

      Hint: the solution depends on a more realistic and physics-based model of the problem than you’re using. And, even bigger hint, it’s less intuitive now that light bulb technology has changed to become much more efficient, you should imagine this problem taking place with a '90s bulb.

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 days ago

        Yeah, after reading the answers I see it more clearly. Also, I assume in hindsight that it’s three switches which can be on or off, so we know if all three are off the light is off. Which helps as well.

    • Atlas_@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      5 days ago

      If you don’t know whether it’s heavier or lighter, after the first test shows uneven you still have 6 coins possible. You can do it in 3 tests only if you know lighter vs heavier for the fake coin.

  • _druid@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    1
    ·
    6 days ago

    Take the cover off, flip all three switches. Whichever terminal shocks you is completing the circuit for the light.

      • _druid@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        5
        ·
        6 days ago

        I’ll be sure to revisit this question, if I ever find myself retreating to square one, mired in my own ineptitude. For now, there are three unlicked terminals before me.

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    88
    ·
    6 days ago

    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.