← Questions

Missing ranges

0
MetaCodingLast asked Sep 2025

Given a sorted list of distinct integers inside a fixed range (for example 0 to 99), list the gaps. In the reported variant a gap of up to three numbers is written out number by number, while a longer gap is written as start->end.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding