qaz@lemmy.world to Programmer Humor@programming.devEnglish · 27 天前Who cares about time complexitylemmy.worldimagemessage-square58fedilinkarrow-up1398arrow-down11
arrow-up1397arrow-down1imageWho cares about time complexitylemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · 27 天前message-square58fedilink
minus-squaretrxxruraxvr@lemmy.worldlinkfedilinkarrow-up29arrow-down1·edit-227 天前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.
minus-squareMirodir@discuss.tchncs.delinkfedilinkarrow-up12·27 天前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.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up2arrow-down7·27 天前Yes, that does demonstrate my point.
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.
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.
Yes, that does demonstrate my point.