Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In CMPINF 401 we taught you that if you CAN write it in a loop you SHOULD use a loop instead of using recursion,
In CMPINF 401 we taught you that if you CAN write it in a loop you SHOULD use a loop instead of using recursion, especially on big input. Why? A: recursion is harder to write and therefore harder to debug always use the tool you know best B: recursion will run extremely slow even on tiny inputs. C: recursion uses up stack space proportional to the input size whereas loops don't D: they are all true A B C
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started