2 ms·JavaScript's algorithm for this is dumb. There are better ways to do it, as seen in Python, Ruby, Nim, …by xigoi 4y agoJavaScript's algorithm for this is dumb. There are better ways to do it, as seen in Python, Ruby, Nim, …