From 88841bbf416d2089ccddfe8bfb72f0a0db5e8414 Mon Sep 17 00:00:00 2001 From: Tejas ///M Date: Tue, 22 Apr 2025 22:42:03 +0530 Subject: [PATCH] Update 001.py changed to proper indexing --- 001-500/001.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/001-500/001.py b/001-500/001.py index a5306bb..301476f 100644 --- a/001-500/001.py +++ b/001-500/001.py @@ -4,6 +4,6 @@ def twoSum(self, nums: List[int], target: int) -> List[int]: for i in range(len(nums)): r = target - nums[i] if r in d: return [d[r],i] - d[nums[i]]=i + d[nums[i]] = i