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.
Maybe the description has been updated since this comment was left here but I understood it to describe that scenario as it is written.
Please mind your language.
Won't ask twice.
Thank you.
This comment is hidden because it contains spoiler information about the solution
One of the tested inputs is
null
. Your function needs to be able to handle it, but as you have it written now, the function fails because you try to find the length ofnull
.how. in the loop we go through the array and the length is set there correctly, as I understand it. further, if the value is greater than the lesser and less than the greater, we add it to the variable sum. I don't understand where the error is, I'm a beginner developer.
Read the error message:
TypeError: Cannot read property 'length' of null
it's not the length what is null, it's the value passed to your function, andnull
has no length.This comment is hidden because it contains spoiler information about the solution
first of all this should not be 8kyu otherwise noone would complain ...
second thing wrong description as always... you said add up the nums except the smallest and largest but!! if you have a 2 item array then you end up with an empty array,
and it should be like if the array length is less or equal to !2! then return 0..
and it does not make sense so please next time write a well defined desc.
sample tests are obviously wrong please fix this kata (sq should be False) and (adfa should be False) as well . And the last test too wtf mate. I think palindrome is a string that is spelled same from backward as from forward correct me if I am wrong. so if you have = CABBAC then its true because you reduce the string length by 1 from the front and the end too like this == CABBAC -> ABBA -> BB -> ''
Julia translation
every test passed except the last why????????
[46, 78, 574, '287', '3', '423', '69', 'Apple', 'Grape', 'Peach'] should equal [46, 78, 574, '3', '69', '287', '423', 'Apple', 'Grape', 'Peach']
this should be good
please fix the description its no way to figure out what you want from us at 7kyu dont make me cry lmao
obviously not for this level
You need to switch Python version to 3.8 when submitting.
WTF I just did it and I got this error...
Traceback (most recent call last):
File "main.py", line 2, in
import codewars_test as test
ModuleNotFoundError: No module named 'codewars_test'
Loading more items...