Ad
  • Custom User Avatar

    Object key-value. I don't want to spoil too much, but think of a way to only run once over each string.

  • Default User Avatar

    Chrono97 Do you say object key-value or an object array? I've tried arrays, array methods, array lodash methods... same result, 60 test ok, but timeout on performance test.

    joh_pot: I think I understand the basic problem in this kata. But at least, str2 must be read one time for chars, and so str1 to check if it have the chars in str2 and in the needed number... surely there is another method that is the one that I can not find to solve this.

    I do not want to give up!!!

  • Custom User Avatar

    No they aren't. At least in JS, look at how many people passed it (JavaScript Completions 1401).

    Performance needs to be considered

    If your code doesn't work, then it's not fast enough to pass.

  • Custom User Avatar

    the test cases for this seems to be broken

  • Custom User Avatar

    i dont understand what this kata is asking me