Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 421 Bytes

File metadata and controls

13 lines (8 loc) · 421 Bytes

Given a sorted integer array without duplicates, return the summary of its ranges.

For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"].

Credits:
Special thanks to @jianchao.li.fighter for adding this problem and creating all test cases.

Show Tags Array

Show Similar Problems (M) Missing Ranges