- 1
How to perform this algorithm?
Given an array A1,A2âŠAN, find the minimum number of operations (possibly zero) required to convert all integers in A to 0. In one operation, you choose a non-negative integer p (pâ„0), select at most K indices in the array A, and for each selected index i, replace Ai with Aiâ2p. Here, â denotes bitwise XOR.
2 Answers
0
Matiyas
I dont ask anything without trying by my self,even nobody does.
0
actually in the Q there is a mistake it should be 2^p not 2p