Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Bit Manipulation Problems

Practice problems for the Bit Manipulation section. Each problem includes multiple approaches, from brute force to optimal, with a focus on understanding the underlying bit tricks.