6
This commit is contained in:
7
solutions/lc3151.py
Normal file
7
solutions/lc3151.py
Normal file
@@ -0,0 +1,7 @@
|
||||
class Solution:
|
||||
def isArraySpecial(self, nums: List[int]) -> bool:
|
||||
for i in range(1, len(nums)):
|
||||
if nums[i] % 2 == nums[i - 1] % 2:
|
||||
return False
|
||||
|
||||
return True
|
||||
Reference in New Issue
Block a user