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.
You know what else is free too? --> Authoring katas on CW in any spoken language of your choice (The rules prohibit this but not the system ^^)
Done in above fork
I don't think this is intended: https://www.codewars.com/kata/reviews/5e8de403344c4600018054b1/groups/678d894556ad14fe87d3a5ea
Filter the code for useless character before asserting the code length restriction. That way the user may keep comments and whitespace in their solution.
I genuinely believe this is the hardest kata I have ever solved. Nothing has ever taken me 800 lines of code.
I understand your point, my comments aren't personal, I just believe your logic does not apply in this case.
First of all, I feel like middle ground katas aren't all that great. If the harder version already exists, the user might as well solve that one. However, even in this case, the solution is just way too similar to already existing katas (famous ones at that).
Maybe if the kata was a subset of a less solved kata or harder one, but Million Fib is one of the most popular
3kyu
on the site (4th most solve), so you have12000
people that will solve this for free.Also, if you can author a kata such that I can copy and paste it's solution on any other kata and still pass, then yeah, I'll give that point to you, just waiting until that happens :)
I respectfully disagree that this makes the Kata worthless and unsalvageable. What's wrong with authoring a Kata which strikes some "middle ground" between your typical beginner Fibonacci Kata and some ultimate generalized version of a Fibonacci Kata understood mostly by math majors and postgraduates?
By this logic I can author a Kata on the "theory of theories" in mathematics and that would make pretty much every other existing mathematics Kata on this site a duplicate ;-)
You can avoid a
copy
with a simple syntax making it quite similar to using a unique pointer in C (cf this kumite not to spoil others in comments)This is basically an easier version of this kata.
It's also just one extra line than most Fibonacci katas.
I think it's a unique enough problem without those hints.
Gah, fixed! ;-)
Good point, I've added a relevant example in the Kata description and sample tests and mentioned that the digit should be returned "as an integer".
( JS )
indents in test suite ( random tests part ) are not correct. this is not optimally maintainable. please follow CW Coding Guidelines. ( you may have mixed spaces and tabs. )
I found out the digits are encoded as base-10 numbers. This is not very intuitive, given the explicit "digit" in the title. It's a valid ( and perfectly reasonable ) choice! but specify it explicitly.
Also, the ( JS ) Example tests did not even make it clear. Consider adding a test that showcases this spec.
This comment is hidden because it contains spoiler information about the solution
Loading more items...