Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This is a regex expression that indicates which of the characters within the square brackets to split the string by.
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?
No, it hasn't. It works here and in replit.com as well.
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!