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.
Can you check on Codepen what your solution returns for
twoSort(['brutal', 'blonde', 'banana', 'bikini'])
? What would be the correct answer?Also feel free to visit Codewars Discord and its
#help-solve
channel, you can always find someone there to get help!Your solution has a bug, it returns incorrect answer for example for folloing test:
assert.strictEqual(twoSort(["bitcoin", "banana", "over", "the", "world"]), 'b***a***n***a***n***a' );
It is not a kata issue.
How are they incorrect? What do I have to do to fix them?
agree