manrajgrover / algorithms-js

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

Added a function to calculate GCD of Multiple numbers #130

Open shreyventure opened 2 years ago

shreyventure commented 2 years ago

Description of new feature, or changes

The function gcd_multiple_numbers, takes in variable number of arguments(numbers) and calculates the GCD for all those arguments.

Checklist