1 class Solution: 2 def twoSum(self, nums: List[int], target: int) -> List[int]: 3 for i in range(len(nums)): 4 if (target - nums[i]) in nums and i != nums.index(target - nums[i]): 5 return [i, nums.index(target - nums[i])]
Copyright @ 2024 LZ_Jaja Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster