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.
ok! WTF is this?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
But shouldn't I expect the failures to repeat themselves? It fails sometimes on one attempt, but later its correct on the same attempt. First it shows 27 errors, then 16 errors, then 23errors, etc...
I'm testing in javascript
So... I test my code and it runs, but when I attempd it returns with errors. Now the weirdest part is, sometimes it returns with 17 errors, sometimes with 32, sometimes with 20. I tried to fix the number of digits after the comma, but the errors persist.
Thanks, B1ts. I figured it out thanks to you.
rge123, I had the map, thats how i came up with the loop. Go figure...
Is the old solution considered brute force? That was the most "programmed" solution I came up with, but its not the simplest.
This is my solution. The commented part works, but times out. There is a discussion about it in the comments.
I'm at a point in my learning that I'm happy it solves what it must solve. I, honestly, have no idea how to speed up my code, as of now.
This comment is hidden because it contains spoiler information about the solution
Complete noob question: How could this code pass the tests?
This comment is hidden because it contains spoiler information about the solution