Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Thanks, chrono79! I realize that. I'm blown away and so determined to figure this out now!

  • Custom User Avatar

    Not a kata issue, those are performance tests.

    JavaScript Completions 3623

    As you can see, even with those very long strings the kata is still solvable, given your code is performant.

  • Custom User Avatar

    Testing very long strings, in JS: console.log(str1.length, str2.length)
    2000001
    2000001

    Now wonder!

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Test 51 must be huge or something. I can't get past the timeout, with all tests passing until 12000ms.

  • Default User Avatar

    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.

  • Custom User Avatar

    I'm at 326 chars in absolutely minified JS.. sigh, I'll try again!

  • Custom User Avatar

    This is so awesome, and a good appraoch of using data as code. Know thy data!