From 0cf4734e60c85406b76d4114c5decba9378a7c04 Mon Sep 17 00:00:00 2001 From: Sanskruti Pravin Yeole <129084275+yeolesanskruti@users.noreply.github.com> Date: Sun, 13 Oct 2024 12:03:01 +0530 Subject: [PATCH] Update Unbounded_0_1_Knapsack.cpp --- dynamic_programming/Unbounded_0_1_Knapsack.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dynamic_programming/Unbounded_0_1_Knapsack.cpp b/dynamic_programming/Unbounded_0_1_Knapsack.cpp index 4bd706c9c6..00472873a2 100644 --- a/dynamic_programming/Unbounded_0_1_Knapsack.cpp +++ b/dynamic_programming/Unbounded_0_1_Knapsack.cpp @@ -48,7 +48,9 @@ namespace unbounded_knapsack { * @param i Current index in the value and weight vectors. * @param W Remaining capacity of the knapsack. * @param val Vector of values corresponding to the items. + * @note "val" data type can be changed according to the size of the input. * @param wt Vector of weights corresponding to the items. + * @note "wt" data type can be changed according to the size of the input. * @param dp 2D vector for memoization to avoid redundant calculations. * @return The maximum value that can be obtained for the given index and capacity. */