logo

Crowdly

Browser

Add to Chrome

What is the time, space complexity of following code: int a = 0, b = 0; for (...

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

What is the time, space complexity of following code:

int a = 0, b = 0;

for (i = 0; i < N; i++) 

{

a = a + rand();

}

for (j = 0; j < M; j++) 

{

b = b + rand();

}

0%
0%
0%
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