LeetCode.191.位1的个数
摘要:1.题目 编写一个函数,输入是一个无符号整数,返回其二进制表达式中数字位数为 ‘1’ 的个数(也被称为汉明重量)。 示例 1: 输入:00000000000000000000000000001011输出:3解释:输入的二进制串 00000000000000000000000000001011 中,共
阅读全文
posted @ 2019-10-14 21:50
posted @ 2019-10-14 21:50
posted @ 2019-08-13 16:00
posted @ 2019-07-25 09:34
posted @ 2019-06-28 16:21
posted @ 2019-06-28 16:06
posted @ 2019-06-24 08:02