1.

Consider the following recursive implementation of the rod cutting problem: Complete the above code.

A. max_price, prices[i] + rod_cut(prices,len – i – 1)
B. max_price, prices[i – 1].
C. max_price, rod_cut(prices, len – i – 1)
D. max_price, prices[i – 1] + rod_cut(prices,len – i – 1)View Answer
Answer» B. max_price, prices[i – 1].


Discussion

No Comment Found