首页 > 其他 > 详细

CC150 20.4

时间:2014-12-11 10:32:43      阅读:250      评论:0      收藏:0      [点我收藏+]

20.4 Write a method to count the number of 2s between 0 and n.

// What this mean?
// Given a n.
// for (int i = 0 -> n)
// {
//    result += numOf2In(i);
// }

// This is purely a math problem.


CC150 20.4

原文:http://7371901.blog.51cto.com/7361901/1588556

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!