HF RL Explorer

Task: Find Duplicates in a List and Create a List of Duplicates

Task: Find Duplicates in a List and Create a List of Duplicates: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that finds all duplicate values in a list of integers and creates a new list containing only the duplicate elements.

The task

Write a Python script that finds all duplicate values in a list of integers and creates a new list containing only the duplicate elements.

Part of PrimeIntellect/Terminal-Lego-15k.