我爱codewars

来源:互联网 发布:不用网络的麻将游戏 编辑:程序博客网 时间:2024/05/02 01:19

依旧只是个可爱的搬运工

题目:

Binary multiple of 3

解决方法:

判断二进制数能否被3整除的方法

题目:

Given two numbers: 'left' and 'right' (1 <= 'left' <= 'right' <= 1 000 000 000) return sum of all '1' occurencies in binary representations of numbers between 'left' and 'right' (including both)

解决方法:



原创粉丝点击