The Knowledge Point of Leetcode Array Question
The Long.bitCount(value)
method in Java is a built-in method provided by the java.lang.Long class
.
It returns the number of one-bits (bits set to 1) in the two's complement binary representation of a long
value.
Long.bitCount(value)
=> return
: 统计value 二进制里面 '1'的数量