2229. Check if an Array Is Consecutive
Given an integer array
nums, returntrueifnumsis consecutive, otherwise returnfalse.An array is consecutive if it contains every number in the range
[x, x + n - 1](inclusive), wherexis the minimum number in the array andnis the length of the array.
1 | class Solution { |