摘要: 给定一个整数数组和一个目标值,找出数组中和为目标值的两个数。 你可以假设每个输入只对应一种答案,且同样的元素不能被重复利用。 示例: 答案: class Solution: def twoSum(self, nums, target): """ :type nums: List[int] :type 阅读全文
posted @ 2018-09-02 19:57 st--st 阅读(92) 评论(0) 推荐(0) 编辑