0

Finding GCD

How can I find greatest common divisor using recursion in java ?I tried a lot of times and could not think of any algorithm. Thanks in advance.

25th Jul 2020, 6:46 AM
H-J
H-J - avatar
1 Resposta
+ 3
Use Euclid algorithm GCD(a, 0) =a Try to make b shorter by dividing b by a using recursion
25th Jul 2020, 7:37 AM
Aayush $aini
Aayush $aini - avatar
Quente hoje
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
help
0 Votes
AI
2 Votes
APIs
1 Votes