Comment on Don't tell me what to do
nicknonya@lemmy.blahaj.zone 3 weeks ago
smallest isOdd function
There are only 4.29 billion possible values of an int32, so even if you used 2 lines for each case, it’d still be under 10 billion lines of code
bool isOdd(int num) if (num == 1) { return true } if (num ==2) { return false } …
okay but what about an int512?
int512
Snazz@lemmy.world 3 weeks ago
There are only 4.29 billion possible values of an int32, so even if you used 2 lines for each case, it’d still be under 10 billion lines of code
bool isOdd(int num) if (num == 1) { return true } if (num ==2) { return false } …
sentient_loom@sh.itjust.works 3 weeks ago
okay but what about an
int512
?