Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Least Common Multiple for a array of elements. #1154

Open
abhiphile opened this issue Jul 20, 2024 · 6 comments · May be fixed by #1156 or #1158
Open

Least Common Multiple for a array of elements. #1154

abhiphile opened this issue Jul 20, 2024 · 6 comments · May be fixed by #1156 or #1158

Comments

@abhiphile
Copy link

It will be better to also have a leastCommonMultiple function for an array where I could pass an array of elements and get the result.

export default function leastCommonMultiple(a, b) {
  return ((a === 0) || (b === 0)) ? 0 : Math.abs(a * b) / euclideanAlgorithm(a, b);
}
@mukund1606
Copy link

Can I work on this one?

@abhiphile
Copy link
Author

Yes Sure !

@mukund1606 mukund1606 linked a pull request Jul 25, 2024 that will close this issue
@mukund1606
Copy link

Created a PR for LCM on array of numbers

@AnshDwivedi03
Copy link

Can i work on it

@Vertabrae1
Copy link

1

@Subhrajyoti842
Copy link

Should I do it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants
@mukund1606 @Subhrajyoti842 @AnshDwivedi03 @abhiphile @Vertabrae1 and others