qaz@lemmy.world to Programmer Humor@programming.devEnglish · 11 days agoWho cares about time complexitylemmy.worldimagemessage-square48linkfedilinkarrow-up1323
arrow-up1323imageWho cares about time complexitylemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · 11 days agomessage-square48linkfedilink
minus-squarelugal@lemmy.dbzer0.comlinkfedilinkarrow-up2·9 days 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!