• Custom User Avatar

    thank you very much!

  • Custom User Avatar

    yes please, could you do that?

  • Custom User Avatar

    Thnaks Jack! I did not know that:)

  • Custom User Avatar

    hi, please double check and make sure returning result is number not string

  • Custom User Avatar

    It was changed to 'input is always an integer greater than or equal to zero'. Thanks for feedback!

  • Custom User Avatar

    it is ok cheers!

  • Custom User Avatar

    the idea of this kata is, numbers will have perfect square root when they are consecutive and when the length of array is 4. So whatever array less or more than 4 will not fit to this ability, thus meaningless and that is why 'incorrect input'. hope it helps!

  • Custom User Avatar

    happy you completed kata successfully:)! cheers!

  • Custom User Avatar

    so did you manage to solve the kata afterall:)?

  • Custom User Avatar

    hi sempjc, one trick if you would like to see what was the test case simply add console.log() at the beginning of your code which prints argument given to the function.

  • Custom User Avatar

    You are welcome!

  • Custom User Avatar

    I also thought about this issue, but here I have translations from contributor, it means in translations we need to change as well, right?

  • Custom User Avatar

    hi sempjc,

    there is clarification for you, i have just made some changes to the solution function, so now how it works for JS version:
    numbers given must be positive integers not doubles
    -if numbers are positive but not consecutive it returns 'not consecutive'
    -if numbers has among them at least one double number it returns 'incorrect input'
    -if numbers has among them other character than number it returns 'incorrect input'
    hope it helps

  • Custom User Avatar

    Hi bdarksider,
    If numbers are negative it returns incorrect input, if among numbers you have character other than number it returns incorrect input. The JS version works in this way. In which language are you solving the task?

  • Custom User Avatar

    hi sempjc,
    what was your input in this "Expected: incorrect input, instead got: 257,401, 507.34,702,127,833,566" case?

  • Loading more items...