-
Notifications
You must be signed in to change notification settings - Fork 2
luhnchecksum
bradendubois edited this page Jun 9, 2021
·
6 revisions
ID: luhnchecksum
Difficulty: 1.6
CPU Time: 1 second
Memory: 1024 MB
For this, finding some way to iterate through individual elements of the number will help. This can be done by iterating through the number (as a string) andconverting the relevant digits to numbers, or dividing by 100 to move the next 'digit' into the right-most position, etc.