首页 > 其他 > 详细

[CareerCup] 10.3 Integer not Contain in the File 文件中不包含的数

时间:2015-10-05 14:18:14      阅读:163      评论:0      收藏:0      [点我收藏+]

 

10.3 Given an input file with four billion non-negative integers, provide an algorithm to generate an integer which is not contained in the file. Assume you have 1 GB of memory available for this task.
FOLLOW UP
What if you have only 10 MB of memory? Assume that all the values are distinct and we now have no more than one billion non-negative integers.

[CareerCup] 10.3 Integer not Contain in the File 文件中不包含的数

原文:http://www.cnblogs.com/grandyang/p/4855652.html

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