β
Correct Answer: (C)
t(n) = t(n-1) + n
Explanation: function to find the minimum element index takes n time.the recursive call is made to one less element than in the previous call so the overall recurrence relation becomes t(n) = t(n-1) + n.
Explanation by: Mr. Dubey
function to find the minimum element index takes n time.the recursive call is made to one less element than in the previous call so the overall recurrence relation becomes t(n) = t(n-1) + n.
Discussion
Question Analytics
790
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
87%
Success Rate