Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 588 Bytes

File metadata and controls

31 lines (21 loc) · 588 Bytes

3151. Question 3151

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 : N/A

Acceptance Rate : Unknown


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:]))