You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a rod of length N, and a price array P, such that p[i] is the cost of selling a rod of length i, find the maximum price for which the rod can be sold, by cutting it into an appropriate number of pieces