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.
I think the description is still not clear. We assumed that by "trailing whitespaces" they mean only the spaces because technically a newline character is ALSO a white space character, but this one we have to keep.
They should be more thorough about which characters they want to keep and which ones they want to strip.
Ok, got it.
Thank u.
For:
First you remove the comments, then, you check for trailing whitespaces and remove them:
Then, why is my first example not ok ('\t' is at the very beggining)?
You should remove it only if it is at the end of the line:
This comment is hidden because it contains spoiler information about the solution
Read this: https://www.codewars.com/kata/51c8e37cee245da6b40000bd/discuss#6380f6a2bad8fd6f55799093
This comment is hidden because it contains spoiler information about the solution
Yup, see now.
Thanks.