Time complexity of your solution to Integer to Roman
DaiYue opened this issue · 2 comments
DaiYue commented
Great solution! Although I think the time complexity is more like O(lgn), as n being num?
Not that important anyways, since num is guaranteed to be <= 3999.
soapyigu commented
Thank you for your comment. My point there is that n represents the length of the roman number array, I should be more clear about that.
DaiYue commented
I see. Thank you for the explanation.