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 comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
please use the spoiler flag when posting anything related to the solution
This comment is hidden because it contains spoiler information about the solution
The first run only uses 3 entries. Note the take(3) call.
thousandth!:)
This comment is hidden because it contains spoiler information about the solution
I've learnd a lot by watching at your solution. Thank you!
Approved
Several issues:
I've adapted @My-'s code to Rust 1.60 and rand::Rng +0.8.0 (Changelog 'gen_range(a, b) was replaced with gen_range(a..b)" ir order to compile the battery of tests.
very interesting challenge.. thank you ..
You can use find_map and destructuring (using
|&n|
) to make this more succint.I have test my code with online compilers,even with diferent IDE's, and my shorter solution works, Idk why doesn't work here :/
Because:
So, any single letter -> 1
Loading more items...