LC: 163. Missing Ranges
Input: nums = [0,1,3,50,75], lower = 0, upper = 99
Output: ["2","4->49","51->74","76->99"]
Explanation: The ranges are:
[2,2] --> "2"
[4,49] --> "4->49"
[51,74] --> "51->74"
[76,99] --> "76->99"Input: nums = [], lower = 1, upper = 1
Output: ["1"]
Explanation: The only missing range is [1,1], which becomes "1".PreviousLC: 158. Read N Characters Given Read4 II (Call multiple times)NextLC: 170. Two Sum III (Data structure design)
Last updated