Ad
  • Default User Avatar

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

  • Default User Avatar

    Something weird is happening with the javascript random tests - all 40 are failed with the same error:
    "It should work on random inputs too! - Expected: '[24, 31, 20, 14, 31, 14, 14, 31, 48, 2, 24, 41, 31, 48, 31, 14, 14, 14, 13, 2, 33, 20, 31, 24, 20, 24, 33, 2, 48, 33, 33, 33, 2, 13, 48, 13]', instead got: '[24, 31, 20, 14, 31, 14, 14, 31, 48, 2, 24, 41, 31, 48, 31, 14, 14, 14, 13, 2, 33, 20, 31, 24, 20, 24, 33, 2, 48, 33, 33, 33, 2, 13, 48, 13, undefined]'".
    Used console.log to check the tests input and run the same input in console - everything works, no 'undefined' at the end. Can anyone please tell what's wrong?