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.
lmao. TDD all the way.
Very true!
sort mutates the original array so spreading here creates a new reference and avoids mutation. Not necessary in the exercise, true, but still worth using in a real application
[...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
Part of them probably did. You can notice many of them have
8kyu
ranking. That probably means moderators remvoed their honor points for doing it. Others could just copy the solution and test it after solving regularly the kata, which is fair.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
Not a kata issue, which data type is
iterable
there? Print the input.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.
Loading more items...