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.
This comment is hidden because it contains spoiler information about the solution
You can promote your translation on discord or leave it as a suggestion so that more ppl can come across it.
Add this test to the sample tests, your code fails with it:
This comment is hidden because it contains spoiler information about the solution
Totally agreed. Why can't we decrease kyu?
Makes sense. Thanks for your input!
You're right. This was one of the earliest translations, and I didn't know how to test for predicates passing/failing. This was the compromise I chose at the time :P The latest translations don't have this problem, but there's still a few out there that use this method.
It's possible to rewrite it and make it right, but then all the existing solutions would fail, and I'm not sure if it's worth it.
This comment is hidden because it contains spoiler information about the solution
I agree. It's probably a 5.
Can someone approve my translation? https://www.codewars.com/kumite/6109ad33bd3e4500070f3641?sel=6109ad33bd3e4500070f3641
This is hardly a 6 kyu. More like 7 or 8.
"The fifth part can have length equal to the other ones or shorter."
And immediately after:
"If [...], choose the option where the fifth part has the longest length, provided that the previous conditions are fulfilled."
I would be really, interested in knowing how the fifth part can have equal or less length to a given X, but simultaneously has the "longest length". What?!
I agree. It's a shame. I really liked this problem.
This is wrong.
Solution setup has "firstNonRepeating" but test cases will try for "FirstNonRepeating", so Go can't find a function named like that. Notice the first letter is uppercase in the first character for tests but not the solution setup. Please fix this.
it works because you return early if you find the result, otherwise the methods last line is return nil
Loading more items...