DEV Community


Discussion on: Daily Challenge #276 - Unwanted Dollar Signs

saviourcode profile image
Sourabh Choure

Well, technically atof is O(n), but while specifing the big O notation, I just abstracted all the library calls to O(1). And I think that doing this is the most stupid thing but it just helps me to analyse what could be the worst case scenario of my implementation. Hope it doesn't mislead any wrong information.