Problem 46093. GCD
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
Dyuman Joshi
on 5 Dec 2020
The solution is a bit flawed as it works for the limited test cases in this problem.
A classic approach was to take intersection of factors of a and b, and take their product. This works perfectly on paper. However, the inbuilt intersect() function gives unique values discarding the repeated values, thus I was not able to use it.
Problem Recent Solvers29
Suggested Problems
-
Number of 1s in a binary string
6523 Solvers
-
Find the maximum two numbers of every column of a matrix
177 Solvers
-
415 Solvers
-
310 Solvers
-
118 Solvers
More from this Author165
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!