What is the returned value by the given function below.
Algo fun(n)
{
If(x<=2) return 1;
Else {
Return fun(n1/2) + n;
}
Note : Assume that all the syntax and data type constraints are valid and just check algorithm.
64.3k questions
77.9k answers
244k comments
80.0k users