Open McSinyx opened 5 years ago
saw that coming from miles away but it's the most efficient way to do in the time window
I don't even know how to work around this without using external library (/
and %
are fukt when used with big ints as well). IMHO using JS to provide basic math tools is a poor choice to begin with. One could have chosen something like a mechanics simulator (with HTML canvas) and still demonstrate
basic knowledge in Math, JavaScript, Html, and CSS
and not end up building stuff that is entirely useless.
I.e.
parseInt
doesn't handle big numbers quite well. To reproduce, just spam the input with shitload of digits.