MCQOPTIONS
Saved Bookmarks
| 1. |
Consider the following code to find the nth fibonacci term using dynamic programming: Which property is shown by line 7 of the above code? |
| A. | Optimal substructure |
| B. | Overlapping subproblems |
| C. | Both overlapping subproblems and optimal substructure |
| D. | Greedy substructureView Answer |
| Answer» B. Overlapping subproblems | |