标签:with turn 阶乘 const row factorial inf tor factor
int n = 1000;
System.out.println("Hey - your input is: " + n);
int n = 1000;
System.out.println("Hey - your input is: " + n);
System.out.println("Hmm.. I'm doing more stuff with: " + n);
System.out.println("And more: " + n);
for (int i = 1; i < n; i = i * 2)
{
System.out.println("Hey - I'm busy looking at: " + i);
}
for (int i = 1; i <= n; i++)
{
System.out.println("Hey - I'm busy looking at: " + i);
}
for (int i = 1; i <= n; i++)
{
for (int j = 1; j <=n; j++)
{
System.out.println("Hey - I'm busy looking at: " + i + " and " + j);
}
}
int fib(int n)
{
if (n <= 2)
return n;
return fib(n - 1) + fib(n - 2);
}
注意:只看最高复杂度的运算
标签:with turn 阶乘 const row factorial inf tor factor
原文地址:https://www.cnblogs.com/liugangjiayou/p/12369872.html