Missing Ranges — JavaScript easy interview problem
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.
Tags: ranges
Practice this Arrays problem free in the JS Interview Playground with automated tests and unlockable solutions.