Loading practice questions
Is the space consumed by the linear search(recursive) and linear search(iterative) same?
Correct Answer: A — No, recursive algorithm consumes more space
Explanation:
The recursive algorithm consumes more space as it involves the usage the stack space(calls the function numerous times).