(self, nums, target: int)
| 1 | class Solution: |
| 2 | def twoSum(self, nums, target: int): |
| 3 | visited = {} |
| 4 | for i in range(len(nums)): |
| 5 | difference = target - nums[i] |
| 6 | if difference in visited: |
| 7 | return [visited[difference], i] |
| 8 | else: |
| 9 | visited[nums[i]] = i |
nothing calls this directly
no outgoing calls
no test coverage detected