Red to linuxmemes@lemmy.worldEnglish • 1 year agoCode interviews for a PHP developer rolesreddthat.comimagemessage-square128arrow-up1352
arrow-up1352imageCode interviews for a PHP developer rolesreddthat.comRed to linuxmemes@lemmy.worldEnglish • 1 year agomessage-square128
minus-square@jkrtn@lemmy.mllinkfedilink8•1 year agoShouldn’t people familiar with integer arithmetic should be able to struggle to something like x == 2 * (x/2) to test if it is odd or even? Or just bitwise x & 1?
Shouldn’t people familiar with integer arithmetic should be able to struggle to something like
x == 2 * (x/2)
to test if it is odd or even? Or just bitwisex & 1
?If round(x/2) != x/2