zlacker

[parent] [thread] 1 comments
1. hechan+(OP)[view] [source] 2019-11-11 04:07:16
I don't know about this. This feels like cheating rather than thinking outside of the box. Like when you ask a student to implement a vector in C++, instead of writing the code the student makes a wrapper around std::vector. Internally, `str` probably also use some equivalent of the naive solution implemented somewhere to convert a integer to its decimal string.
replies(1): >>kadoba+9f
2. kadoba+9f[view] [source] 2019-11-11 08:14:19
>>hechan+(OP)
Using math.log10 seems at least as cheating to me. (though to be clear, I'd accept both if it were me)
[go to top]