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.
Hey, do you mind trying your solution again? Looks like it's been invalidated now, for some reason.
two pointers method
it might not work on some random tests, it should be testing for final length not for length of an input
if i didn't check for final length my solution would be like... 79 instead of 85 characters long
tbh tho, I didn't use strip because this test is stupid and only uses spaces
got it, thank you!
nice, BRO
This is the only solution without regex. I have spent some time on it. I took me a while without knowing the reg expressions. You have got better code.
And the explanation to the task with the three answers was unclear.
I think you just need the .replace(' ','') in the expression of the if statement. No need to make the computer do extra work there.