so if you apply bitwise & operator on n and n-1 and result is 0. It means number is power of two. Java program to check if number is power of two: ...
確定! 回上一頁