Summary Ranges at Yandex

Easy53.9% acceptance

This problem has 87.5% frequency at Yandex.

Problem Description

You are given a **sorted unique** integer array `nums`. A **range** `[a,b]` is the set of all integers from `a` to `b` (inclusive). Return _the**smallest sorted** list of ranges that **cover all the numbers in the array exactly**_. That is, each element of `nums` is covered by exactly one of the r...

Read full problem and hints

Topics

Also asked at 9 companies


More Yandex Questions

View all Yandex questions