Mastodon Feed: Post

Mastodon Feed

dysfun@treehouse.systems ("gaytabase") wrote:

here's a fun puzzler for optimisation nerds:

i give you a 64-bit integer, tell me the index of the lowest consecutive 3 zero bits. or N zero bits if you're feeling fancy.

for bonus points handle it over multiple 64-bit integers without missing awkward items straddling two integers.