Skip to content

Code Rod Cutting Problem using Dynamic Programming #20

@Remorax

Description

@Remorax

Problem:
Given a Rod of length N and an array A containing prices of all pieces of size lesser than N.
Find the maximum value which can be achieved by cutting the rod and selling the pieces.

Input Format:
First line contains the size of rod N
Second line contains the array A_1,A_2,... A_(n-1)
A_i stores the price of rod of length i

Output Format:
Output the answer to the above problem on first line.

I would like to work on this problem :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions