logo

Crowdly

Browser

Add to Chrome

Quelle est la complexité algorithmique en temps de la fonction suivante ? What...

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

Quelle est la complexité algorithmique en temps de la fonction suivante ?

What is the algorithmic time complexity of the following function?

public void fonction(int[][] matrice) {

int n = matrice.length;

for (int i = 0; i < n; i++) {

int m = matrice[i].length;

int moyenne;

for (int j = 0; j < m; j++) {

moyenne += matrice[i][j];

}

moyenne = moyenne / m;

System.out.println(moyenne + "\n");

}

}

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

Want instant access to all verified answers on moodle-ovh.isep.fr?

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

Browser

Add to Chrome