Given a rod of length n inches and an array of prices (pi, for i = 1...n)

Posted Date: