How to prove that "i & (i - 1) == 0" means "i is the power of 2"
How to prove that "i & (i - 1) == 0" means "i is the power of 2"
I hope you found a solution that worked for you :)
The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA.
Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!
(stackoverflow.com/users/10173282/ripfreeworld)ripfreeworld
(stackoverflow.com/users/2319407/dmitry-bychenko)Dmitry Bychenko
(stackoverflow.com/users/4386427/4386427)4386427
A special thanks goes out to the (stackoverflow.com/questions/79170452/how-to-prove-that-i-i-1-0-means-i-is-the-power-of-2)Stackexchange community
I wish you all a wonderful day! Stay safe :)
If anything is off, please write me at peter D.O.T schneider A.T ois42.de
algorithm math