QuantumNovice 95a4957d9e
Luhn algorithm (#4487)
* Luhn algorithm

Perform Luhn validation on input string
    Algorithm:
    * Double every other digit starting from 2nd last digit.
    * Subtract 9 if number is greater than 9.
    * Sum the numbers
https://en.wikipedia.org/wiki/Luhn_algorithm

* Update DIRECTORY.md

* Update luhn.py

* Update luhn.py

* Update luhn.py

* Update luhn.py

* Update DIRECTORY.md
2021-06-13 23:49:44 +05:30
2020-11-29 23:16:26 +05:30
2021-06-08 22:49:33 +02:00
2021-06-08 22:49:33 +02:00
2021-03-20 06:49:30 +01:00
2021-03-20 06:49:30 +01:00
2021-06-13 23:49:44 +05:30
2021-03-23 16:51:50 +01:00
2021-06-08 22:49:33 +02:00
2021-05-04 08:49:41 +02:00
2019-11-17 19:37:58 +01:00
2021-06-08 22:49:33 +02:00
2021-02-19 19:15:19 +01:00
2021-06-08 22:49:33 +02:00

The Algorithms - Python

Gitpod Ready-to-Code  Discord chat  Gitter chat  GitHub Workflow Status  LGTM  contributions welcome  Donate    pre-commit  code style: black 

All algorithms implemented in Python (for education)

These implementations are for learning purposes only. Therefore they may be less efficient than the implementations in the Python standard library.

Contribution Guidelines

Read our Contribution Guidelines before you contribute.

Community Channel

We're on Gitter! Please join us.

List of Algorithms

See our directory.

Languages
Python 99.9%
Shell 0.1%