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 had to test, did not think this would work for the value 0 - it does
This would fail given the data:
Since 1000 would be returned, but would not originate from the array.
I like your solution, but returning 0 hence indicating 0 to be the smallest number would be a an error IMHO.
I really like this solution (as I also commented). I did not like the fact that the kata did not take into consideration the empty array, returning 0 would not be correct behaviour.
I like this solution alot, I thought some thing like this was possible, but my Rust-foo is not strong enough and I have a hard time navigating the documentation to dig up the idiomatic Rust examples
Very elegant, I like the use of the Rust idiom
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution