Ad
  • Default User Avatar

    If the goal of the function is to return a sorted array, not returning one in some cases seems counter-productive to me.

  • Custom User Avatar

    Hi. The log must be read like this: Expected your_answer to equal correct_answer. This kata has been completed many times and it's very unlikely its tests are incorrect. However it's impossible to know for sure, we don't even know which language you are using nor what you are doing. I suggest you to read the documentation when you can fin helpful tips to debug your solution or post a more informative message: https://docs.codewars.com/training/troubleshooting/

  • Default User Avatar

    Hello,

    I think there is an issue on the output of the test result. When hitting the attempt button I have the following result of my test:

    Expected
    <[]int | len:93, cap:128>: [-96, -95, -92, -90, -90, -89, -88, -86, -82, -82, -81, -69, -69, -68, -68, -63, -62, -61, -59, -55, -52, -52, -49, -47, -43, -33, -33, -33, -32, -30, -28, -27, -26, -24, -20, -18, -15, -15, -14, -14, -12, -6, -5, -5, -2, -2, -1, 2, 2, 3, 3, 6, 7, 12, 15, 17, 18, 21, 23, 27, 29, 32, 33, 34, 35, 37, 42, 44, 46, 47, 48, 48, 50, 53, 54, 55, 59, 62, 63, 64, 67, 78, 81, 82, 82, 83, 83, 86, 88, 90, 91, 95, 98]
    to equal
    <[]int | len:93, cap:128>: [-33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -5, -5, -5, -5, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 55, 55, 55, 78, 78, 78, 78, 78, 78, 82, 82, 83, 83, 83, 86, 88, 90, 98, 98, 98]

    I think the result expected is achieve but the test expectations doesn't seem to be right or did I miss something?

    Kind regards
    JM