human
Check if given array can be made 0 with given operations performed any number of times | Function to whether the array can be made zero or not.
Count for even elements.
Count for odd elements.
Traverse the array to count the even and odd.
If arr [ i ] is odd.
If arr [ i ] is even.
Check if count of even is zero or count of odd is zero.
Driver 's Code"
Solution in Python:

=====
What is a code to check if given array can be made 0 with given operations performed any number of times and the other steps required?
assistant
#Here is code to check if given array can be made 0 with given operations performed any number of times and the other steps required.
 def check ( arr , N ) :
	even = 0 ;
	odd = 0 ;
	for i in range ( N ) :
		if ( arr [ i ] % 2 == 1 ) :
			odd += 1 ;
		else :
			even += 1 ;
	if ( even == N or odd == N ) :
		print ( " Yes " ) ;
	else :
		print ( " No " ) ;
if __name__ == ' _ _ main _ _ ' :
	arr = [ 1 , 1 , 3 ] ;
	N = len ( arr ) ;
	check ( arr , N ) ;