int i=1; int[] a; for(i=1;i

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/30 04:10:47

int i=1; int[] a; for(i=1;i

i初始化为1,循环体里执行了11次
是个常数,因此复杂度是O(1)
懂了么?