執(zhí)行下面程序段時,S語句的執(zhí)行次數(shù)為()
A.n(n-1)/2 B.n2/2 C.n
下面程序段的時間復(fù)雜性的量級為()
A.O(m3) B.O(n2) C.O(m*n) D.O(m+n)
A.O(n/2) B.O(logn) C.O(n) D.O(n1/2)