Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: How to store a set of four 5-bit values in one 16-bit value. Parent comment
If you have three bits and you care about the order, that's a 3-bit number -- it can take 8 different values.
If you have those same bits but you don't care about the order, the operation is a "bit count" -- you can only have 4 different values.
There are no comments on this comment yet.
If you have three bits and you care about the order, that's a 3-bit number -- it can take 8 different values.
If you have those same bits but you don't care about the order, the operation is a "bit count" -- you can only have 4 different values.