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-squarehopelink9•8 months agoIs it? I would expect someone to come up with either toggling a variable back and forth for even/odd, or counting by 2s, heck, treat it as a floating point, divide by two, and search the string representation for a period or something!
minus-square@[email protected]linkfedilink1•8 months agoI feel like the floating point suggestion would backfire quickly due to imprecisions.
Is it? I would expect someone to come up with either toggling a variable back and forth for even/odd, or counting by 2s, heck, treat it as a floating point, divide by two, and search the string representation for a period or something!
I feel like the floating point suggestion would backfire quickly due to imprecisions.