设某算法的时间复杂度函数的递推方程是 T(n) = T(n - 1) + n(n 为正整数)及 T(0) = 1,则该算法的时间复杂度为()

A.O(log n) B.O(n log n) C.O(n) D.O(n的平方)

时间:2024-05-23 17:21:21

相似题目