
Problem:
Given a sorted integer array without duplicates, return the summary of its ranges.
分析
给定一个排好序的数组,数组中不包含duplicates。比较简单的题目,遍历即可。注意处理各种corner case。
1 |
public class { |

Given a sorted integer array without duplicates, return the summary of its ranges.
给定一个排好序的数组,数组中不包含duplicates。比较简单的题目,遍历即可。注意处理各种corner case。
1 |
public class { |
近期评论