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
Richard Shaju -
Abayomi Olatunji -
heritech9 -
Hassan Azhar -
Top comments (0)