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!

  • Tlaloc_Temporal@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    20 hours ago

    We can check that gravity and friction exists right now, without leaving the room. It’s also quite specific situations that don’t have either one.

    Here, how the switches are related to the light is already in question, and dumb wiring jobs are more common than anyone wants.

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

      but you dont know the values to which they are to br able to ask a question involving it which is the point. youre put in a situation where you dont know everything. there are things you assume the question giver assumes else questions are never answerable. they arent given to you as a gotcha situation, especially in the context as a programming question.