当作脑部运动。我自己封的哈,听说是Amazon的面试题。我真纳闷,美国人就这样面试?。我个人觉得蛮难的。虽然最后找出答案,可是费了老鼻子劲,而且知其然,不知其所以然。就是说,直到正确答案,但是不了解为什么是这样,有什么规律或者奥妙在其中。各位姐妹,考察你的脑力的时候到了,哈哈哈
Brainteaser: there is a bar with 25 seats in a line. The people there are anti-social so when they walk in the bar, they always try to find a seat farthest away from others. If one person walks in and find there is no seat adjecent to nobody, that person will walk away. The bar owner wants as many people as possible. The owner can tell the first customer where to sit. all the other customers will pick the farthest possible seat from others. So where should the first customer sit. 翻译: 酒吧有25个位子在一条线上。当地的人们不是喜与人交往,因此当他们走进酒吧时,总是找离人最远的位子。如果有人近来发现没有旁边没有人的位子,他们就会走开。酒店老板当然希望最多人进来。老板可以指定第一个人作的位置。请问他要指定第一个人坐在哪里?
|