Number of ways to divide array into parts of equal xor
Answers
Answered by
6
▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬
Uptil present, there are two ways to divide arrays into parts of equal XOR i.e. through NOR and AND gate.
▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬
Answered by
0
Input : A[] = { 1, 2, 3 }
Output : 3
{(1), (2, 3)}, {(2), (1, 3)}, {(3), (1, 2)}
are three ways with equal XOR value of two
groups.
Input : A[] = { 5, 2, 3, 2 }
Output : 0
Similar questions