The number of non-zero quaternary (base 4) digits in a long?

前端 未结 0 1863
我在风中等你
我在风中等你 2020-12-12 13:02

Let us start simple. Say you want to find how many 1\'s in a long in its binary representation. For example, how many 1\'s in 228₁₀? The binary represenation is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题