Spot the bug: Two Sum that uses the same number twice

easy
Hash map

Bug 2 of 12

This Python solution is supposed to do the following: Return the indices of the two different numbers in nums that add up to target. It has one bug. Find the line in two tries.

Tap the line with the bug

2 tries left

FAQ