Red to linuxmemes@lemmy.worldEnglish • 7 months agoCode interviews for a PHP developer rolesreddthat.comimagemessage-square128fedilinkarrow-up1350arrow-down122
arrow-up1328arrow-down1imageCode interviews for a PHP developer rolesreddthat.comRed to linuxmemes@lemmy.worldEnglish • 7 months agomessage-square128fedilink
minus-square@jkrtn@lemmy.mllinkfedilink8•7 months 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