qaz@lemmy.world to Programmer Humor@programming.devEnglish · 3 days agoWho cares about time complexitylemmy.worldimagemessage-square66fedilinkarrow-up1434arrow-down12
arrow-up1432arrow-down1imageWho cares about time complexitylemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · 3 days agomessage-square66fedilink
minus-squarelugal@lemmy.dbzer0.comlinkfedilinkarrow-up2·1 day agoThe original doesn’t have an extra check for 9 and it works for Roman->Indioarabic because it’s: IX ->IVV ->IIIIV ->IIIIIIIII But the other way around, you need an extra step for 9. That’s where our misunderstanding comes from.
The original doesn’t have an extra check for 9 and it works for Roman->Indioarabic because it’s:
IX ->IVV ->IIIIV ->IIIIIIIII
But the other way around, you need an extra step for 9. That’s where our misunderstanding comes from.
Ohhh haha that makes sense. Fun!