1.两数之和
from typing import List
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
"""
【空间换时间】
哈希表解法,将值与下标存在哈希表内,遍历时拿和值-当前值=目标值
再判断目标值是否存在哈希表中,如果存在直接返回
Args:
nums (List[int]): _description_
target (int): _description_
Returns:
List[int]: _description_
"""
map = {}
for index, value in enumerate(nums):
result = target - value
if result in map:
return [map[result], index]
map[value] = index
return []
print(Solution().twoSum([3, 3], 6))
prednisone 5mg capsules
top 10 online pharmacy in india
valtrex 500 mg tablet
lisinopril 10 mg without prescription
tadalafil 10 mg tablet
prednisone for sale online
generic prednisone over the counter
lisinopril online without prescription
valtex without a prescription
buy azithromycin over the counter
reputable indian online pharmacy
northwest pharmacy canada
average cost cialis daily use
175 mg synthroid
online pharmacy
buy lisinopril 20 mg
valtrex
canadadrugpharmacy
synthroid 50mcg coupon
reliable canadian online pharmacy
no rx pharmacy
azithromycin buy online no prescription
discount zestril
cost of synthroid
tadalafil 5 coupon
can i buy metformin without prescription
prednisone 60 mg tablets
synthroid online no prescription
valtrex prices canada
prednisone cream
online pharmacy usa
valtrex 1 mg
where to buy prednisone in canada
daily prednisone
canadian pharmacy cialis 20 mg
lisinopril from canada
lisinopril tabs 10mg
online drugs valtrex
onlinecanadianpharmacy 24
legit pharmacy websites
tadalafil tablet buy online india
can you purchase zithromax
synthroid 75 mcg
indinavir que es el cytotec y cuanto cuesta Heaney grew up on the family farm, where what counted was skill with a spade or a plough priligy dapoxetina 30mg nos eua