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.
It's a lambda expression! Sort of like a simplified method. In this case, you can think of the => as a kind of return statement.
What does the => do?
Nice one
I have seen something like this, but you made it in the single line of code. Amazing
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
As I was submitting my boring solution that simulates the "fight" I was thinking it'd be easier and better to just throw some math at problem. This is that solution.
This comment is hidden because it contains spoiler information about the solution
C#
Passes initial tests but fails when trying to submit with:
{"stdout":"","stderr":"/tmp/csharp116516-17-12tjut2/fixture.cs(81,13): warning CS0219: The variable `textCount' is assigned but its value is never used\n","wallTime":0}
I don't believe I have any access to textCount, can't submit.
This comment is hidden because it contains spoiler information about the solution
Getting this as well.
This comment is hidden because it contains spoiler information about the solution
System.Collections.Generic is the namespace for List and most of the other common, useful collection classes.
System.Collections has a couple collections that are from older versions of C# (I believe) and are generally not very useful.