logo

Crowdly

Browser

Add to Chrome

Оцените временную сложность привденного фрагмента кода: CPP: int a = 0; fo...

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

Оцените временную сложность привденного фрагмента кода:

CPP:

int a = 0;

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

for (j = N; j > i; j--) {

a = a + i + j;

}

}

Python:

a = 0

for i in range(N):

for j in reversed(range(i,N)):

a = a + i + j

More questions like this

Want instant access to all verified answers on moodle.siriusuniversity.ru?

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

Browser

Add to Chrome