mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
7 lines
243 B
Python
7 lines
243 B
Python
def find_duplicates(lst):
|
|
duplicates = []
|
|
for i in range(len(lst)):
|
|
for j in range(i + 1, len(lst)):
|
|
if lst[i] == lst[j] and lst[i] not in duplicates:
|
|
duplicates.append(lst[i])
|
|
return duplicates
|