The Missing Number
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L3
Problem
Given a sorted list of distinct positive integers and integer n (1-based), return the n-th positive integer (in 1, 2, 3, ...) that is NOT in the list.
Summary
Something is missing from the sequence.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.