Ad
  • Default User Avatar

    Sorry for the late reply, I was failing to see the random tests, but I took your advice and logged the test strings, and I managed to solve the problem. Thanks alot.

  • Default User Avatar

    no answer from OP

  • Default User Avatar

    what do you mean ? is it the description that is hard to understand, or are you complaining that you cannot see the random tests ? if it is the latter, you can print the input with console.log() to see which tests you are failing

  • Default User Avatar

    The random cases are not clearly described its hard to optimize the answer.