mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update dynamic_programming/cut_rod.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
02cdd500c1
commit
9681e86569
@ -36,6 +36,7 @@ namespace cut_rod {
|
|||||||
/**
|
/**
|
||||||
* @brief Cuts the rod in different pieces and
|
* @brief Cuts the rod in different pieces and
|
||||||
* stores the maximum profit for each piece of the rod.
|
* stores the maximum profit for each piece of the rod.
|
||||||
|
* @tparam T description
|
||||||
* @param n size of the rod in inches
|
* @param n size of the rod in inches
|
||||||
* @param price an array of prices that contains prices of all pieces of size<=n
|
* @param price an array of prices that contains prices of all pieces of size<=n
|
||||||
* @return maximum profit obtainable for @param n inch rod.
|
* @return maximum profit obtainable for @param n inch rod.
|
||||||
|
Loading…
Reference in New Issue
Block a user