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.
Still O(n) time complexity as args.Min() has to iterate through the whole string in worst case similar to a for loop
Are u serious? I`m gonna practice more...
Another opportunity to practice with LINQ (◕‿◕)
okay don't need to complain about the solution actualy obviously that's a basic question so it doesn't matter how you solve it
Apparently C# literally has any method you can think of
First time I do a oneliner and OBV someone does it shorter :D
so ez
Very true. Luckily we have a multitude of tools in the toolbox with which to solve real-world problems. If we had to do it all in assembler life would be tedious indeed. In the same way that I don't use a hammer-drill to put a picture nail in a wall, I don't use assembler to build web APIs.
If all the people use C# instead of assembler, then programming will cease to be programming.
I disagree. The art of programming is to deliver the right solution in a clear and concise manner. Sure, we could written this in any number of ways, a for loop, a recursive algorithm, but it is more important to make your code readable than it is to make it work.
If using system libraries delivers a clearly understandable codebase that executes within required parameters, then use them. If they don't, dont.
beautiful, of course, but if all the time using system libraries, then programming will cease to be programming.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Simple. Elegant. Obvious.