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
Joaquín Gutiérrez -
Maulik Paghdal -
Andrew Mclean -
Anil -
Top comments (0)