Arrays

Missing Ranges

easy
You are given a sorted unique integer array `nums` and two integers `lower` and `upper`. Return the shortest sorted list of ranges that cover every missing number in [`lower`, `upper`] inclusive. Format each range as a string: `"x"` if alone, or `"x->y"` if a span.
Hint steps(0/2 revealed)
  1. 1

    Complete previous step or reveal to unlock this hint.

  2. 2

    Complete previous step or reveal to unlock this hint.