Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1285. Find the Start and End Number of Continuous Ranges
Given an array of integers (possibly unsorted and with duplicates), identify all maximal sequences of consecutive numbers and return each range as its start and end (single numbers should be reported as start == end). The core challenge is to group numbers into contiguous runs of consecutive values and output their boundary pairs efficiently.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.