- 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 ответов
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