Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    The kata ask you to bubble sort once, so just do one pass.

  • Custom User Avatar

    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]'