题解 | #二进制转换#

二进制转换

https://www.nowcoder.com/practice/7b74386695cc48349af37196f45e62a8

        function convertToBinary(num) {
            const str = num.toString(2)
            return str.length < 8 ? '0'.repeat(8-str.length)+str : str
        }

全部评论

相关推荐

06-20 14:27
中山大学 C++
rt,day3就开始接需求
星际探神:你就想 你是水货他们都没面出来 他们也水 管他呢
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务