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
相關文章
相關標籤/搜索