LeetCode
Question
·
Jan 2021
·
Los Angeles
Bloomberg | Phone | Find all ranges of consecutive numbers from Array
1 upvote
2,658 views
4 replies
Question Details
Given a sorted array arr[] consisting of N integers without any duplicates, the task is to find the ranges of consecutive numbers from that array. Examples: Input: arr[] = {1, 2, 3,...
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Arrays
Sorting