Swap bits at position i and j

May 21, 2025 · 4 min · TagsList of tags for the post  bits ·  bit-manipulation ·  Last updated: Sep 30, 2025

Swap Nibbles in a Byte

May 21, 2025 · 3 min · TagsList of tags for the post  bits ·  bit-manipulation ·  Last updated: Sep 30, 2025

Toggle a specified bit in a bit string without effecting other bits

May 21, 2025 · 3 min · TagsList of tags for the post  bits ·  bit-manipulation ·  Last updated: Sep 29, 2025

Toggle the n-th bit

May 21, 2025 · 3 min · TagsList of tags for the post  bits ·  bit-manipulation ·  Last updated: Sep 18, 2025

Triples with Bitwise AND Equal To Zero

Turn off the rightmost 1-bit

May 21, 2025 · 3 min · TagsList of tags for the post  bits ·  bit-manipulation ·  Last updated: Sep 19, 2025

Turn off the rightmost contiguous string of 1’s

May 21, 2025 · 4 min · TagsList of tags for the post  bits ·  bit-manipulation ·  Last updated: Sep 18, 2025

Turn on the rightmost 0-bit

May 21, 2025 · 3 min · TagsList of tags for the post  bits ·  bit-manipulation ·  Last updated: Sep 19, 2025

Turning a bit off without affecting other bits

May 21, 2025 · 3 min · TagsList of tags for the post  bits ·  bit-manipulation ·  Last updated: Sep 18, 2025

Twitter Codility Problem - Max Binary Gap

This site uses cookies to improve your experience on our website. By using and continuing to navigate this website, you accept this. Privacy Policy