Red to linuxmemesEnglish • 8 months agoCode interviews for a PHP developer rolesreddthat.comimagemessage-square128fedilinkarrow-up1350arrow-down122
arrow-up1328arrow-down1imageCode interviews for a PHP developer rolesreddthat.comRed to linuxmemesEnglish • 8 months agomessage-square128fedilink
minus-square@[email protected]linkfedilink8•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