I have a recursive function:
void review_func(double val){
if(val>=1.0){
review_func(val/2.0)
}
}
I was able to solve its time complexity using induction and the master theorem. However I am pretty doubtful about the result I got from using induction my solution is shown below:
I am reviewing for my exam and I am quite struggling with time and space complexities any help and tip would be greatly appreciated.