摘要: 题目一:给定一整型数组,从中找到两个数以使得他们的加和等于给定的数。其中,时间复杂度要求O(n)函数原型:(1)Python语言:class Solution:# @return a tuple, (index1, index2)def twoSum(self, num, target):#your... 阅读全文
posted @ 2015-03-09 20:22 云裳诉 阅读(182) 评论(0) 推荐(0) 编辑