✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Визначити складність алгоритму
void f3(int n){
for (int i=0; i<n; i++){
if (i%2)
for (int j=0; j<n; j++)
func1(); // виклик функції θ(1);
else
for (int j=0; j<n; j++)
func2(); // виклик функції θ(1);
}
}