✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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[] notes) {
int moyenne = 0;
int n = notes.length;
for (int i = 0; i < n; i++) {
moyenne += notes[i];
}
moyenne /= n;
System.out.println(moyenne);
}