4 ms·Bonus if you use n & 1 instead of n % 2 != 0by AbsoluteCabbage 3y agoBonus if you use n & 1 instead of n % 2 != 0