Loading...

The Original Keeper

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

Our event stream sometimes delivers the same user ID multiple times, but downstream attribution models depend on the original arrival order. The pipeline needs to deduplicate without reshuffling. Given a list with possible duplicates, produce a clean version that keeps only the first occurrence of each value.

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.