Ad
  • Default User Avatar

    Increase your code performance. Don't just loop in a loop in a loop in a loop..... which will cause the worst time complexity for the code to run. Keep it simple and readable.

  • Custom User Avatar

    Do you mean your solution is basically like this:

    function scramble(str1, str2) {
      return true;
    }
    

    And it times out? It doesn't happen to me.

  • Custom User Avatar

    I commented out everything in my solution except "return true" and hit "attempt". And it still timed out.

  • Custom User Avatar

    Not a kata issue, all tests passed until your code timed out, there are more tests.

  • Default User Avatar

    Well, the Oxford comma is the bully, not the underdog!