HTMLify
LeetCod3 - Check if Array is Good - Python
Views: 485 | Author: abh
1 2 3 4 5 | class Solution: def isGood(self, nums: List[int]) -> bool: nums.sort() good = list(range(1, len(nums))) + [len(nums)-1] return nums == good |