var minOperations = function (nums, k) {
for (const num of nums) {
k ^= num
}
return k.toString(2).replaceAll(/0/g, "").length
}
A very crammable answer that requires patience and thought
var minOperations = function (nums, k) {
for (const num of nums) {
k ^= num
}
return k.toString(2).replaceAll(/0/g, "").length
}
A very crammable answer that requires patience and thought
For further actions, you may consider blocking this person and/or reporting abuse
AnhChienVu -
Mohammad Jawad (Kasir) Barati -
Natália Catunda -
Sushant Gaurav -
Top comments (0)