added right funtion name in comments

This commit is contained in:
Pardeep Bhatt
2020-09-26 00:44:20 +05:30
parent 058b2ab438
commit 631691d0c8

View File

@@ -34,8 +34,8 @@ namespace dynamic_programming {
*/
namespace cut_rod {
/**
* @brief cut_rod function cuts the rod in different pieces and stores the
* maximum profit for each piece of the rod.
* @brief maxProfitByCuttingRod function 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
* @return maximum profit obtainable for @param n inch rod.