nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 10 个月前I wishi.imgur.comimagemessage-square189fedilinkarrow-up1923arrow-down117
arrow-up1906arrow-down1imageI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 10 个月前message-square189fedilink
minus-squarenyoooom@lemmy.worldlinkfedilinkarrow-up35·10 个月前bool isEven(int num) { return num == 0 || !isEven(num - (num > 0 ? 1 : -1)); }
bool isEven(int num) { return num == 0 || !isEven(num - (num > 0 ? 1 : -1)); }
Damn that’s some solid optimization.