Problem 46093. GCD
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
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 Solvers24
Suggested Problems
-
Set some matrix elements to zero
352 Solvers
-
160 Solvers
-
Matlab Basics - Absolute Value
463 Solvers
-
Finding an element in a vector
151 Solvers
-
2498 Solvers
More from this Author149
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!