Rod Cutting
A rod of length n can be cut into integer pieces; price[i] is the price of a piece of length i+1. Print the maximum total price.
Constraints
1 <= n <= 1000
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.