论文部分内容阅读
[面试题]有两个房间,一个房间里有三盏灯,另一个房间里有控制这三盏灯的三个开关(这两个房间是分开的,毫无联系)。现在你分别进入这两个房间一次,然后判断出这三盏灯分别是由哪个开关控制的。从表面来看,装有三盏灯和三个开关的两个房间是分开的,毫无联系,所以不存在日常生活中可以边开边观察判断的情形,而且问题要求非常明确,就是你分别进入这两个房间一次,就推断出哪个开关和哪盏灯对应。如果是要求判断两个开关和对应的两盏灯,那么解决起来就非
[Interview questions] There are two rooms, one room has three lights, and the other room has three switches that control the three lights (the two rooms are separated and have no connection). Now you enter the two rooms once and then determine which switch controls the three lamps. On the surface, the two rooms with three lights and three switches are separated and there is no connection. Therefore, there is no situation in daily life that can be viewed and judged openly, and the problem is very clear, that is, you enter separately. Once in these two rooms, it is inferred which switch corresponds to which lamp. If it is required to determine the two switches and the corresponding two lamps, then the solution is not correct.