Loading...

The Shadow Cleaner

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

Domain
Python
Difficulty
easy
Seniority
junior

Problem

Our data quality layer removes duplicates from record streams. Write a function called dedup that takes a list and returns a new list with duplicates removed, preserving the first occurrence order. Do not use set(), dict.fromkeys(), or any similar built-in dedup shortcut.

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.