79392381

Date: 2025-01-27 23:02:09
Score: 0.5
Natty:
Report link

I wonder, is this more performant?

from collections import Counter
c = Counter(arr)
if any(x > 1 for x in c.values): return 'duplicate found'
myset = set(c.keys()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: KamilCuk