晒一下水电气帐单# Living
h*g
1 楼
Programming Interviews Exposed 第二版 176页
“From the time you get on a ski lift to the time you get
off, what proportion of the chairs do you pass?” Most people’s immediate
gut-level response is that you pass
half of the chairs. This response is obvious and makes some sense. At any
given time, half of the chairs are
on each side of the lift, and you pass chairs only on the other side. It’s
also wrong - because both sides of the
lift are moving, you pass all the other chairs.
这道题啥意思?
知道的能不能帮着解答一下。
谢了~
“From the time you get on a ski lift to the time you get
off, what proportion of the chairs do you pass?” Most people’s immediate
gut-level response is that you pass
half of the chairs. This response is obvious and makes some sense. At any
given time, half of the chairs are
on each side of the lift, and you pass chairs only on the other side. It’s
also wrong - because both sides of the
lift are moving, you pass all the other chairs.
这道题啥意思?
知道的能不能帮着解答一下。
谢了~