smallest isOdd function
Don't tell me what to do
Submitted 1 month ago by sentient_loom@sh.itjust.works to [deleted]
https://sh.itjust.works/pictrs/image/e87dfe2b-643f-4b42-92af-bcef91501ce7.png
Comments
nicknonya@lemmy.blahaj.zone 1 month ago
Snazz@lemmy.world 1 month 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 1 month ago
okay but what about an
int512
?
chemical_cutthroat@lemmy.world 1 month ago
Says the person writing 100 words when 3 will do.
pooberbee@lemmy.ml 1 month ago
One word: debiggenify
JackGreenEarth@lemm.ee 1 month ago
Is the red dot for engagement so the children will ask, or another reason?
deur@feddit.nl 1 month ago
Some potential reasons:
There are other good reasons, but if it was engagement bait, oh well…
sentient_loom@sh.itjust.works 1 month ago
#1 is correct in this case. I really had to squint to find the dot after @JackGreenEarth@lemm.ee mentioned it. My slightly-amused apologies to all whom it bothered.
EleventhHour@lemmy.world 1 month ago
Also on an iPhone.
lemmyman@lemmy.world 1 month ago
It’s to get past the softwar* censors
P4ulin_Kbana@lemmy.eco.br 1 month ago
Looks like it worked!
Blue_Morpho@lemmy.world 1 month ago
It’s a cue mark to let your browser know it’s time to load a new gif.
obscur_e@lemm.ee 1 month ago
HOW THEFUCJK DİD YOUBSEE İT
sentient_loom@sh.itjust.works 1 month ago
I didn’t even notice it until you mentioned it. @deur@lemmy.dbzer0.com guessed the correct cause.
ThisIsAManWhoKnowsHowToGling@lemmy.dbzer0.com 1 month ago
It’s covering up a penis