>>103316795
def min_operations_to_alternate_parity(items):
def count_operations(arr):
operations = 0
for i in range(len(arr) - 1):
while arr[i] % 2 == arr[i + 1] % 2:
arr[i + 1] //= 2
operations += 1
return operations
return count_operations(items)
# Example array from the problem
items = [4, 10, 10, 6, 2]
# Calculate the minimum number of operations
min_operations = min_operations_to_alternate_parity(items)
min_operations
2