manrajgrover / algorithms-js

Consumable Data Structures and Algorithms library in JavaScript
MIT License
198 stars 129 forks source link

Added Modular Multiplicative Inverse #67

Open VictorKubrak opened 5 years ago

VictorKubrak commented 5 years ago

Description of new feature, or changes

Added Modular Multiplicative Inverse Receives numbers a and m Returns smallest positive number x so that ax-1 is evenly divisible by m Returns 0 if such x does not exist

Checklist

People to notify

@manrajgrover