Skip to content

Commit 2765892

Browse files
committed
daily
1 parent a172a17 commit 2765892

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

my-submissions/e3151.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Solution:
2+
def isArraySpecial(self, nums: List[int]) -> bool:
3+
return all(x % 2 != y % 2 for x, y in zip(nums[:-1], nums[1:]))

0 commit comments

Comments
 (0)