2914-minimum-number-of-changes-to-make-binary-string-beautiful

DevGod
Vtuber
/** * @param {string} s * @return {number} */var minChanges = function(s) { return _.chunk(s.split(""),2).reduce( (sum,el)=>+(el[0]!==el[1])+sum,0);};
/** * @param {string} s * @return {number} */var minChanges = function(s) { return _.chunk(s.split(""),2).reduce( (sum,el)=>+(el[0]!==el[1])+sum,0);};