Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountBits ¶
CountBits returns an array ans of length n + 1 such that for each i (0 <= i <= n), res[i] is the number of 1's in the binary representation of i.
func HammingWeight ¶
HammingWeight returns the hamming weight of a uint32 number.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.