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.
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.The
Issue
label is for provable kata issues. Please use theQuestion
label when asking for help and appropriate markdown formatting when posting code. See https://docs.codewars.com/training/troubleshooting#post-discourse.The error message indicates that your output doesn't exactly match the expected output, in this case, it contains an extra trailing space.