ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Which property is shown by line 7 of the above code?
Correct Answer: A — Optimal substructure
We find the nth fibonacci term by finding previous fibonacci terms, i.e. by solving subproblems. Hence, line 7 shows the optimal substructure property.