← Expedia questions

Summarize consecutive ranges in an array

Filed under Expedia

Given a sorted array of unique integers, return a list of strings summarizing its consecutive ranges. A consecutive sequence starting at start and ending at end (where start < end) should be formatted…

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 Expedia questions

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