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!

  • mech@feddit.org
    link
    fedilink
    arrow-up
    38
    ·
    edit-2
    5 hours ago
    • Use the heat of the bulb to determine if it was on. (Shows you can memorize stupid interview questions)
    • Ask a team member to coordinate with you in the other room. (You’re a team player)
    • Use a cable locator (Proper tool for the trade)
    • Put your phone in the other room, stream camera feed to your work laptop (The tech approach)
    • Unscrew the bulb. Now you know that no switch controls the bulb (Exposing the flaw in the task’s phrasing)
    • Open switch panel and disconnect one switch. Wait a day. If no one complains, disconnect the second. Wait a day. If no one complains, it’s probably the third. For good measure, disconnect the third switch. If still no one complains, remove all switches and the lightbulb, since they’re not needed anymore. (The Sysadmin approach)
    • folaht@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 hour ago

      What about trying to figure out first what the other two buttons do? Maybe they turn on the light of the room you’re in. And I can see light without entering a room right? Just open the door, no need to enter it. If not allowed, look at the foot of the door or try to see if the room has a window.

      No need to buy fancy equipment or even go into the room at all.

  • fibojoly@sh.itjust.works
    link
    fedilink
    arrow-up
    15
    ·
    5 hours ago

    It’s funny to read the reactions and the people not understanding that programming questions are not enough to judge you. We need people with functioning brains and that usually means problem solving skills. And sometimes the problems are fucking idiotic! Nobody cares about the light switches. We want to see how you think. We want people who don’t give up if they can’t look it up.

    You think you’re hot shit because you learnt the latest trendy language? I’ve wasted entire days with people like that because they couldn’t be fucking arsed reading error messages and figuring things out by themselves.

    • Nalivai@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 hours ago

      Stupid interview questions show you nothing about how people think. Might as well ask them their astrological animal and blood type

      • DaleGribble88@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        38 minutes ago

        On the contrary, someone can learn a lot from a question like this. If they immediately spit out the answer, then I know that they studied and came prepared to answer common questions like that. If they give a response like the OP, then I know they are an asshole to work with. If they don’t know, do they ask follow up questions or ask for a moment to think can tell me how well they like to work in a group. If they talk about asking a coworker vs researching a solution independently first can tell me how they may react to a brick wall of a problem. Last thing that comes to my mind, is how long they try before giving up. That can be a good indicator for how they treat work meetings - do they push through the task one at a time and in exact order, or do they have the social skills to know when it is time to shut up and move on to the next thing.

    • prime_number_314159@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      3 hours ago

      That’s a much better question, though! “Here’s a stack trace and the source code. Walk me through where to go from here.”

      Most places use at least some open source software, so most places can do this, and if you ask your sys admin team nicely, there’s probably some stack traces available, hot off the prod.

  • sweafa@discuss.tchncs.de
    link
    fedilink
    arrow-up
    4
    ·
    5 hours ago

    maybe dont care. hit all 3 of em. answer is: i have figured out that one of the 3 switches controls the bulb (or not)

    • danhab99@programming.devOP
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      You have to report back which individual switch it is such that another person is able to control the light bulb reliably because they know which switch

  • emotional_soup_88@programming.dev
    link
    fedilink
    English
    arrow-up
    9
    ·
    7 hours ago

    Dead serious question: I have only ever worked in the public sector (state level and local municipality) but often see or hear about these seemingly idiotic “interview questions” on television (and obviously memes).

    Is this:

    1. just a meme
    2. just a joke
    3. an actual phenomenon in the private sector

    If 3, what on earth is its purpose and what could the interviewer possibly find out about the applicant by asking this?

    I’m calm.

    • MrSmith@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      4 hours ago

      It started when Google started hiring hoardes of people and their interview questions “that only a genius could solve” started leaking. At some point, everyone wanted to work at Google, because they had a slide and free sandwiches and whatnot.

      Then, every startup, turtlenecked steve jobs-wannabe started copying those nonsensical questions that only “gifted” people could answer.

      It’s definitely a thing, praised by every linkedin lunatic, for finding people who “want to be a part of the family”, are “willing to give it 1100%”, and will do overtime for free to prove they’re “worth it”.

    • MyNameIsRichard@lemmy.ml
      link
      fedilink
      arrow-up
      9
      ·
      5 hours ago

      In the private sector, I once was asked to come up with 12 uses for a kettle. I said make 12 cups of coffee. I didn’t get the job.

    • subiprime@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      8
      ·
      6 hours ago

      I don’t have experience with interacting with these questions in an interview, but I think these questions are supposed to be a test of problem solving ability, which could be relevant in some jobs like programming, I suppose. I still think it’s stupid though.

      This question in particular I’m pretty sure has a BS “outside the box” answer, where “outside the box” really means “the question is very misleading and to solve it you have to realize that when we explained this scenario, we heavily implied a set of abstracted rules you could try to solve, but we actually want you to “think outside the box” and come up with a different set of rules that, if you thought we were asking this question in good faith, you would have assumed is obviously cheating”, which isn’t relevant to programming skills and is also just ridiculous.

      (I think the answer is :

      Tap for spoiler

      Turn one switch “A” on, and keep it on for some time. Turn it off, and turn another one “B” on. Go into the room. If the bulb is on, B controls it. If it’s off but warm, A controls it. If it’s off and cold, C controls it. :::)

      • needanke@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        3 hours ago

        Your answer assumes it is known wether it was off or on in the beginning. I did not see that from the question tbh.

      • lobut@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        4 hours ago

        I think they’re stupid too. Going into an interview is already stressful enough and these types of questions don’t put me into “problem solving” mode. They put me into “brain teaser” mode which is a different type of thinking for me. You know how we nailed these questions when I was in uni? We traded them after our interviews between each other and you just had to pretend you’ve never heard it before. So the main thing people were testing was whether or not the question had made it to them.

        For programming, there are so many better ways to test out of the box thinking to me … I think the “what happens when you press a letter into a web browser address bar” or something is better and at least relevant. One that I like is, “there’s an outage in production, how would you go about diagnosing it?” Then as an interviewer I’d reshape the scenario and see where they put their focus and where they give up.

  • TDCN@feddit.dk
    link
    fedilink
    arrow-up
    13
    ·
    8 hours ago

    The “correct” answer doesnt work for led bulbs. A more modern answer would be why the hell can i only go to the room once!? Or you could get a friend/coworker to go to the room and just observe the bulb. One blink switch one, two blinks switch two etc. Lastly if you know a random switch is controlling a light in another room, why the hell is that switch not labeled if you already knew about it. Like how did this problem even arise in the first place. Also if you just want light in the room right now just turn all 3 on and go to the room.

    • mech@feddit.org
      link
      fedilink
      arrow-up
      4
      ·
      5 hours ago

      There is no correct answer. The interviewer wants to see how you approach the problem. You can have the correct answer but still make a bad impression, or you can fail to find the standard solution and still ace this test.

      • TDCN@feddit.dk
        link
        fedilink
        arrow-up
        3
        ·
        5 hours ago

        I think of the interviewer ask this specific question they aren’t sophisticated enough to expect anything else than the “correct” answer. The question is so old, stupid, and irrelevant that anyone smart enough to ask actual good interview questions would never lead with this.

        • mech@feddit.org
          link
          fedilink
          arrow-up
          2
          ·
          4 hours ago

          IMO questions like this only make sense if you slightly modify them to make the “standard” answer impossible.
          Then you see how the candidate reacts to curveballs.
          I still think it’s more useful to ask the candidate for a problem they’ve solved in a creative way.

  • JRaccoon@discuss.tchncs.de
    link
    fedilink
    arrow-up
    20
    ·
    10 hours ago

    I think I was asked this very question in an interview once. I think I answered something along the lines of ‘If you have a light switch like that here in the office, the first thing I would recommend is calling in an electrician to change and move the switch to the correct room. Why would you have a light switch that controls a light in a different room and apparently two switches that do nothing??’

    Got the job.

  • Skyline969@lemmy.ca
    link
    fedilink
    English
    arrow-up
    55
    ·
    12 hours ago

    Only works if it’s an incandescent light, but…

    Flip one switch. Wait a few minutes. Flip it off.

    Flip the second switch and go into the room.

    If the light is on, it’s the switch you flipped most recently. If the light is off but warm, it was the first switch. If it’s off and cold, it’s the switch you didn’t touch.

    • Tolookah@discuss.tchncs.de
      link
      fedilink
      arrow-up
      4
      ·
      6 hours ago

      You can visit the room once, doesn’t say you can’t swap the bulb for a smart bulb and use your phone to figure it out when it enters pairing mode…

    • cmnybo@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      20
      ·
      11 hours ago

      Only works if it’s an incandescent light

      LED and fluorescent lights get hot too, it just takes a bit longer.

      • Anna@lemmy.ml
        link
        fedilink
        arrow-up
        10
        ·
        11 hours ago

        Yeah like few hours longer. And if I’m asked that I’ll force the interviewer to sit through until it gets warm

  • WanderingThoughts@europe.pub
    link
    fedilink
    arrow-up
    31
    ·
    12 hours ago

    “Do you have any questions for us?”

    “You have three engineers in one room. The order comes to let one go. Who do you let go and why?”

    “Wut?”

  • Greg Clarke@lemmy.ca
    link
    fedilink
    English
    arrow-up
    18
    ·
    12 hours ago

    Turn off all of the switches, go into the room with the bulb, smash the bulb, then the correct answer is none of the switches control the bulb. #Science

  • Dudewitbow@lemmy.zip
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    12 hours ago

    if anyoen is curous on the answer, you flip one and wait till you think a light bulb gets warm enough from ambient that youd notice. you then turn that off and turn another on.

    if light = on, second switch you hit

    if light = off && bulb = warm, it was the first switch

    else switch 3

    • Decq@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      5 hours ago

      That’s not the answer. It’s an answer. The question isn’t very contained so there are a lot of answers. You can get someone else to switch the switches in order while you watch. Or you can install a camera in the room and then pull the switches. You can keep the door open to see which switches works, etc. Probably a million more solutions.

    • RedCarCastle@aussie.zone
      link
      fedilink
      English
      arrow-up
      9
      ·
      12 hours ago

      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,

      • Dudewitbow@lemmy.zip
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        12 hours ago

        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.

        • RedCarCastle@aussie.zone
          link
          fedilink
          English
          arrow-up
          3
          ·
          11 hours ago

          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

  • TORFdot0@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    12 hours ago

    I assume this is a question to weed out candidates using AI as it’s not possible but AI tries to solve for it anyway.

    • MachineFab812@discuss.tchncs.de
      link
      fedilink
      arrow-up
      5
      ·
      11 hours ago

      I mean, my solutions either require more information or for the question to be stupidly open-ended.

      I’m fond of “leave the door open”, but that only works if the doorway is visible from the switches and the space between too bright.

      “send someone else into the room and call them” requires the freedom to do that, but end-runs the need for me to go into the room entirely.

      Gimme two smartphones and I’m video-calling one I leave in the room.

      In all of my answers and others I’ve seen so far, we’re either making presumptions or making shit up. The question fails as an “only one right answer with only the information given” logic test, but would work to reveal how we approach problems - a personality test.

        • MachineFab812@discuss.tchncs.de
          link
          fedilink
          arrow-up
          1
          ·
          8 hours ago

          I saw the “break the bulb” solution before I commented one. Points for the most straight-forward solution, assuming its a simple light-source and not something more secure that a few bulbs at most.