β
Correct Answer: (B)
iterative code requires less space
Explanation: both iterative and recursive approach can be implemented in log n time but the recursive code requires memory in call stack which makes it less preferable.
Explanation by: Mr. Dubey
both iterative and recursive approach can be implemented in log n time but the recursive code requires memory in call stack which makes it less preferable.
Discussion
Question Analytics
934
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
94%
Success Rate