由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - 【Brain Teaser】one interview question
相关主题
问个绿书上的问题 - brain teaser: Chameleon Colors[合集] A brain teaser question
不想挖矿了Brain teaser question
【Brain Teaser】出个题目[合集] Brain teaser question
求: Two Sigma 第二轮面试经验one brain teaser problem
弱问一下Credit Suisse的笔试practice interview?
有人收到 UBS 二面通知了么[合集] A interview Brain teaser
面试HFT的quant position需要做啥准备呢?[合集] 一道Brain teaser题,没有一点思路
[合集] a brain teaser~[合集] A brain teaser from GS
相关话题的讨论汇总
话题: chameleons话题: color话题: brain话题: teaser话题: red
进入Quant版参与讨论
1 (共1页)
f******e
发帖数: 921
1
There are 10 red, 11 blue, 12 green chameleons. Sometimes, two chameleons
meet. If they are the same color, nothing happens. If they are different
colors, they will both change to the third color. Can all chameleons ever
be the same color
any idea?
d********t
发帖数: 9628
2

be
No.

【在 f******e 的大作中提到】
: There are 10 red, 11 blue, 12 green chameleons. Sometimes, two chameleons
: meet. If they are the same color, nothing happens. If they are different
: colors, they will both change to the third color. Can all chameleons ever
: be the same color
: any idea?

f******e
发帖数: 921
3
why? thanks!
d********t
发帖数: 9628
4

forgot why

【在 f******e 的大作中提到】
: why? thanks!
D********n
发帖数: 978
5
Let red = 0, blue = 1 and green = 2. Consider the remainder of mod 3.
In other words, do all calculations in F3.
Verify:
red + blue = 2*green
red + green = 2*blue
blue + green = 2*red
So all the color changing preserves the remainder of mod 3.
10*red + 11*blue +12*green = 2
However, if they change to the same color, since there are 33 of them, the
total remainder will be 0 for sure. Hence impossible.

be

【在 f******e 的大作中提到】
: There are 10 red, 11 blue, 12 green chameleons. Sometimes, two chameleons
: meet. If they are the same color, nothing happens. If they are different
: colors, they will both change to the third color. Can all chameleons ever
: be the same color
: any idea?

k*****y
发帖数: 744
6
Each move does not change the combination of the numbers Mod 3.
The Initial combination is {1,2,0}. If they were ever in the same color, the
combination should be {0,0,0}.

be

【在 f******e 的大作中提到】
: There are 10 red, 11 blue, 12 green chameleons. Sometimes, two chameleons
: meet. If they are the same color, nothing happens. If they are different
: colors, they will both change to the third color. Can all chameleons ever
: be the same color
: any idea?

d********t
发帖数: 9628
7
对了,谢谢!

the

【在 k*****y 的大作中提到】
: Each move does not change the combination of the numbers Mod 3.
: The Initial combination is {1,2,0}. If they were ever in the same color, the
: combination should be {0,0,0}.
:
: be

l******i
发帖数: 1404
8
首先感谢楼主贡献,
如果可以的话,希望楼主最好能在帖子标题里加上问题的类别和关键词,
例如该帖名字可为:【Brain Teaser】one interview question
这样方便我们工作人员整理,谢谢啦。
我已经把标题改了。
这道题很好,很有启发。
A**u
发帖数: 2458
9
绿皮书

【在 f******e 的大作中提到】
: There are 10 red, 11 blue, 12 green chameleons. Sometimes, two chameleons
: meet. If they are the same color, nothing happens. If they are different
: colors, they will both change to the third color. Can all chameleons ever
: be the same color
: any idea?

k*****y
发帖数: 744
10
Sorry, I was wrong. It is not invariant in general. The correct statement
should be:
If the combination is {0,1,2}, then it is invariant under any move.

the

【在 k*****y 的大作中提到】
: Each move does not change the combination of the numbers Mod 3.
: The Initial combination is {1,2,0}. If they were ever in the same color, the
: combination should be {0,0,0}.
:
: be

1 (共1页)
进入Quant版参与讨论
相关主题
[合集] A brain teaser from GS弱问一下Credit Suisse的笔试
2 Brain Teasers有人收到 UBS 二面通知了么
请问有什么准备brain teaser的网站面试HFT的quant position需要做啥准备呢?
今天面试的brain teaser一道[合集] a brain teaser~
问个绿书上的问题 - brain teaser: Chameleon Colors[合集] A brain teaser question
不想挖矿了Brain teaser question
【Brain Teaser】出个题目[合集] Brain teaser question
求: Two Sigma 第二轮面试经验one brain teaser problem
相关话题的讨论汇总
话题: chameleons话题: color话题: brain话题: teaser话题: red