Leetcode 2229. Check if an Array Is Consecutive
Check whether an unsorted array's elements form a sequence of consecutive integers with no gaps or duplicates. Typically this reduces to verifying that max−min+1 equals the array length and that all values are unique.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.