Leetcode之Summary Ranges 问题

问题描述: Given a sorted integer array without duplicates, return the summary of its ranges. 示例一: Input: [0,1,2,4,5,7] Output: ["0->2","4->5","7"] 示例二: Input: [0,2,3,4,6,8,9] Output: ["0","2->4","6","8->9
相关文章
相关标签/搜索