logo

Crowdly

Browser

Add to Chrome

Оцените временную сложность привденного фрагмента кода: CPP: int i, j, k =...

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

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

CPP:

int i, j, k = 0;

int a = 0, i = N;

while (i > 0) {

a += i;

i /= 2;

}

Python:

a = 0

i = N

while (i > 0):

a += i

i //= 2

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