當作腦部運動。我自己封的哈,聽說是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個位子在一條線上。當地的人們不是喜與人交往,因此當他們走進酒吧時,總是找離人最遠的位子。如果有人近來發現沒有旁邊沒有人的位子,他們就會走開。酒店老闆當然希望最多人進來。老闆可以指定第一個人作的位置。請問他要指定第一個人坐在哪裡?
|