Update dynamic_programming/cut_rod.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Pardeep Bhatt
2020-09-26 00:58:15 +05:30
committed by GitHub
parent 631691d0c8
commit 02cdd500c1

View File

@@ -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