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.
Java Translation
https://www.codewars.com/kumite/6369525709fa8e9eeb58aca0?sel=6369525709fa8e9eeb58aca0
The Description text should have some escapes in front of
*
s ( and possibly_
s ).*
is used to start / end italics ( as is_
). If you want just a *, you should escape it, with \.Duplicate: https://www.codewars.com/kata/two-sum
Other Issues with your test cases:
AFAIK that isn't tested at all in your Test Cases. Either remove it from the Description or add edge assertions to address it.
Again, the tiny number of assertions in your Test Cases means that any brute-force solution can easily pass all tests without timing out. If you really want to prevent inefficient solutions from passing, enforce it. Add such a large number of random assertions in the Test Cases that even the most efficient solution just completes under
12000 ms
(Codewars code execution time limit). Otherwise, I would suggest simply removing it from the Description.Codewars Forums - Kata Best Practices - Have Full Code Coverage
I haven't actually managed to pass the tests yet (see my other Issue posted below) but every time I run "Attempt", I get the exact same failed output which shows that your tests are not randomly generated at runtime.
Having only 5 fixed assertions in your entire test suite is unacceptable and far from sufficient from preventing logically flawed and/or hardcoded solutions from passing. Please either (1) increase the number of unique, distinct fixed assertions to at least 20 including edge cases or (2) even better, write 100+ random test cases as per standard Codewars practice which is generally preferred over just 20+ fixed tests.