Análise de complexidade - UFMG
Análise de complexidade - UFMG
Análise de complexidade - UFMG
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
-<br />
-<br />
-<br />
1<br />
n<br />
n(n+1)/2<br />
n(n+1)/2<br />
n(n-1)/2<br />
n(n-1)/2<br />
-<br />
-<br />
void e2(int n)<br />
{<br />
int i, j, x, y;<br />
x = y = 0;<br />
for(i = 1; i