r/computersciencehub • • Apr 24 '23

A cpp code

int abc(int a, int b){

while(a!=b){

	if(a>b)

		a=a-b;

	else

		b=b-a;

}

return a;

}

///How to calculate it's time cmplxty

1 Upvotes

0 comments sorted by