awesome-algorithm-question-solution icon indicating copy to clipboard operation
awesome-algorithm-question-solution copied to clipboard

4.0 Array Test demo isOdd不对

Open Mamong opened this issue 6 years ago • 0 comments

判断奇偶性不对吧,应该是&1

bool isOdd(int val){ if (val & 2 == 1){ return true; } else{ return false; } }

Mamong avatar Jul 22 '19 09:07 Mamong