4 ms·my favorite is determine if an int is a power of 2: if(!(a & (a-1))){ // a is a power of 2 }by spaghetti 17y agomy favorite is determine if an int is a power of 2: if(!(a & (a-1))){ // a is a power of 2 }swolchok 17y agoor a is negative.