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
404_CHRONICLES -
Sébastien Conejo -
Hamza Khan -
Somnath Pan -
Top comments (0)