boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 这个面试题很confusing 大家帮忙解释一下
相关主题
面试题 -算法?
面试题求解 (转载)
MatLab Code
C -> assembly
Cloudera pitches Hadoop for everything. Really?
Spark 和 Dynamodb 之间 如何 连接
天天嚷嚷这个 out 那个out的真是有病
来几个C++测试题
i +++ j
问个flex的问题
相关话题的讨论汇总
话题: outputs话题: number话题: whenever话题: preceding话题: contained
进入Programming版参与讨论
1 (共1页)
b*******u
发帖数: 501
1
Here is the whole problem.
Write a program that outputs the numbers 1 thru 100 and obeys the following
special rules:
1. Outputs "Strata" whenever the number contains a 2。
2. Outputs "Red" whenever the number contains 2 identical digits.
3. Outputs "Blue" whenever the number two preceding the number you are on
contained a 2.
第三条Rule是什么意思?
What does it means: “the number two preceding the number you are on
contained a 2.”
Thanks.
x*******u
发帖数: 2074
2
第三条就是满足第一条的数+2的那个吧

following

【在 b*******u 的大作中提到】
: Here is the whole problem.
: Write a program that outputs the numbers 1 thru 100 and obeys the following
: special rules:
: 1. Outputs "Strata" whenever the number contains a 2。
: 2. Outputs "Red" whenever the number contains 2 identical digits.
: 3. Outputs "Blue" whenever the number two preceding the number you are on
: contained a 2.
: 第三条Rule是什么意思?
: What does it means: “the number two preceding the number you are on
: contained a 2.”

b*******u
发帖数: 501
3
Thx. 我也是这么理解的~ 这个句子看着非常拗口...

【在 x*******u 的大作中提到】
: 第三条就是满足第一条的数+2的那个吧
:
: following

1 (共1页)
进入Programming版参与讨论
相关主题
问个flex的问题
Question about a C++ compilation error on Visual Studio 2005
c preprocess question
why copy assignment operator returns non-const type?
C++ Q 103-105 (转载)
C++ Q 109: <<, &&
问个OO题
logical operator short circuit
简易计算器优先计算级别怎么算?
US Supreme Court rules Aereo's streaming service is illegal under copyright law
相关话题的讨论汇总
话题: outputs话题: number话题: whenever话题: preceding话题: contained