from typing import List


def continuous_int_to_ranges(nums: List[int]):
    """
    LeetCode 228: Summary Ranges
    Given a sorted integer array without duplicates, return the summary of its ranges(continuous int).
    Examples:
        1. [1] -> [[1, 1]]
        2. [0, 1, 2, 4, 5, 7] -> [[0, 2], [4, 5], [7, 7]]
        3. [0, 2, 3, 4, 6, 8, 9, 10, 11] -> [[0, 0], [2, 4], [6, 6], [8, 11]]
    :param nums: sorted int list without duplicates
    :return:
    """
    l = len(nums)
    if l == 0:
        return []
    res = []
    start = nums[0]
    for i in range(l - 1):
        if nums[i] + 1 < nums[i + 1]:
            res.append([start, nums[i]])
            start = nums[i + 1]
    res.append([start, nums[-1]])
    return res