Loading...

The Gap Reporter

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

Domain
Python
Difficulty
medium
Seniority
mid, senior

Problem

A data audit tool needs to identify unrepresented integer ranges in a sorted sequence. Given a sorted list of unique integers and inclusive lower and upper bounds, return a list of [start, end] pairs representing all integer ranges within [lower, upper] not present in the input. Single missing values should be reported as [x, x].

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.