How to check if number is Power of 2 : Bit Manipulation Interview Algorithm

Опубликовано: 23 Ноябрь 2021
на канале: Firmware
469
5

In this video, we look into the properties of numbers which are the power of Two and we implement the concept in C/C++. We will learn the method to find out whether a number is a power of two.
This is a common Embedded / Firmware Interview question.

Episode on Unsetting the rightmost SET bit:    • How to Unset the Rightmost 1 in a num...  
Episode on 2's complement and subtraction:    • Negative number representation, Two's...  

See Bit Manipulation Interview Preparation Series here:
   • Bit Manipulation Interview Series  

You could follow us on Facebook and Instagram:
Facebook :   / firmwarecode  
Instagram :   / firmwarecode  

#bitmanipulation #bitalgorithm