human
Given a set , find XOR of the XOR 's of all subsets. | Returns XOR of all XOR 's of given subset.
XOR is 1 only when n is 1 , else 0.
Driver code"
Solution in Python:
assistant
#Here is code to given a set , find XOR of the XOR 's of all subsets.
 def findXOR ( Set , n ) :
	if ( n == 1 ) :
		return Set [ 0 ]
	else :
		return 0
Set = [ 1 , 2 , 3 ]
n = len ( Set )
print ( " XOR ▁ of ▁ XOR ' s ▁ of ▁ all ▁ subsets ▁ is ▁ " , findXOR ( Set , n ) ) ;