Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.37 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.37 KB

< Previous                  Next >

Given a sorted integer array nums, where the range of elements are in the inclusive range [lower, upper], return its missing ranges.

Example:

Input: nums = [0, 1, 3, 50, 75], lower = 0 and upper = 99,
Output: ["2", "4->49", "51->74", "76->99"]

Related Topics

[Array]

Similar Questions

  1. Summary Ranges (Easy)