logo

Crowdly

Browser

Add to Chrome

What is the time complexity of the below function? void fun( int n, int ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the time complexity of the below function?

void fun(int n, int arr[]){    int i = 0, j = 0;    for(; i < n; ++i)        while(j < n && arr[i] < arr[j])            j++;}

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on training.saveetha.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome