There is no issue with the kata, but there is one with your code.
This comment is hidden because it contains spoiler information about the solution
that is the same thing i have been wondering man
I have never encountered this way of defining functions, it's confusing... Where is the parameter? how do you call such function? Can someone pls come to my aid? Thank you..
My solution passes all the test cases, but I recieve exit code: 1 with an error saying: res[i] = odds[-1] IndexError: list index out of range
fixed! thanks
Because your code is wrong. Add this sample test to help you debug it:
assert.deepEqual(sortArray([ 19, -2, -19, -6, 33, 42, -20 ]),[ -19, -2, 19, -6, 33, 42, -20 ]);
i pass the test but fail when i try to attempt it?
Because your code has a logic flaw:
Incorrect answer for: array1=[gla,oes,ion,by,pini,ve,1.9,ing,omm] array2=[have,1.9?,for,is,you,answer,am,to,apidock,versioning;,you,out,your,pointed,should,a,the,me,Ruby,(mladen's,most,I,input,that,not,the,your,would,somewhere).,comment),what] : expected [ '1.9', 'by', 've' ] to have the same ordered members as [ '1.9', 'by', 'ing', 'ion', 'omm', 've' ]
strings of a1 which are substrings of strings of a2
The substring can be in any position, not only at the beginning or the end.
I pass the tests but fail when i try to submit?? JAVASCRIPT
Not a kata issue.
Your bmi is calculated wrongly, please check again.
Please see: https://docs.codewars.com/training/training-example#debugging-a-kata
Loading collection data...
There is no issue with the kata, but there is one with your code.
This comment is hidden because it contains spoiler information about the solution
that is the same thing i have been wondering man
I have never encountered this way of defining functions, it's confusing... Where is the parameter? how do you call such function? Can someone pls come to my aid? Thank you..
My solution passes all the test cases, but I recieve exit code: 1 with an error saying: res[i] = odds[-1] IndexError: list index out of range
This comment is hidden because it contains spoiler information about the solution
fixed! thanks
This comment is hidden because it contains spoiler information about the solution
Because your code is wrong. Add this sample test to help you debug it:
i pass the test but fail when i try to attempt it?
Because your code has a logic flaw:
The substring can be in any position, not only at the beginning or the end.
I pass the tests but fail when i try to submit??
JAVASCRIPT
Not a kata issue.
Your bmi is calculated wrongly, please check again.
Please see: https://docs.codewars.com/training/training-example#debugging-a-kata
Loading more items...