Skip to content

Commit 9581ad7

Browse files
committed
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.
1 parent 0bee7de commit 9581ad7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

config.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,15 @@
122122
"match"
123123
]
124124
},
125+
{
126+
"slug": "luhn",
127+
"difficulty": 1,
128+
"topics": [
129+
"str to digits",
130+
"iterators",
131+
"higher-order functions",
132+
]
133+
},
125134
{
126135
"slug": "largest-series-product",
127136
"difficulty": 1,

0 commit comments

Comments
 (0)