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.
Yep. came here for this. need to change conditional to 139.
Indeed, this solution is incorrect due wrong 140 len checking
Agreed, this solution would fail for the testcase suggested by @galaxyAbstractor.
I also agree this solution is not correct. The hash tag would be less then 140 in length if the str is for example 141 in length.
i think so too @galaxyAbstractor...
false if the final output length is greather than 140... better check test cases?
I think you misunderstood the instructions, but there were no test case to catch this. A 140+ char input is valid if the resulting string is 140 or less. Remember we are removing all the spaces, and adding a #.
Oh well I overthought this one >.<. At least I got to learn a bit about apply, map and every :P
This comment is hidden because it contains spoiler information about the solution
The "submit" button seems to get disabled when there is a connection error (on my part), and the only way to resolve it is to reload the page.
Why didn't I think of instanceof like the other solutions >.<