Skip to content

Commit e99d523

Browse files
Update Unbounded_0_1_Knapsack.cpp
1 parent ddf1857 commit e99d523

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dynamic_programming/Unbounded_0_1_Knapsack.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ int unboundedKnapsack(std::uint16_t N, std::uint16_t W,
9090
return KnapSackFilling(N - 1, W, val, wt, dp); // Start the calculation
9191
}
9292

93+
} // unbounded_knapsack
94+
95+
} // dynamic_programming
96+
9397
/**
9498
* @brief Function to run test cases for the unbounded knapsack implementation.
9599
*
@@ -145,5 +149,3 @@ int main() {
145149
return 0;
146150
}
147151

148-
}
149-
}

0 commit comments

Comments
 (0)