Time Complexity Analysis: "Cost of a Recursive Call"

581 Views Asked by At

When were are talking Time Complexity then as I have understood it. then to perform a while loop that will result in the cost of n(-1)/2 Further more the cost of a for loop is n(n+1)/2 - 1 but what is the cost of a recursive call?