Skip to content

Commit

Permalink
update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tasxatzial committed Dec 25, 2024
1 parent 43c91f6 commit 7023824
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions exercises/luhn/description.md → exercises/luhn/instructions.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Description
# Instructions

Given a number determine whether or not it is valid per the Luhn formula.
Determine whether a credit card number is valid according to the [Luhn formula][luhn].

The [Luhn algorithm][luhn] is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers and Canadian Social Insurance Numbers.
The number will be provided as a string.

The task is to check if a given string is valid.

## Validating a Number
## Validating a number

Strings of length 1 or less are not valid.
Spaces are allowed in the input, but they should be stripped before checking.
Expand Down

0 comments on commit 7023824

Please sign in to comment.