We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f17fb8 commit 0cf4734Copy full SHA for 0cf4734
dynamic_programming/Unbounded_0_1_Knapsack.cpp
@@ -48,7 +48,9 @@ namespace unbounded_knapsack {
48
* @param i Current index in the value and weight vectors.
49
* @param W Remaining capacity of the knapsack.
50
* @param val Vector of values corresponding to the items.
51
+ * @note "val" data type can be changed according to the size of the input.
52
* @param wt Vector of weights corresponding to the items.
53
+ * @note "wt" data type can be changed according to the size of the input.
54
* @param dp 2D vector for memoization to avoid redundant calculations.
55
* @return The maximum value that can be obtained for the given index and capacity.
56
*/
0 commit comments