Loading...

Single Element Among Pairs

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

Domain
Python
Difficulty
easy
Seniority
mid

Problem

Our data integrity checker processes sorted lists where every element appears exactly twice - except one orphan. Write a function called find_single that takes this sorted list and returns the element appearing only once.

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.