由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 征解几道large scale的数字题
相关主题
一个小公司面经Google电话面试题目
问一道老题[合集] Google电话面试题目
a problem from leetcode: high efficiency algorithm for combinations problemSearch in a sorted, rotated list
Groupon 電面[算法] unsorted array
find medium number in stream 这题怎么作问道面试题
一道面试题看不懂问一道crack tech interview里面的题
A家面试题问个google面试题
Amazon二面问个关于排序的面试题
相关话题的讨论汇总
话题: find话题: algorithm话题: given话题: integers话题: sorted
进入JobHunting版参与讨论
1 (共1页)
j**l
发帖数: 2911
1
1. If you have 1 million integers, how would you sort them efficiently?
Modify a specific sorting algorithm to solve this.
2. Given a file of 4 billion 32-bit integers, how to find one that appears
at least twice? 分成若干段查找?
3. Find or determine non-existence of a number in a sorted list of N numbers
where the numbers range over M, M >> N and N large enough to span multiple
disks. Find algorithm to beat O(logn). Bonus points for constant time
algorithm.
4. You are given a small sorted list of numb
m*****g
发帖数: 226
2
第一题如果没有特别范围的话,只是1million的话可以直接在内存里面搞了。
第二题,32bit的int,一共也就4billion多点。是否可以二分法。
第三提不知
第四 二分
j**l
发帖数: 2911
3
第四题是否要用到B-树呢?
y*c
发帖数: 904
4
For 4, use binary search. Find the disk first and if lower bound and upper
bound are close enough and in one disk. We can bring them into memory.
Hi, jntl, do you mind zz or copy your post in 面试高手俱乐部? that one is
focused on the CS interview questions.
j**l
发帖数: 2911
5
Sure, you can zz or copy it.

【在 y*c 的大作中提到】
: For 4, use binary search. Find the disk first and if lower bound and upper
: bound are close enough and in one disk. We can bring them into memory.
: Hi, jntl, do you mind zz or copy your post in 面试高手俱乐部? that one is
: focused on the CS interview questions.

1 (共1页)
进入JobHunting版参与讨论
相关主题
问个关于排序的面试题find medium number in stream 这题怎么作
32MB 内存如何 sort 1GB data一道面试题看不懂
上一题看看A家面试题
1G内存读10G文件Amazon二面
一个小公司面经Google电话面试题目
问一道老题[合集] Google电话面试题目
a problem from leetcode: high efficiency algorithm for combinations problemSearch in a sorted, rotated list
Groupon 電面[算法] unsorted array
相关话题的讨论汇总
话题: find话题: algorithm话题: given话题: integers话题: sorted