Available question text
Given a sorted, unique integer array, compress consecutive runs of numbers into the minimal list of inclusive ranges that exactly cover all elements. Output each range as "a->b" if it spans multiple numbers or "a" if it’s a single number.
Related questions
Continue with questions that share topics or the same question type.
- Bank Account Summary
Coding
- Bank Account Summary II
Coding
- Convert IPv4 Ranges to CIDR Blocks
Coding · Bit Manipulation · Networking
- Count Vowel Strings in Ranges
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 228. Summary Ranges
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source