← Amazon questions

Format Stream of Numbers into Ranges

Filed under Amazon

Given a stream of integers, output them dynamically or as a sorted list represented as condensed ranges (e.g., consecutive numbers are grouped as start-end, individual numbers remain single).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.