Menu

Close
  • Home
Subscribe
CodeCorner Menu

logic

A 1-post collection

Page 1 of 1

Power of Two

Today I'll just reflect a bit about the next little piece of code public static boolean isPowerOfTwo(int value){ return ((value & -value) == value) } The previous »

Balhau on boolean, logic, mathematics, development, algorithms 25 March 2016
Page 1 of 1
CodeCorner © 2025
Proudly published with Ghost