✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
int find_c(int n) int i,j,c
for(i=1; i < n; i=i*3)
for(j=1; j < 900; j=j*3)
c++
for(i=1; i < n*n; i=i*2)
if(odd(random(0...999)))
for(j=n/2; j < n; j++)
c++
else
for(j=400; j > 1; j--)
c++
return c
Mis on antud algoritmi halvima juhu keerukus O-notatsioonis sõltuvalt sisendparameetrist n: