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 kata appears to be a duplicate. The java tests seem to be incorrect.
Duplicate.
I think that you can change you problem to case insensitive. I have seen lots of kata like this. Please try to make it more distinct.
Errors in your test cases (Java)
Tell me if you want me to post the code here.
Else, well done on the print statements, they are really well explained but the errors make it impossible to solve.
This comment is hidden because it contains spoiler information about the solution
You should mention in details that string can be empty.
pls add some test cases
Edge cases not listed, would be nice to see them.
I went the route of not using include? But I'd assume that is the best practice for this purpose.
I agree that test cases would be nice, or at least include more useful messages from the failed submission tests.
The provided test cases have syntax errors.
There are a couple typos in the description. Here's a suggested rewrite of the first two sentences:
It would also help to specify if the function is case-sensitive and add test cases for such. For example, what should
find("Hello", ["bye bye","hello"])
return? Should it be true because "Hello" and "hello" are the same word or false because "Hello" is capitalized and "hello" isn't?
Maybe changing "word" to "string" in the description would help, especially with the examples including "bye bye".