問題詳情
【題組】(41) Farthest Neighbors: Given an unsorted array of n floating-point numbers as input, return two of the numbers that are farthest in value from each other.
(A)O(n log n)
(B)O(log n)
(C)O(n2)
(D)O(n3)
(E)O(n)
參考答案
答案:[無官方正解]
難度:計算中-1
書單:沒有書單,新增