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!

  • Dudewitbow@lemmy.zip
    link
    fedilink
    arrow-up
    16
    ·
    edit-2
    17 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
      4
      ·
      edit-2
      10 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
      10
      ·
      17 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
        17 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
          ·
          16 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

      • Dudewitbow@lemmy.zip
        link
        fedilink
        arrow-up
        0
        ·
        5 hours ago

        if you want to avoid that problem, you would just add the step at the very start: have all the bulbs in off and wait a bit for all the bulbs to cool off if you needed to be sure.

        • tias@discuss.tchncs.de
          link
          fedilink
          arrow-up
          2
          ·
          5 hours ago

          wdym “have all the bulbs in off”. You can’t verify that without looking into the room and then you’ve burnt your one shot.

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

            you get to the point where no question can ever be asaked to you because you believe in the manipulation of the question over to the point that you’re intentionally looking for ways to break the question rather than assuming you and the question giver has the same assumption given the question circumstance.

            If you go out and look for dumb things like that, there is basically no question in the universe thats answerable.

            Do you question if gravity and friction exist if someone asks you how fast something is moving? and what values they are?