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.
As was said, limiting the tape length wouldn't really change the difficulty at all, it would just slightly limit the range of solutions available.
Yep
Completely agree with you !!
Fixed by Chrono79
I've fixed the arguments being flipped.
For the original issue, I've spent way more time than I had planned trying to see it it's an issue. I'm going to mark as resolved because I've tried different solutions from different languages and the accepted solutions can handle that test. Not agreeing with other implementation doesn't make this an issue.
According to the CW wiki, "Best Practices" are solutions that you would expect to see in production code. Maintainability and readability are favored over performance and elegance. Of course, in the real world, production code standards will vary. Regardless, this solution reads well, and would be easy to manage due to the granularity.
That's your personal opinion;-)... For me, it's enough...
@smile67 Not a good enough reason for testing against string and double, string culture is a thing!
My feelings exactly.
The test cases are wrong for all even sizes > 2. You should use the above code just before you return the answer.
Presumably because of the comment describing how the pattern was derived
Resolved.
Welp, I've made a Java translation which uses double array and wondered if that was ok for the part 1, cause I'm too lazy to do extra job if it's not entirely necessary.
Because this kata is the little brother of this one: http://www.codewars.com/kata/linear-equations-n-x-m-complete-solution-space-fraction-representation and there a simple output is a string. I made the simpler one later on, because nobody solved the harder version (since two years only 1 valid solution);-)..
Why do you return string instead of just array/list?
Loading more items...