added documentation for template parameter

This commit is contained in:
Pardeep Bhatt
2020-09-26 01:08:11 +05:30
parent 9681e86569
commit 29bd27c076

View File

@@ -36,7 +36,7 @@ namespace cut_rod {
/**
* @brief Cuts the rod in different pieces and
* stores the maximum profit for each piece of the rod.
* @tparam T description
* @tparam T size of the price array
* @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.