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.
I hope it has become clearer now
I was thinking of String, but it's fixed anyway.
There is an implicit assumption on the phone number format that makes this requirement equivalent to "ignore all occurrences of
-
". If phone number format is fixed, it should be specified in the description.Return type should be
Vec<&str>
too. It's a container filter function, so it shouldn't return a different type.Function signature is incorrect.
Should be
fn number_check(v: Vec<&str>, m: u32, f: bool) -> Vec<String>
instead offn number_check(v: Vec<String>, m: u32, f: bool) -> Vec<String>
If you are interested with creating kata for Codewars, you can find following resources helpful:
Thanks for the insights, Fbasham! I see. Does it still make sense now for me to add the automatic tests as I had planned to do after your comment, so to improve the kata, or is this retirement a permanent thing and the kata is dismissed for good?
Just a hunch, but beta is a ruthless process. If your kata isn't (nearly) perfect or interesting, or novel, from the start, chances are it will be downvoted. After so many downvotes, it's automatically retired. Without random tests, most power users will downvote immediately.
Downvotes and retirement
Can anyone please enlighten me, why my kata received as many downvotes and has been retired?
What did you dislike / what should I do better next time and what was the reason for ditching it alltogether?
Thank you very much for the information!
There are a few options.
Hi Fbasham, thank you for your feedback! Can you point me in the right direction for how to do that? It's my first kata.
You definitely need to add random tests, ideally 100-200, to prevent hardcoded solutions.
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
.Loading more items...