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.
Please update the rust version.
You have to look for harshad numbers, where the product of "sum of digits" and "sum of digits"[::-1] is the number again. Now lets have a look at the sum of digits.
9: you need at least 1 digit to get this. And 9 * 9 = 81 (2 digits). No problem.
99: you need at least 11 digits to get this. And 99 * 99 is < 10.000 (4 digits). For bigger numbers this is getting worse, so the matching harshad numbers are below 10.000. And there we have just these four numbers...
Since Option implements IntoIterator you could use "Some('_')" instead of "std::iter::once('_')"
Approved
Rust translation. Please review and approve
Thank you
Thank you, I changed this
Rust translation. Please review and approve
Please update the rust version
Rust translation ♜♚♜. Please review and approve...
Very impressive!
I get this
warning: unused imports: 'Rng', 'thread_rng'
@PG1: rust version updated
Absolutely stunning! This is why I like codewars. After committing my solution I nearly always see other solutions much smaller and/or much cleaner and/or much better. Thank you!
Thank you, updated to Rust 1.62
Loading more items...