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 love this solution
He's right, read the other note:
Very naive of you not to read instructions.
"There are no fractions of people. At the end of each year, the population count is an integer: 252.8 people round down to 252 persons."
This comment is hidden because it contains spoiler information about the solution
You could say the same about any language
Coding in C# is like coding a suit, everything looks neat and tidy if you follow the conventions and standards. Otherwise your code will look like a fat cat.
Pretty, kind of clever, but not the cleverest nor very performant. Why iterate twice when you can have a single for loop?
A detailed comment isn't necessary, just some mild familiarity with Linq and the string constructor.
C# is not a good code golf language
Instead of one run in search of the maximum and minimum , it is run twice here.
Really clever, but a bit hard to read. A few line breaks and spaces and it would be better. For performance of course not the best solution but from effort.
I like how peoples solving problems in one line thinking its a good practice, this is a nightmare for maintenance if you asked me, and this line is totally NOT CLEAR, a very detailed comments is required to understand whats going on in there for someone who doesn't know the context .
This comment is hidden because it contains spoiler information about the solution
Because sorting the array once is slower than iterating through it twice.
Why not sort the array once and then take the last and first elements?
Loading more items...