Skip to content

Bit Manipulation

46 Posts

Bit Manipulation Course Overview

An overview of the bit manipulation course: what it covers, how the lessons are organized and what you will be able to solve with bitwise operators.

Bit Manipulation Final Thoughts

Final thoughts on the bit manipulation course: a look back at the operators and problems covered in the lessons, and where to take these skills from here.

Check If Kth Bit Is Set/Unset Using Right Shift

In the kth bit set/unset problem, we need to write a program that checks whether the kth bit of a number is 1 or 0.

Check If Kth Bit Is Set/Unset Using Left Shift

In the kth bit set/unset problem, we need to write a program that checks whether the kth bit of a number is either 1 or 0.

Find the Bit Length of a Number

Learn how to find the bit length of a number using bit manipulation and the shift operators, with a clear walkthrough of the approach for this challenge.

Arithmetic and Logical Right Shifts

Arithmetic and logical right shifts explained: how a logical shift fills the most significant bit with 0, how an arithmetic shift differs, with examples.