Push Tracker
experiments-07-07-12-local-.../agentic_scratch/gpt-oss-120b/t2_fix_bug/buggy.py

13 lines
261 B
Python
Raw Permalink Normal View History

G
2026-07-12 21:35:10 -04:00
def has_dup(xs):
seen = set()
for x in xs:
if x in seen:
return True
seen.add(x)
return False
if __name__ == "__main__":
assert has_dup([1,2,3,1]) == True
assert has_dup([1,2,3]) == False
print("tests pass")