The O(n) Club2 Min Read dgtalbugonJuly 20, 2025 The O(n) Club: Bitwise AND of Numbers Range — or, Why Naive Loops Cry The O(n) Club: Bitwise AND of Numbers Range — or, Why Naive Loops Cry ⚡ TL;DR Bitwise AND from left to right: all differing bits will be… Discover More
The O(n) Club2 Min Read dgtalbugonJuly 2, 2025 The O(n) Club: How Many 1’s? Hamming Weight and Your Bitwise Showdown The O(n) Club: How Many 1’s? Hamming Weight and Your Bitwise Showdown ⚡ TL;DR You want to count the number of 1 bits in an integer. You could… Discover More
The O(n) Club2 Min Read dgtalbugonMay 28, 2025 The O(n) Club: Hamming Distance: When Your Bits Can’t Agree (And Why XOR is King) The O(n) Club: Hamming Distance — When Your Bits Can’t Agree (And Why XOR is King) ⚡ TL;DR How many bits do x and y disagree on? XOR them,… Discover More