由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - Given a sorted array find all possible |ai - aj| where ai,aj belongs to Array A. Fin
相关主题
Google电话面试题目Extension problem of finding intersection of two sorted array
一个特别的inplace merge two sorted arrays问一道老题
一个小公司面经哪里有讲k-way merge的?
问个面试题请教一下external sorting的问题
anybody remember this question?? (about sorting)刷题刷到没自信了
[算法] unsorted arraya[i] + b[j] = c[k] 的题有靠谱的答案不?
find median for k sorted arrays优步面试,哎。。。
c/c++ qsort/sort 来 sort array of string[合集] google phone interview questions
相关话题的讨论汇总
话题: array话题: aj话题: ai话题: given话题: fin
进入JobHunting版参与讨论
1 (共1页)
s******d
发帖数: 61
1
复杂度怎么能控制到o(n)啊
I*******l
发帖数: 203
2
Are there any additional conditions? If no, then it seems you can not do
this in o(n^2) time. This is because you can construct an array such that
all the pairwise differences are distinct, so there are \theta(n^2) numbers
to output. For example, 1,2,4,8,....
1 (共1页)
进入JobHunting版参与讨论
相关主题
[合集] google phone interview questionsanybody remember this question?? (about sorting)
[合集] Google电话面试题目[算法] unsorted array
关于面试ABCfind median for k sorted arrays
CS intern面试经验c/c++ qsort/sort 来 sort array of string
Google电话面试题目Extension problem of finding intersection of two sorted array
一个特别的inplace merge two sorted arrays问一道老题
一个小公司面经哪里有讲k-way merge的?
问个面试题请教一下external sorting的问题
相关话题的讨论汇总
话题: array话题: aj话题: ai话题: given话题: fin