Methods of solution error


#1

why does (n & n-1) ==0 not work here but log works perfectly