由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问道题?brainteaser 方面
相关主题
恶心的台湾女老板竟然在公司公开我的薪金攒RP,也发我的经验与体会
并发,OO方面的coding interview问题怎么准备?请推荐一本java面试编程的书
微软面试的小体会请求推荐一本CS面试的书
brainteaser关于CS的面试书, 读完Programming Interviews Exposed之后
Bloomberg 面经CS专业的几本书,面试用(更新完)
今天露马脚了求高人推荐C++比较好的书
BB NON CS onsite面经看到一个公司的招聘统计信息
GS on site interview 求指教请问谁有programming interview exposed这本书?
相关话题的讨论汇总
话题: chairs话题: pass话题: lift话题: time
进入JobHunting版参与讨论
1 (共1页)
h*****g
发帖数: 312
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.
这道题啥意思?
知道的能不能帮着解答一下。
谢了~
r********e
发帖数: 122
2
1/2
g*******s
发帖数: 490
3
就是滑雪缆车,你从这一头坐到那一头,一路上,从缆绳的另一边过去的chair,答案
就是全部,很容易理解。

s

【在 h*****g 的大作中提到】
: 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.
: 这道题啥意思?

g*****k
发帖数: 623
4
这个很容易理解的,应该是经过所有的椅子,
其实这道题给你点时间,很容易就想清楚了。
如果实在不行,就拿根绳子模拟下了。

s

【在 h*****g 的大作中提到】
: 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.
: 这道题啥意思?

1 (共1页)
进入JobHunting版参与讨论
相关主题
请问谁有programming interview exposed这本书?Bloomberg 面经
crack coding interview今天露马脚了
求 Programming Interview Exposed 电子书~BB NON CS onsite面经
求Programming Interviews Exposed电子版GS on site interview 求指教
恶心的台湾女老板竟然在公司公开我的薪金攒RP,也发我的经验与体会
并发,OO方面的coding interview问题怎么准备?请推荐一本java面试编程的书
微软面试的小体会请求推荐一本CS面试的书
brainteaser关于CS的面试书, 读完Programming Interviews Exposed之后
相关话题的讨论汇总
话题: chairs话题: pass话题: lift话题: time