码迷,mamicode.com
首页 >  
搜索关键字:哈希    ( 6461个结果
《Cracking the Coding Interview》——第17章:普通题——题目12
2014-04-29 00:04题目:给定一个整数数组,找出所有加起来为指定和的数对。解法1:可以用哈希表保存数组元素,做到O(n)时间的算法。代码: 1 // 17.12 Given an array of integers and target value, find all pairs in ...
分类:其他好文   时间:2014-04-29 15:08:13    阅读次数:469
6461条   上一页 1 ... 645 646 647
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!