由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 这个面试题很confusing 大家帮忙解释一下
相关主题
面试题 -算法?i +++ j
面试题求解 (转载)问个flex的问题
MatLab CodeQuestion about a C++ compilation error on Visual Studio 2005
C -> assemblyc preprocess question
Cloudera pitches Hadoop for everything. Really?why copy assignment operator returns non-const type?
Spark 和 Dynamodb 之间 如何 连接C++ Q 103-105 (转载)
天天嚷嚷这个 out 那个out的真是有病C++ Q 109: <<, &&
来几个C++测试题问个OO题
相关话题的讨论汇总
话题: 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版参与讨论
相关主题
问个OO题Cloudera pitches Hadoop for everything. Really?
logical operator short circuitSpark 和 Dynamodb 之间 如何 连接
简易计算器优先计算级别怎么算?天天嚷嚷这个 out 那个out的真是有病
US Supreme Court rules Aereo's streaming service is illegal under copyright law来几个C++测试题
面试题 -算法?i +++ j
面试题求解 (转载)问个flex的问题
MatLab CodeQuestion about a C++ compilation error on Visual Studio 2005
C -> assemblyc preprocess question
相关话题的讨论汇总
话题: outputs话题: number话题: whenever话题: preceding话题: contained