You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Implement Luhn
Closes#237
This follows the current test suite as of right now
https://github.com/exercism/x-common/blob/41b9fe8e9c2513f4443e1cad1f286f53b2720ce9/exercises/luhn/canonical-data.json
* Place Luhn before Largest Series Product
I don't think my solution is that far from what people will do. The
[existing crate](https://lunemec.github.io/rust-luhn/src/luhn2/src/lib.rs.html)
uses another crate to handle digits > 10 after doubling. If people go
down that path their solutions will vary a bit from mine, but not by a
bunch.
So the solution mostly requires a good handle on
- Converting a string to digits
- Working with iteration
The conversion of a string to digits is also part of Largest Series
Product, so we could put the exercise to right before LSP to reinforce
that concept.
0 commit comments