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.
Expected output is unspecified.
Also: use correct datatypes. "if it's a pirate speaking or not" would be a
Boolean
, not aString
.Strings are cute, but rarely the correct choice for a datatype.
retired
Thanks for the feedback, I added 100 random tests in it
well... The kata already got retired (that's automatic, based on the satisfaction votes, sorry) Anyway...
Cheers
note: don't use the spoiler flag when ther is nothing spoiling anything: other users don't get notifications of your answer when the flag is activated.
that's the "wrong" way to do it. ;) There rather should be 50-100 random tests on inputs of normal lengths. There, the test is not debuggable at all.
Cheers
This comment is hidden because it contains spoiler information about the solution
Hi,
This kind of task has already been too often. There are almost no chances it gets approved nowadays, even if done "properly". Did you already read the whole documentation about authoring? It gives some advice about what is or isn't suitable for a kata and what is or isn't generally welcomed by the community.
Issue part:
About your kata: random tests must be done in batches. Generally 50 to 100 of them.
Cheers
Random tests are too weak. This solution passes 30% of the time.
Unfortunately, your kata got already retired.
Added random tests
A programmer tired of using the same patterns: camelCase, PascalCase, kebab-case, snake_case, etc, decided to create his own case: CoNSoNaNTCaSe, which is basically to make all consonant uppercase, the other letters lowercase and no spaces between words, numbers and special characters are kept the same.
In the one you sent, it must be separated, in the one I did, it must be removed and if they are all odd numbers, it must return 2, I believe they are similar but it is not duplicated
Still a duplicate Note that when the solution of the kata can be directly copied from the other one with no brainstorming required (i.e. the task is very direct and trival), it's considered as a duplicate.
Loading more items...