Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Rod Cutting Problem using Dynamic Programming #20

Open
Remorax opened this issue Oct 13, 2017 · 0 comments
Open

Code Rod Cutting Problem using Dynamic Programming #20

Remorax opened this issue Oct 13, 2017 · 0 comments

Comments

@Remorax
Copy link

Remorax commented Oct 13, 2017

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 :)

This was referenced Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant