Destide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 1 day agoInfallible Codelemmy.mlimagemessage-square147fedilinkarrow-up1430
arrow-up1430imageInfallible Codelemmy.mlDestide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 1 day agomessage-square147fedilink
minus-squaresik0fewl@lemmy.calinkfedilinkarrow-up7·11 hours agoThis code would run a lot faster as a hash table look up.
minus-squareValmond@lemmy.worldlinkfedilinkarrow-up3·6 hours agoIn a Juliana tree, or a dictionary tree if you want. For speed.
minus-squarePieMePlenty@lemmy.worldlinkfedilinkarrow-up4·6 hours agoI agree. Just need a table of even numbers. Oh and a table of odd numbers, of course, else you cant return the false… duh.
This code would run a lot faster as a hash table look up.
In a Juliana tree, or a dictionary tree if you want. For speed.
I agree. Just need a table of even numbers. Oh and a table of odd numbers, of course, else you cant return the false… duh.