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.
It is really amazing!
But, please, please, never put this in a production code, ok? Hahaha!
Thank you, that made the trick.
I love good news, specially when they come with a good advice!
I like how the object english is beautifully formatted.
This is clever but, clearly, not good practice.
I get this error:
My code is taking the chunks one by one in two nested loops and, AFAIK, it doesn't have anything that would make it slow but, still, I get the error almost every time.
Theres something, though, that makes me think that there could be a problem with the grader: A couple of times, I've got "green" but when I refactored the code (mainly deleting commented lines), I pressed submit and I've got the error again. Is is possible that my code is slow because the grading server is overloaded?
There is not glory on spending several hours trying to solve a problem that you can google in 3 minutes. ;)
Some extra tests in Haskell, translated from the ones that @jmjjg created in JavaScript:
This comment is hidden because it contains spoiler information about the solution
I think it is more "beautiful" to test for a positive (points>=100) first, instead of false. But maybe it is just a personal preference.
This is the good one!
I was starting to create an implementation of BigInt that allowed me to multiply and get the modulo of large numbers while storing them as strings. And then I realized that the solution was waaaaaay simpler than that.
That is the solution for the kata. I guess this is a problem more for people who likes mathematics. The programing part is quite trivial (3 lines of code).
That shouldn't be voted "Best Practices". Recursion is most of the time a bad idea in Javascript.
http://jsperf.com/fibonacci-codewars
Yes, it would be an amazing idea to classify the answers also by performance!
It could work similarly to to http://jsperf.com/ . Any user should be able to test all the sollutions in his own browser. The numbers shown should be the average of all runs for the last version of Chrome and Firefox... And maybe IE, but I don't think many people access this site with IE.
In my opinion it could be nice to add a test with a randomly generated cipher code in order to avoid solutions with a hard-coded code.