注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
epic OA挂掉了,准备得不太充分,coding题中有一道additive number比较有意思,又做了一遍,把方法post在这里,希望能帮助大家~攒人品!如果觉得有帮助,不要吝啬大米啊!不知道题的请戳这里http://careercup.appspot.com/question?id=17075662
public void generateAdditiveNumber(int low, int high)
{
int digitHigh = (int) (Math.log10(high)) + 1;
int digitLow = (int) (Math.log10(low)) + 1;
for(int i = 3; i <= digitHigh; i++)
{
int fiult);
}
}
}
}
}
补充内容 (2014-11-24 01:09):
此题还有考虑不周全的地方,因为无法删帖,请直接忽视,谢谢 |