Describe a O(n lgn) - time algorithm that, given a set S of n integers and another integer x, determines whether or not there exist two elements in S whose sum is exactly x.
英
美
释义
因为无聊;准备细细再琢磨一番;上面是第二章一超级入门题目;愣是不会做.
把海词放在桌面上,查词最方便
触屏版
|
电脑版
©2003 - 2024 海词词典(Dict.cn)
立即下载