Easy
Construct Uniform Parity Array I — Python
Full explanation · Time O(1) · Space O(1)
# Time: O(1)
# Space: O(1)
# constructive algorithms
class Solution(object):
def uniformArray(self, nums1):
"""
:type nums1: List[int]
:rtype: bool
"""
return True