Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
8いいね 740回再生

How to Unset all bits except the rightmost 1 - Bit Manipulation Interview

In this video, we learn how to make all the 1's in a number to be 0 except the rightmost 1 and implement it in C/C++.
This is a very useful algorithm that will enable us to solve complicated problems in a very efficient manner. Also, this is a common firmware/embedded interview question.

Must know concepts of 2's complement and subtraction:    • Negative number representation, Two's Comp...  

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

#bitmanipulation #bitalgorithm

You could follow us on Facebook and Instagram:
Facebook : www.facebook.com/firmwarecode
Instagram : www.instagram.com/firmwarecode

コメント