Re: RE: 基督徒最后的武器都是不可知论 (转载)# Joke - 肚皮舞运动
g*y
1 楼
刚才看见问面试题,我理解错了,这是错误的理解:
Given P machines, each containing an array of N elements, find the median of
the N*P elements.
好象不是很简单的一道题。
P=2,sorted array时,ihasleetcode上有经典答案。
P是任意数,按类似的方法,写code就不简单,复杂度也不小。
有什么好办法?
Given P machines, each containing an array of N elements, find the median of
the N*P elements.
好象不是很简单的一道题。
P=2,sorted array时,ihasleetcode上有经典答案。
P是任意数,按类似的方法,写code就不简单,复杂度也不小。
有什么好办法?