data-structure-and-algorithms icon indicating copy to clipboard operation
data-structure-and-algorithms copied to clipboard

Implement GCD and LCM in recursion

Open ephremdeme opened this issue 4 years ago • 15 comments

Implement GCD and LCM of two integers using any langauge

ephremdeme avatar Oct 01 '20 06:10 ephremdeme

I can do this in JAVA, C++, C, golang

dev-abir avatar Oct 01 '20 06:10 dev-abir

I would like to work on it in python

shaswatsingh19 avatar Oct 01 '20 06:10 shaswatsingh19

I can do it in Javascript

neelansh15 avatar Oct 01 '20 06:10 neelansh15

On whatever language you choose you can implement it.

ephremdeme avatar Oct 01 '20 06:10 ephremdeme

Shall I create a folder recursion/ to store GCD_and_LCM.js?

neelansh15 avatar Oct 01 '20 06:10 neelansh15

yes, where we will store them?

dev-abir avatar Oct 01 '20 06:10 dev-abir

@dev-abir Yeah. That is my question to the owner of the repo. I am implementing it in recursion/GCD_and_LCM.js. You can do it in your language

neelansh15 avatar Oct 01 '20 06:10 neelansh15

I will wait for the owner, before PRing

dev-abir avatar Oct 01 '20 06:10 dev-abir

okay I will add this in recursion directory

dev-abir avatar Oct 01 '20 06:10 dev-abir

Hi, I have made directory restructure for mathematics related algorithms please check it out before PR. Thank you.

ephremdeme avatar Oct 01 '20 07:10 ephremdeme

@ephremdeme Hi. I've made the directory changes to PR #109. Please review it

neelansh15 avatar Oct 01 '20 07:10 neelansh15

@ephremdeme I have made necessary changes, please review it.

dev-abir avatar Oct 01 '20 07:10 dev-abir

Can I do this in C and python??

Nivedita-coder avatar Oct 01 '20 21:10 Nivedita-coder

Added code for gcd and lcm in cpp

himanshi2608 avatar Oct 02 '20 12:10 himanshi2608

I can do this in C and Python

Pal-Sandeep avatar Sep 26 '22 07:09 Pal-Sandeep