GoalScope — two_sum (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def two_sum(nums, target):↵
"""Returns indices of the two numbers such that they add up to target."""↵
num_map = {}↵
for i, num in enumerate(nums):↵
complement = target - num↵
if complement in num_map:↵
return [num_map[complement], i]↵
num_map[num] = i↵
</code>