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.
This comment is hidden because it contains spoiler information about the solution
Thanks, chrono79! I realize that. I'm blown away and so determined to figure this out now!
Not a kata issue, those are performance tests.
As you can see, even with those very long strings the kata is still solvable, given your code is performant.
Testing very long strings, in JS: console.log(str1.length, str2.length)
2000001
2000001
Now wonder!
This comment is hidden because it contains spoiler information about the solution
Test 51 must be huge or something. I can't get past the timeout, with all tests passing until 12000ms.
There are several ways to complete the challange in 300 characters in c#. I don't want to change that limit to alter difficulty.
I just wish that spaces (and at minimum new lines) didn't count so people would write easier to read code.
Many of the C# answers are just putting all of the code on one line. Languages like Java and C# can be minified to get closer to the 300 char limit.
Python relies on indentation for syntax, so it should be less of an an issue.
Overall, this problem is harder in C# than Java, but that doesn't mean you should arbitrarily change the char limits for certain languages. That would be messy.
In conclusion; please remove "new lines" from the 300 character count, and it would be best if removing indentation as well. You could also not count any spaces unless they were in the string. It will not affect the difficulty of the problem or invalidate earlier answers, but it will make answers in the future easier to read.
Half the answeres on C# have all extra spaces removed anyways.
I'm at 326 chars in absolutely minified JS.. sigh, I'll try again!
This is so awesome, and a good appraoch of using data as code. Know thy data!