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.
you are consistant
"In this kata you will create a function that takes a list of non-negative integers", that's the input.
My understanding is that it always give you "non-negative integers".
Yes, you are right, but life has taught me that anything can be at the input and it is better to filter it out.
There's no such kind of requirement regarding the filter. In my reading it is a precondition.
"takes a list of non-negative integers"
Maybe you are right, but life has taught me that anything can be at the input and it’s better to filter it out :).
there is nothing that says to filter out negative integers. It specifically says to filter out strings.
You ignored the requirement "non-negative integers"
you ignored the requirement "non-negative integers"
you ignored the requirement "non-negative integers"
Too much unnecessary code. The Where method already returns an implementation of IEnumerable, which can be returned as a result.
Also, you ignored the requirement "non-negative integers".
In addition, your method returns any type except string, which corresponds to the conditions of the task, but it would be more reliable to return only values of an integer type.
You missed the "non-negative integers" requirement.
You missed the "non-negative integers" requirement.
You missed the "non-negative integers" requirement.
You missed the "non-negative integers" requirement.
Loading more items...