leetcode: Summary Ranges
Contents
[NOTE] Updated May 8, 2016. This article may have outdated content or subject matter.
描述
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.
Subscribe to see which companies asked this question
go语言
|
|
Author beyondkmp
LastMod 2016-05-08