阅读背景:

根据1的数量查找数字的等级

来源:互联网 

Let f(k) = y where k is the y-th number in the increasing sequence of non-negative integers with the same number of ones in its binary representation as k, e.g. f(0) = 1, f(1) = 1, f(2) = 2, f(3) = 1, f(4) = 3, f(5) = 2, f(6) = 3 and so on. Given k >= 0, compute f(k)Let f(k) = y where k is the y-th number in the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: