dhruv3006@lemmy.world to Programmer Humor@programming.dev · 1 month agoAmazon AIlemmy.worldimagemessage-square75fedilinkarrow-up1786arrow-down15
arrow-up1781arrow-down1imageAmazon AIlemmy.worlddhruv3006@lemmy.world to Programmer Humor@programming.dev · 1 month agomessage-square75fedilink
minus-squarefckreddit@lemmy.mllinkfedilinkarrow-up25·1 month agoThat’s nothing, I wrote the code to return if the input is even or not in 1M lines of code.
minus-squareSiethron@lemmy.worldlinkfedilinkarrow-up17·1 month agoIf 1 no else if 2 yes else if 3 no…
minus-squareprime_number_314159@lemmy.worldlinkfedilinkarrow-up1·1 month agoAre you working with 20 bit integers? You’ll never get it down to a million lines like that… There’s a million lines of If >4096, subtract 4096 Then a quick lookup case statement for whether the remaining number is even.
That’s nothing, I wrote the code to return if the input is even or not in 1M lines of code.
If 1 no else if 2 yes else if 3 no…
Exactly…
Are you working with 20 bit integers? You’ll never get it down to a million lines like that…
There’s a million lines of If >4096, subtract 4096
Then a quick lookup case statement for whether the remaining number is even.