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 never knew there was a min function on iter, so short and clever
This comment is hidden because it contains spoiler information about the solution
I forgot about iterators on the array. I need to stop thinking of Rust arrays as C style arrays. I converted my array to a vec first but essentially my solution was the same.
Ah, this is so much cleaner than mine. I love it.
This comment is hidden because it contains spoiler information about the solution
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
This comment is hidden because it contains spoiler information about the solution
I think that in your case the comments don't make the code easier to read and understand otherwise your solution is clean. Maybe just less efficient since you used a dict instead of a set.
Also you did the same "mistake" i did, you can get rid of the else statment because you always want to add the checked value.
Mine isn't as clean as yours, but it's nice to see that I came close! Awesome solution.
Thanks for this. After I submitted mine I figured I could have just sorted...
I'm having trouble with these in Python. Attempting the List Filtering kata. My function works fine, but the test object is funny.
AttributeError: 'module' object has no attribute 'assertEquals'