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.
Have a look at the triangles with short lengths. See what you notice.
Given "the" triangle of odd numbers...
https://xkcd.com/221/
You might have chosen them randomly but they remain static values that could be hard coded.
I think this one works now.
The solution setup has a return type of
&str
where the solution has typeString
.As someone new to Rust this is very confusing.
Also, it would be better to remove the hashmap from the solution setup.