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.
You are concatenating the result of previous computations. Also, your final output have trailing spaces. Seems like you've solved it though, closing!
Who knows? We're not mindreaders.
Not a valid kata issue. See https://docs.codewars.com/training/troubleshooting for tips.
Documentation suggests that package
slices
is only available since version 1.21, but only 1.20 is available at the moment. So, don't import unsupported packages.This comment is hidden because it contains spoiler information about the solution
You're not returning anything, that's why. Check out https://docs.codewars.com/training/training-example
Your code not working is not a kata issue. Please check https://docs.codewars.com/training/troubleshooting for some tips.
If you want to post code, use code formatting: https://docs.codewars.com/references/markdown/#displaying-code
The issue lies with your if-check. Can't get into more detail otherwise you wouldn't be able to see this comment if it's marked as a spoiler. But, essentially, you're not applying the case-insensitivity on the original string. You're doing it on the wrong parts. Think about how and why your solution would mess up with strings containing uppercase chars like
HOOP
orhOOp
. Are you searching for a version of that char that doesn't exist? That's about as many hints I can give without spoiling.This comment is hidden because it contains spoiler information about the solution
expected:<emocleW[]> but was:<emocleW[ ]>
I don't have ideas what's this problem is about?
public class SpinWords {
}
This comment is hidden because it contains spoiler information about the solution