Red@reddthat.com to linuxmemes@lemmy.worldEnglish · 7 months agoCode interviews for a PHP developer rolesreddthat.comimagemessage-square123fedilinkarrow-up1336arrow-down120
arrow-up1316arrow-down1imageCode interviews for a PHP developer rolesreddthat.comRed@reddthat.com to linuxmemes@lemmy.worldEnglish · 7 months agomessage-square123fedilink
minus-squarejkrtnlinkfedilinkarrow-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