leetcode python 簡單難度 解答版本(持續更新)

1 (1_twosum) 標準答案1python class Solution(object): def twoSum(self, nums, target): dic = {} for i, num in enumerate(nums): if num in dic: return [dic[num]
相關文章
相關標籤/搜索