Compress Consecutive Ranges
Asked at Cisco · Coding Questions · Difficulty: Easy · Last asked Aug 26, 2025
Given a list of integers in a fixed order, split it into maximal runs of consecutive increasing values (each value exactly one more than the one before it) and describe each run as text.
Loading the problem…