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!Yes, I believe my code is buggy but comparing results here and in codepen confused me, if you could explain why is this happening i would appreciate it
This comment is hidden because it contains spoiler information about the solution
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?
Incorrect random tests in JS
agree
seems like the cleanest solution!