Nice challenge - not too difficult but needs to be efficient!
My solution 43ms in Ruby!
Couldn't help but smile at 'disemvowler' :)
I disagree, it's only false the first time, but it needs to be checked for each letter. Not needed, since we can add the "-" for each loop, and just remove the last char from the StringBuilder. Check my solution.
I got overflow when using this solution with large number.
is it better if we put the "conversion" var inside function or outside as class var?
do you mean this part (0*) of the regex?, he/she is grouping here the part w/ zeros, I think it's clever, in a good sense, don't you think so?, or am I missing something?
Too easy for 3kyu. But still fun.
I agree. And I would add that I see no point in using a map instead of a single string as argument.
only two numbers multiply.
yes, the intial solution sorry. It had wrong tabbing in my case.
What do you mean? Preloaded section isn't visible to the user. Are youa ctually talking aboiut the initial solution?
Python preloaded has wrong tabbing
It is just "Distributive property". So p0 * (1 + percent / 100) is mathematically equivalent to p0 + p0*(percent / 100).
This comment is hidden because it contains spoiler information about the solution