首页 > 其他 > 详细

amazon 面经4

时间:2014-08-10 08:07:59      阅读:394      评论:0      收藏:0      [点我收藏+]

Round 1(Bar Raiser):
Complete discussion on my project.
Suppose you have a file with billion entries and you have to sort the data of a file according to a column and can put only that column in memory and after putting that your memory gets full.
e.g. your file contains

 

1. cut the big file to small files. the number of small files can be equal  big file divide memory size. 

2. sort each small file separate.

3. external sort  using min-heap.

 

amazon 面经4,布布扣,bubuko.com

amazon 面经4

原文:http://www.cnblogs.com/leetcode/p/3902341.html

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