mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-09 15:43:48 +08:00
Update dynamic_programming/cut_rod.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -34,7 +34,7 @@ namespace dynamic_programming {
|
||||
*/
|
||||
namespace cut_rod {
|
||||
/**
|
||||
* @brief maxProfitByCuttingRod function 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.
|
||||
* @param n size of the rod in inches
|
||||
* @param price an array of prices that contains prices of all pieces of size<=n
|
||||
|
||||
Reference in New Issue
Block a user