Blog
Production error deep-dives — root cause, reproduction, and the fix that holds.
What is Imperative Programming? With Examples
In this lesson, you will learn imperative programming and the steps to achieve it. You will also be introduced to some real-world use cases for easy understanding.
Solution Review: First Set Bit Position Using Right Shift
In the kth bit set/unset problem, we first write the algorithm, then some pseudocode, and then implement the solution.
Challenge 1: Get the First Set Bit Position Using the Right Shift
This problem is similar to the last lesson we discussed. If you need a clue, return to the previous lesson to further your understanding.
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.
Solution Review: First Set Bit Position Using Left Shift
In the kth bit set/unset problem, we first write the algorithm, then some pseudocode, and then implement the solution.
Challenge 1: Get the First Set Bit Position Using the Left Shift
This problem is similar to the last lesson we discussed. If you need a clue, return to the previous lesson to further your understanding.
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.
Bitwise Left Shifts
Learn bitwise left shifts: how the left-shift operator moves the bits of a value to the left by a given number of positions, with worked examples in binary.