Let \(T(n)\) be defined by \(T(1)=10\) and \(T(n+1)=2n+T(n)\) for all integers \(n \geq 1\). Which of the following represents the order of growth of \(T(n)\) as a function of n?
- A\(O(n)\)
- B\(O(n \log n)\)
- C\(O(n^2)\)
- D\(O(n^3)\)
Solve it on GATE DA practice →More Searching & Sorting Algorithms problems