Skip to content

Commit 47a8499

Browse files
add math folder and gcd algorithm
1 parent 4cb0741 commit 47a8499

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

allalgorithms/math/gcd.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def gcd(x, y):
2+
if x == 0 :
3+
return y
4+
5+
return gcd(y%x, x)

allalgorithms/math/lcm.py

Whitespace-only changes.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy