ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Is the space consumed by the linear search(recursive) and linear search(iterative) same?
Correct Answer: A — No, recursive algorithm consumes more space
The recursive algorithm consumes more space as it involves the usage the stack space(calls the function numerous times).