Loading...

The Repeat Offenders

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

Domain
Python
Difficulty
easy
Seniority
staff

Problem

Our data quality checker needs to flag repeated values in ingestion batches. Write a function called find_duplicates that takes a list and returns values appearing more than once - each duplicate listed only once, in order of first appearance.

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.