摘要:
《算法导论》2.3-7很值得一练。其中用到了归并排序、二分查找等等:Give a Q(n lg n) time algorithm for determining if there exist two elements in an set S whose sum is exactly some value x.以下是答案,其实想想很简单的。代码如下,以备日后查找:)代码Code highlight... 阅读全文
posted @ 2010-01-04 10:42
wlu
阅读(397)
评论(0)
推荐(0)

浙公网安备 33010602011771号