classSolution:defisStraight(self,nums: List[int]) ->bool: max_card, min_card =float('-inf'),float('inf') seen =set()for num in nums:if num ==0:continueif num in seen:returnFalse seen.add(num) min_card =min(min_card, num) max_card =max(max_card, num)return max_card - min_card <5