Did you just go ballistic over a year old comment on not yours solution? :thinking:
Why you on every post just hating like your own solution is way more complicated than the toString which is simpler and that makes your solution an overengineered piece of shit. How does it feel to take some of your own medicine asshole, huh?
Not even any constructive criticism you think you're such a smartass yet can't even speak without hating. Stupid loser
Usually it would not be the best practice because of variable leakage, but this kata is made for this xD.
use num > -num as the condition to correct the negative 0
You could do the second part before the loop instead of doing it over and over, I'd say that's better.
My solution the best! =D
Your post contained the whole solution, that's why it was a spoiler. Posts here are visible in the homepage if you don't flag them.
Ok, sorry for spoiler. I was think this issimple question, not spoiler.
Thank you for the answer!
Please use spoiler flag next time, and yes it's ES6 syntax.
This comment is hidden because it contains spoiler information about the solution
Python new test framework should be used (Refer this & this for more detail)
Ruby 3.0 should be enabled (Refer this & this for more detail)
Why? The kata wasn't asking for the two's complement of the negative number when the result is negative.
If the arguments are -9 and 1, then '-1000' is the correct result.