Redian新闻
>
几道 google interview 的题目
avatar
几道 google interview 的题目# Programming - 葵花宝典
s*e
1
1. Given N computers networked together, with each computer storing N integers
, describe a procedure for finding the median of all of the numbers. Assume
that a computer can only hold O(N) integers (i.e. no computer can store all N^
2 integers). Also assume that there exists a computer on the network without
integers, that we can use to interface with the computers storing the integers
.
2. Given the sequence S1 = {a,b,c,d,...,x,y,z,aa,ab,ac.... } and given that
this sequence corresponds (term
avatar
b*e
2
it probably means to construct the tree based on some other information,
e.g. construct the binary search tree based on the result of in-order
and pre-order traversals.
avatar
b*e
3
see
#10236

integers
N^
integers
}

【在 s*********e 的大作中提到】
: 1. Given N computers networked together, with each computer storing N integers
: , describe a procedure for finding the median of all of the numbers. Assume
: that a computer can only hold O(N) integers (i.e. no computer can store all N^
: 2 integers). Also assume that there exists a computer on the network without
: integers, that we can use to interface with the computers storing the integers
: .
: 2. Given the sequence S1 = {a,b,c,d,...,x,y,z,aa,ab,ac.... } and given that
: this sequence corresponds (term

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。