This commit is contained in:
Vombit
2026-05-27 15:52:14 +05:00
parent d940e1dd2f
commit 801bafd8ba
4 changed files with 35 additions and 0 deletions

7
solutions/lc3151.py Normal file
View 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