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
D 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
More test cases of mixed casing (upper and lower) should be genrated in all languages
Python new test framework should be used (Refer this & this for more detail)
Node 12 should be enabled (Refer this and this for more info)
No random tests in Ruby
Test.expect
should be removedRuby 3.0 should be enabled (Refer this & this for more detail)
hey guys
i tried tested my code and it passed 3 out pf the 4 tests mentioned.
the one which went wrong gives a message like this:
i tried adding main to the code with "success" as an argument to the function and it gave me the correct result as mentioned in the instructions:
Loading more items...