Quantcast
Channel: 耍下 - 2012年3月
Viewing all articles
Browse latest Browse all 3

今天的面试题做错了,呜呜

$
0
0

题目是这样的:

有一个整数n,写一个函数f(n),返回0到n之间出现的"1"的个数。比如f(13)=6,现在f(1)=1,问此后最大的f(n)=n的n是什么?

[...]


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images