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 comment is hidden because it contains spoiler information about the solution
The kata ask you to bubble sort once, so just do one pass.
For Javascript Node v6.6.0: Passed 1015 Failed 8
I'm pretty sure these tests are wrong:
Expected: '[7, 5, 3, 1, 2, 4, 6, 8, 9]', instead got: '[1, 2, 3, 4, 5, 6, 7, 8, 9]'
Expected: '[2, 1, 4]', instead got: '[1, 2, 4]'
Expected: '[16, 9, 25]', instead got: '[9, 16, 25]'
Expected: '[2, 3, 1, 4]', instead got: '[1, 2, 3, 4]'
Expected: '[3, 1, 2, 4]', instead got: '[1, 2, 3, 4]'
Expected: '[5, 3, 1, 7]', instead got: '[1, 3, 5, 7]'
Expected: '[3, 4, 6, 1, 2, 7, 8, 5, 9]', instead got: '[1, 2, 3, 4, 5, 6, 7, 8, 9]'
Expected: '[3, 4, 6, 14, 9, 1, 2, 7, 8, 5, 14, 11, 15, 15, 17, 19]', instead got: '[1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 14, 14, 15, 15, 17, 19]'