We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3beda36 commit 3474c07Copy full SHA for 3474c07
src/testing/exercise.md
@@ -8,7 +8,8 @@ The [Luhn algorithm](https://en.wikipedia.org/wiki/Luhn_algorithm) is used to
8
validate credit card numbers. The algorithm takes a string as input and does the
9
following to validate the credit card number:
10
11
-- Ignore all spaces. Reject numbers with fewer than two digits.
+- Ignore all spaces. Reject numbers with fewer than two digits. Reject letters
12
+ and other non-digit characters.
13
14
- Moving from **right to left**, double every second digit: for the number
15
`1234`, we double `3` and `1`. For the number `98765`, we double `6` and `8`.
0 commit comments