class Solution: def minCostToMoveChips(self, chips: List[int]) -> int: n = len(list(filter(lambda x: (x%2 != 0) , chips))) return min(n,len(chips)-n)