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.
"You can assume, for the purpose of this kata, that the supplied array will not be empty."
From the description.
:) for ignoring the
using System.Linq
and still banging out a solution that is IEnumerable performant.This comment is hidden because it contains spoiler information about the solution
if args is null or empty this will throw a null reference exception or index out of bounds respectively. Instead of setting minValue to args[0], setting it to int.MaxValue is a sane default as all values in args will be <= int.MaxValue.
if args is null or empty this will throw a null reference exception or index out of bounds respectively