今天早上在Quora上看到的一个题目,很不错的!最直观的是枚举n^3,但稍微进步一点的观察是找出3个数,然后最大的减去最小的2倍的结果,然后就有了线性扫一遍就OK. Given three arrays, A, B, and C, what is the best algorithm to find the minimum value of , where ? 解答: Assuming that the arrays are not sorted, here is an algorithm.1…