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.
Moral of the story: LCM != LCD, you need to simply the fractions first!
A better algorithm for lcm:
https://en.wikipedia.org/wiki/Least_common_multiple#Using_a_simple_algorithm
This comment is hidden because it contains spoiler information about the solution
The memory intensive part is the call to
to_string
. Each digit as i64 is not stored due to iterator being lazy.Thanks
https://github.com/Codewars/codewars.com/wiki/Language-Rust
You can use libraries? How?
As far as rust is concerned,
mut a
is not a change of signature.