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
:facepalm: okay, done, sorry again
Sorry, you still have to manually republish the kata to put it back in beta lol.
done, really sorry for the waste of time, is my first time creating a kata.
thanks!
issue resolved, see my last comment
issue resolved, see my last comment
You need to mark the issues as resolved in order to publish the kata again. Right now, it's still in draft.
hey guys, thanks everyone for the feedback <3
@BobtheLantern you were absolutely right regarding
"mad"and"mac", the issue came from a mismatch between the original description and what i actually intended the kata to enforcethe kata has now been updated to clarify that all prefixes must have the same length, the goal here is to determine the minimum uniform prefix length
Lsuch that truncating every word to its firstLcharacters makes them all unique. with this corrected definition, the expected outputs in the examples are now consistent.also, according to @CodyTheBot and @hobovsky
thanks again for pointing this out, this definitely helped improve the clarity and quality of the kata
The last prefix should be
"mac"instead of"mach"as well.For test_case_1 with input: ["malaga", "madrid", "mallorca", "merida", "macharaviaya"] you expect the following response: ["mala", "madr", "mall", "me", "mach"]. The second item in your response, "madr", is not correct as it is not the shortest unique prefix. The second item in the response should be "mad" as this prefix is unique throughout the list.
Please fix issues reported by the bot, and fix tests to reject invalid solutions submitted until now.
Hello! I am a Codewars bot, and I reviewed your kata for common authoring mistakes.
Click to see the review
Commonly occurring issues
Long shared prefixes,Different first letters,Order preservation,Bigger dataset) and no randomly generated test cases. Codewars challenges should include random tests in the submission tests to discourage hardcoded solutions and better verify correctness across a wide input space.test.assert_equalscalls in tests likeLong shared prefixes,Different first letters,Order preservation, andBigger datasetdo not include assertion messages, and the@test.ittitles do not show the concrete input values. When a test fails, it will be difficult for users to see which inputs caused the failure; you should either include the input in theittitle or pass a message (e.g.f"words={words}") totest.assert_equals.import codewars_test as testandfrom solution import shortest_unique_prefixat the top of the submission tests so that the tests can run correctly on Codewars.Please mind that I am not a very smart bot, and you should verify my remarks with any resources available for kata authors and translators:
#help-authoringchannel of Codewars Discord