Skip to content

Commit 0cf4734

Browse files
Update Unbounded_0_1_Knapsack.cpp
1 parent 4f17fb8 commit 0cf4734

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dynamic_programming/Unbounded_0_1_Knapsack.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ namespace unbounded_knapsack {
4848
* @param i Current index in the value and weight vectors.
4949
* @param W Remaining capacity of the knapsack.
5050
* @param val Vector of values corresponding to the items.
51+
* @note "val" data type can be changed according to the size of the input.
5152
* @param wt Vector of weights corresponding to the items.
53+
* @note "wt" data type can be changed according to the size of the input.
5254
* @param dp 2D vector for memoization to avoid redundant calculations.
5355
* @return The maximum value that can be obtained for the given index and capacity.
5456
*/

0 commit comments

Comments
 (0)