Red@reddthat.com to linuxmemes@lemmy.worldEnglish · 7 months agoCode interviews for a PHP developer rolesreddthat.comimagemessage-square128fedilinkarrow-up1352
arrow-up1352imageCode interviews for a PHP developer rolesreddthat.comRed@reddthat.com to linuxmemes@lemmy.worldEnglish · 7 months agomessage-square128fedilink
minus-squarejkrtn@lemmy.mllinkfedilinkarrow-up8·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