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.
Lua translation!
python new test framework + random tests are required. updated in this fork
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
No random tests in C#
Assert.AreEqual
should be usedD translation
Go translation
This comment is hidden because it contains spoiler information about the solution
The 'Success' test is not a good one to see if the user is ignoring uppercase. If they iterate through a lowercase array without changing the original word to lowercase, you still get the correct result because there are two lower case 's' at the end. A better test case would be something like 'Aba'
Rust test case suggestion: Rust uses UTF-8 string encoding. Hence some characters could be longer than one byte.
Add a test case like:
assert_eq!(shifted_diff("daß", "ßda"), Some(1));
This is a 1 character shift but 2 byte shift because 1 character ß is two bytes in UTF-8: 0xC3,0x9F.
No random tests in java
This comment is hidden because it contains spoiler information about the solution
I think returning an empty array (
[]
) is better than returning["Empty"]
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...