(self, nums: List[int], target: int)
| 4 | |
| 5 | class Solution: |
| 6 | def twoSum(self, nums: List[int], target: int) -> List[int]: |
| 7 | num_map = {} |
| 8 | for i, num in enumerate(nums): |
| 9 | complement = target - num |
| 10 | if complement in num_map: |
| 11 | return [num_map[complement], i] |
| 12 | num_map[num] = i |
| 13 | return [] |
nothing calls this directly
no outgoing calls
no test coverage detected