Код: Выделить всё
void foo(int n){
n=n*n;
for (int i=0;i
Подробнее здесь: [url]https://stackoverflow.com/questions/78699264/what-is-the-time-complexity-of-a-function-if-there-is-an-upper-limit-to-the-vari[/url]Код: Выделить всё
void foo(int n){
n=n*n;
for (int i=0;i
Подробнее здесь: [url]https://stackoverflow.com/questions/78699264/what-is-the-time-complexity-of-a-function-if-there-is-an-upper-limit-to-the-vari[/url]