Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Nice! That was my solution too 😁.
An articulated and helpful comment, even if it were criticism, is always welcome, thanks! :)
parseInt isn't required here, (Integer. str) (with a space after the ., for some reason the space is getting removed in my comment) gets the job done. parseInt would avoid errors if there are any letters in the middle of the string, but knowing that the inputs will always be numerical makes this unneccessary. Not a criticism, just a comment
I think my solution is pretty fast but I got the "unknown error" message
user=> (time (zeros 1000000))
"Elapsed time: 56.465 msecs"
249998