diff --git a/InterviewBit/Greatest Common Divisor.cpp b/InterviewBit/Greatest Common Divisor.cpp index 7ba8122..0615267 100644 --- a/InterviewBit/Greatest Common Divisor.cpp +++ b/InterviewBit/Greatest Common Divisor.cpp @@ -17,4 +17,7 @@ int Solution::gcd(int a, int b) b %= a; } return b; -} \ No newline at end of file +} +// Another method is just, use a Standard template library to make code much easier +#include +int ans = __gcd(a,b);