Loading...

The Duplicate Spotter

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
easy
Seniority
junior, mid

Problem

Given a list of integers, return a new list containing only the values that appear more than once. Each duplicate value should appear only once in the result. The order of elements in the output does not matter.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.