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.
Very true!
[...arr]
no need for this spread lol.arr
is already an arrayThis comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Ooh, so if they get caught and have honor removed, their submissions aren't removed from history. That would explain it then haha
You didn't have to abbreviate the variable names lol.
Interesting that all the variations submitted also have identically abbreviated variable names. Hmmm... wonder what that means.. People wouldn't look up the top voted answer on the internet then solve it by copying and pasting would they?? :P
This comment is hidden because it contains spoiler information about the solution
WOOPS! In my brain I had converted the input to array already haha. Thank you
This comment is hidden because it contains spoiler information about the solution
I'm not sure if this has since been resolved, but as far as I could tell, the reason is that there is no input that required forcing anything to lowercase. I passed only by ensuring the first character of each word was capitalized.
To reiterate, it's not that the tests require it, it's that the test inputs don't have any uppercase letters embedded in the words anyway. So the problem requirements are accurate.
Do you mean to say, how
" "
+" "
is still an empty string?It's because it's two (or more) whitespaces together, the result of above just being
" "
(now two whitespaces).Since the task is to remove spaces to make the result a proper hashtag, it's probably safe to assume we should remove all spaces no matter how many might be in between two words.
At least in Javascript, this was a bit more involved and felt like a 5kyu.
The best data structure
Test Driven Development
Loading more items...