minus-squarequilan@lemmy.worldtoShowerthoughts@lemmy.world•An argument starter: which of these is the "second set of 4 digits in base 10"? (Body)linkfedilinkarrow-up10·edit-221 days agoI’d argue lexicographically it would be 0000 and 0001 for the first two sets of 4 digits. If you’re looking for combinations w/o replacement, it would be 0123 and 0124. linkfedilink
minus-squarequilan@lemmy.worldtoLemmy Shitpost@lemmy.world•My wife found this in the archives of the library where she works.linkfedilinkarrow-up13·24 days agoI’ve definitely caught myself writing cumTotal += value; in my code before. linkfedilink
I’d argue lexicographically it would be 0000 and 0001 for the first two sets of 4 digits. If you’re looking for combinations w/o replacement, it would be 0123 and 0124.