HTMLify

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

Comments