Spot the bug: Contains Duplicate that remembers the last call

easy
Hash set

Bug 12 of 12

This Python solution is supposed to do the following: Return True if any value appears at least twice in nums. The tests call the function several times in a row. It has one bug. Find the line in two tries.

Tap the line with the bug

2 tries left

FAQ