soapyigu/LeetCode-Swift

Time complexity of your solution to Integer to Roman

DaiYue opened this issue · 2 comments

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.

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.

I see. Thank you for the explanation.