面試題精選(77):兩有序數組的中位數求解

題目描述:ios Let X[1 .. n] and Y [1 .. n] be two arrays, each containing n numbers already in sorted order. Give an O(lg n)-time algorithm to find the median of all 2n elements in arrays X and Y.面試   題目是《
相關文章
相關標籤/搜索