Teaching Haryana (HPSC) Assistant Professor Mock Test 2025 Algorithms Asymptotic Worst Case Time and Time Complexity Introduction
निम्नलिखित C फ़ंक्शन की समय जटिलता ______ है। (मान लें n> 0):
int recursive (int n) {
if (n==1)
return (1); else
return (recursive (n—1) + recursive (n—1)):
}
1
O(n)
2
O(n log n)
3
O(n2)
4
O(2n)