4031. Find All Numbers Disappeared in an Array II
You are given an integer array
numsand two integerslowerandupper.A missing integer is an integer in the inclusive range
[lower, upper]that does not appear innums.Return a 2D integer array where each element is of the form
[start, end], representing a contiguous range of missing integers. Return the ranges in increasing order. If there are no missing integers, return an empty array.Note: Consecutive missing integers should be grouped into a single range.
1 | class Solution { |