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.
thank you very much!
yes please, could you do that?
Thnaks Jack! I did not know that:)
hi, please double check and make sure returning result is number not string
It was changed to 'input is always an integer greater than or equal to zero'. Thanks for feedback!
it is ok cheers!
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!
happy you completed kata successfully:)! cheers!
so did you manage to solve the kata afterall:)?
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.
You are welcome!
I also thought about this issue, but here I have translations from contributor, it means in translations we need to change as well, right?
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
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?
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...