Computer Science, asked by thdhdkkeishdbdb, 9 months ago

int a = 0, b = 0;

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

a = a + rand();
}

for (j = 0; j < k; j++) {

b = b + rand();
} complexity of this

Answers

Answered by Anonymous
0

Answer:

The first loop is O(N) and the second loop is O(M). Since we don't know ... int a = 0; ... j * 2) {. k = k + n / 2;. }.

Similar questions