Update appNew update is available. Click here to update.
About
GVP College of Engineering (Autonomous) 2025
My Stats
EXP gained
yellow-spark
2570
Level
5 (Champion)
Community stats
Discussions
0
Upvotes
0
Know more
Weekend contest rating
Contest attended
Problems solved
2021 2023
Better than %
Weekend contest rating
Contest attended
Problems solved
2021 2023
Better than %
39
Total problems solved
37
Easy
2
Moderate
0
Hard
0
Ninja
Jan Jan Feb Feb Mar Mar Apr Apr May May Jun Jun Jul Jul Aug Aug Sep Sep Oct Oct Nov Nov Dec Dec

Current streak:

0 days

Longest streak:

8 days

Less

More

Discussions
optimal solution [Using Euclidean's Theorem] C++
Interview problems

int gcd(int a,int b)

{

    //Write your code here

 

    while(a > 0 && b > 0){

        if(a > b) a = a % b;

        else b = b % a;

    }

    if(a == 0) return b;

    return a;

    

}

profile
uyyalanavin
Published On 16-Oct-2023
70 views
0 replies
0 upvotes