MCQ
Q.
Time complexity of given algorithm Algorithm:
Sum(A,S)
{
for i:=1 to n-1
{
for j:=2 to n-1
{
S:=S+i+j;
return S;
}
}
}
Correct Answer: D
None.