qaz@lemmy.world to Programmer Humor@programming.devEnglish · 21 days agoWho cares about time complexitylemmy.worldimagemessage-square66linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageWho cares about time complexitylemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · 21 days agomessage-square66linkfedilink
minus-squaretrxxruraxvr@lemmy.worldlinkfedilinkarrow-up0·edit-221 days agoIIV would never be used. In Roman numerals at most one smaller unit can come in front of a larger one. The code doesn’t do any validation though.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up0·21 days agoYes, that does demonstrate my point.
minus-squareMirodir@discuss.tchncs.delinkfedilinkarrow-up0·21 days agoWhile it doesn’t say anything about IIV specifically, they sure got creative enough to sometimes subtract more than one of the smaller units from a larger one.
IIV becomes IIIII, hm?
IIV would never be used. In Roman numerals at most one smaller unit can come in front of a larger one. The code doesn’t do any validation though.
Yes, that does demonstrate my point.
While it doesn’t say anything about IIV specifically, they sure got creative enough to sometimes subtract more than one of the smaller units from a larger one.