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 return type of the function should be usize instead of u8
Cannot invoke "java.lang.Boolean.booleanValue()" because "[]" is null
how can i resolve this?!
This comment is hidden because it contains spoiler information about the solution
I don
t understand where we have the error? It
s only a boolean array.Where we get NullPointerException?
Thanks
The plural of sheep is sheep, not sheeps.
The initial solution setup is missing the
function
keywordNode 12 should be enabled (Refer this and this for more info)
This comment is hidden because it contains spoiler information about the solution
Ruby should use camel_case
Racket example in the description:
Why does it have some these 1 and 5? Well, maybe because it isn't specified what values input can contain. Most languages seem to have only true/false/null-nil-undefined-... So the input domain should be specified and consistent across languages.
I've created a NASM translation for this Kata.
All language versions should be updated with random tests.
This line in the description is confusing:
"Don't forget to check for bad values like null/undefined"
I didn't understood what shoud be returned in that case.
I think the description/instructions to this Kata should emphasize that all the coder needs to return is a number value (i.e., the number of sheep). I think most of the people who attempted this Kata were paying more attention to the sample test, especially the line that reads:
Test.expect(countSheeps(array1) == 17, "There are 17 sheeps in total")
If they were like me, they were trying to create a function that returns a string/message and were getting the error messages:
There are 17 sheeps in total, not There are 17 sheeps in total
There are 500 sheeps in total, not There are 500 sheeps in total
There are no sheeps at all, you counted There are no sheeps at all
-which is massively confusing.
You need to add some random test cases
Loading more items...