4 ms·bool powerOf2(int a){ return !(a & (a-1)); }by edge17 16y agobool powerOf2(int a){ return !(a & (a-1)); }