Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 2
Even / odd
bypass chech the last bit of number if it is 1 i.e. it's odd no.
2 Antworten
0
yes it would seem unless you have some caveat that my relatively low level has missed.
0
no%2 is traditional
be different
think different
(no%2) is mathematical but chacking the last bit reduce the CPU process I think 🤔