retagged by
411 views
1 votes
1 votes
A binary search algorithm is implemented using recurrsion

then what is the space and time complexity?
retagged by

1 Answer

Related questions

1 votes
1 votes
1 answer
1
53 votes
53 votes
5 answers
3
Kathleen asked Sep 22, 2014
19,151 views
double foo(int n) { int i; double sum; if(n == 0) { return 1.0; } else { sum = 0.0; for(i = 0; i < n; i++) { sum += foo(i); } return sum; } }The space complexity of the a...
2 votes
2 votes
1 answer
4