Knapsack Problem in DP.
0 1 Knapsack
A thief robbing a store and can carry a maximal weight of W into his knapsack. There are N items and ith item weigh wi and is value vi. What is the maximum value V, that thief can take ? Input Format : Line 1 : N i.e. number of items Line 2 : N Integers i.e. weights of items separated by space Line 3 : N Integers i.e. values of items separated by space Line 4 : Integer W i.e. maximum weight thief can carry Output Format : Line 1 : Maximum value V Constraints 1 <= N <= 20 1<= wi <= 100 1 <= vi <= 100 Sample Input 1 : 4 1 2 4 5 5 4 8 6 5 Sample Output : 13
Have you read the [Contributing Guidelines on Pull Requests] Yes
Happy Coding :)
I will try to work on this issue in Cpp/Python as I'm well versed in both. Only if both cannot be provided I'll work with C as that is the label. Gopika Murali Participant at Contributor's Hack '20, HakinCodes
I would like to work on this issue in Cpp and Python as a part of HakinCodes @Kajol-Kumari .
I would like to contribute in c++ as a part of HakinCodes 2020
I would like to contribute in c++ as a part of HakinCodes 2020
I am assigning the Issue to you @pragyajaiswa05l in C++ and to @peeky1811 in Python
@Nistha-tech You cannot work on it yet, as you have two issues under your belt now.
I would like to contribute in C language as a part of HakinCodes 2020
I would like to work on this issue using the C and Java language. @Kajol-Kumari
I would like to work on this issue in C++ as part of HaikinCodes Contributor's Hack 2020
Can I take it up in Java?
I would love to solve knapsack problem in C or C++.
@HarshCasper @atarax665 is this issue still available in Java.
Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Telegram or ping one of the reviewers. Thank you for your contributions!