sty*_*fle 1 algorithm big-o for-loop
这个算法的运行时间是多少:
for i=1 to n^2
for j=1 to i
// some constant time operation
Run Code Online (Sandbox Code Playgroud)
我想说O(n ^ 4)但我不能确定.你怎么知道这个?
| 归档时间: |
|
| 查看次数: |
1673 次 |
| 最近记录: |