You are viewing a single comment's thread. Return to all comments →
JS:
function main() { const n = parseInt(readLine().trim(), 10); console.log(n.toString(2).split('0').reduce((max, str) => Math.max(max, str.length), 0)); }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 10: Binary Numbers
You are viewing a single comment's thread. Return to all comments →
JS: