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.
When I run it, based on the description my code produces the right answer but then the expected it some weird answer. E.g. Sam Harris should be S.H which is what my code produces but then it says the expected is "te" or the expected will be empty.
This comment is hidden because it contains spoiler information about the solution
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/196.
Please join the discussion to help us identify duplicate kata and retire them.
Input validation order is not specified; the description did not say the validation should be done in order, and by common sense value checks should not come before type checks.
How about this?
public class Solution { public static string[] StringToArray(string str) { return new string[0]; } } }
Test Failed
Expected is <System.String[1]>, actual is <System.String[0]>
Values differ at index [0]
Missing: < <string.Empty> >
Test Failed
Expected is <System.String[6]>, actual is <System.String[0]>
Values differ at index [0]
Missing: < "63C4PJK", <string.Empty>, "UG1"... >
Test Failed
Expected is <System.String[2]>, actual is <System.String[0]>
Values differ at index [0]
Missing: < <string.Empty>, "NGPIQNZ3LDFZ46GQ" >
Test Failed
Expected is <System.String[3]>, actual is <System.String[0]>
Values differ at index [0]
Missing: < "0DTFT", "91XM2ANRPN6OK0PB", <string.Empty> >
etc.
How can test wait for <string.Empty> if only non-empty strings are allowed in result array?
Kotlin: the solution set up should provide a complete function declaration, with output type, etc. This is a beginner kata.
In Kotlin random test failed with this:
expected:<[ JZZEBQBIYSPKSCIJOCV]> but was:<[J]>
My code seems to be doing the right thing of taking the first letter.
It happened only once, i.e. random, please check the tests.
Some languages have random number of spaces between the words while others always use a single space. The JavaScript version which is very likely to be the original one uses the latter.
Forked C++ translation submitted with fixed reference solution. Please review carefully.
This comment is hidden because it contains spoiler information about the solution
Kotlin: the random tests generate empty names sometimes.
Elixir translation.
This comment is hidden because it contains spoiler information about the solution
Add test cases for words with in all lower case.
No random tests in Go
Loading more items...