diff --git a/Luv761901/0000/0000.py b/Luv761901/0000/0000.py new file mode 100644 index 00000000..1b22314f --- /dev/null +++ b/Luv761901/0000/0000.py @@ -0,0 +1,9 @@ +class Solution: + def twoSum(self, nums: List[int], target: int) -> List[int]: + d={} + print(d) + for i,j in enumerate(nums): + x=target-j + if x in d: + return [d[x],i] + d[j]=i