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.
this will fail if all inputs are negative
Contrary to other posters, I believe this is best practice and best performance. the Min Max implementations are vectorized, making them faster than the typical for loop by an order of magnitude. Even considering the double iteration. this will depend on the hardware.
@hiyosilver - did you benchmark your code? I did, and the "naive" Min/Max solution is indeed faster. C# vectorizes the search, which makes it an order of magnitude faster than a linear search with a for loop, according to my benchmark.