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 ready ! Review it!
Ok, thanks, I didn´t know that exist a discord Server
You seem to produce many kata recently, and each of them starting with a significant amount of problems which get pointed out right away, just after publication. If possible, it would be strongly recommended to visit Codewars Discord server and its channels directly related to authoring:
#kata-ideas
and#help-author
.A more conceptual problem: reference solution assumes that
String
is an array of bytes, which is not true. Every non-(Extended) ASCII encoding has code points outside 255. Java Strings are internally stored as UTF-16 so it definitely can store non-ASCII characters.Any appearance of such character code will cause the random tests/author solution to give an incorrect result.
If you really want to LZW compress a string, you need to encode it with a specific encoding first, which can lead to different byte values depending on the encoding.
Every test except
TOBEORNOTTOBEORTOBEORNOT
do not compress at all, so just returning the character codes will pass all the tests: see thisThis is a duplicate of https://www.codewars.com/kata/55833364a2e09a6887000166 and https://www.codewars.com/kata/584d323bca93addf92000080.
In another note, did you write your kata description with ChatGPT again? There are various telltale signs of this, such as sentences being thrown in the description that are either empty threats, or not enforced at all. Please don't do this, it makes the kata look bad.
As far as I know katas can't be deleted if they have completions. Keeping it in a draft state is the only option. Nobody else can submit a solution if it's in draft.
What do I have to do now to remove the kata?
Random test is incorrectly implemented: it breaks if the same characters appears consecutively 10 or more times.
This has been done before unfortunately: https://www.codewars.com/kata/578bf2d8daa01a4ee8000046
I have changed the description, I think it now looks better and is better understood, I have also implemented the random tests.
I am unpublishing the kata because it has no random tests, and as such is not ready for publication. Additionally:
5 <= score <= 10
, what makes 5 a valid score (even tho it's not more than 5), and 11 an invalid score (even though it's more than 5).See authoring guidelines and example kata on requirements for tests and ideas how to implement them.