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.
I got error with just "array.Average();"
You need to use Linq library
you can completely get rid of the ternary operator and just return the average as the Average method already returns 0 for an empty array.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I mean, mine used it as well
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Has the test case in C# been fixed yet?
....
The issue is actually in your code. The test code just mixes up "expected" and "actual".
So "11, 11, 2(, 3, 5\r, 8ò, =Å, E}, R\b, gK, " is not expected, it's what your code returns.
I had a very similar issue, and fixing a bug in my code helped.
I tested both ceccomilani and your solutions as well, and there are no problems.
(Maybe the author sliently fixed it.)
Loading more items...