题解 | #求最大连续bit数# 只需一行
求最大连续bit数
https://www.nowcoder.com/practice/4b1658fd8ffb4217bc3b7e85a38cfaf2
function solution(num) {
return Math.max(...num.toString(2).split('0').map(x => x.length))
}
求最大连续bit数
https://www.nowcoder.com/practice/4b1658fd8ffb4217bc3b7e85a38cfaf2
function solution(num) {
return Math.max(...num.toString(2).split('0').map(x => x.length))
}
相关推荐
明天不下雨了:那我建议可以用 chatgpt atlas 或者 dia 去刷,也可以用 chrome 加个 ai 插件去刷