Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 665 Bytes

_3151. Special Array I.md

File metadata and controls

31 lines (21 loc) · 665 Bytes

All prompts are owned by LeetCode. To view the prompt, click the title link above.

Back to top


First completed : February 01, 2025

Last updated : February 01, 2025


Related Topics : Array

Acceptance Rate : 82.1 %


Solutions

Python

class Solution:
    def isArraySpecial(self, nums: List[int]) -> bool:
        return all(x % 2 != y % 2 for x, y in zip(nums[:-1], nums[1:]))