Ad
  • Custom User Avatar

    This is a regex expression that indicates which of the characters within the square brackets to split the string by.

  • Custom User Avatar

    Refer to davidmak2709's solution. What is there in that code that suggests a delimiter used in joining the final string that matches the one provided to the function (i.e. double spacing) and not specified in the code itself?

  • Custom User Avatar

    No, it hasn't. It works here and in replit.com as well.

  • Custom User Avatar

    This kata has some issues. The solution I've provided is one I copied from the completed solutions because I couldn't solve the issue with double spacing. I have copied the code into intellij and tried entering strings with multiple spacing but do not get correct results. Somehow this solution passed the test when it should have failed. I'm not sure why this is happening so I'm leaving this comment as feedback. Thanks!