Comment on I wish
nyoooom@lemmy.world 1 year agobool isEven(int num) { return num == 0 || !isEven(num - (num > 0 ? 1 : -1)); }
Comment on I wish
nyoooom@lemmy.world 1 year agobool isEven(int num) { return num == 0 || !isEven(num - (num > 0 ? 1 : -1)); }
Rentlar@lemmy.ca 1 year ago
Damn that’s some solid optimization.