228 Summary Ranges
228. Summary Ranges
1. Question
Given a sorted integer array without duplicates, return the summary of its ranges.
Example 1:
Example 2:
2. Implementation
(1) Scan Line
3. Time & Space Complexity
Scan Line: 时间复杂度O(n), 空间复杂度O(n)
Last updated