下面代码段错误的时间复杂度是()x=0; for(i=1; i<n; i++ )for (j=1; j<=n-i; j++ ) x++

A.O(2n) B.O(n3) C.O(n) D.O(n2)

时间:2023-10-30 13:46:32

相似题目