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