An organization has rented a series of consecutive building floors spanning from bottom to top, inclusive. You are given two integers bottom and top, along with an integer array special, where each special[i] represents a designated special floor within this range.
Return the maximum number of consecutive floors in the range bottom, top
Constraints:
special.length
bottom special[i] top
All the values of special are unique.
An organization has rented a series of consecutive building floors spanning from bottom to top, inclusive. You are given two integers bottom and top, along with an integer array special, where each special[i] represents a designated special floor within this range.
Return the maximum number of consecutive floors in the range bottom, top
Constraints:
special.length
bottom special[i] top
All the values of special are unique.