You are given an integer array nums.
An array is considered good if it is a permutation of an array base[n], defined as base[n] = [$1$, $2$, ..., $n - 1$, $n$, $n$] for some positive integer
In other words, base[n] has a length of
Return true if nums is a good array, or false otherwise.
Note: A permutation of an array is an arrangement of its elements in any order.
Constraints:
nums.length
nums[i]
You are given an integer array nums.
An array is considered good if it is a permutation of an array base[n], defined as base[n] = [$1$, $2$, ..., $n - 1$, $n$, $n$] for some positive integer
In other words, base[n] has a length of
Return true if nums is a good array, or false otherwise.
Note: A permutation of an array is an arrangement of its elements in any order.
Constraints:
nums.length
nums[i]