Skip to content

Commit f56ecf1

Browse files
committed
Added question
1 parent e107583 commit f56ecf1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dynamic Programming/Knapsack_greedyMethod.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*Write program to find the maximum profit and the solution vector for Knapsack problem.
2+
Consider the following constraints for knapsack. N=3, M=20
3+
Profit : 25 24 15
4+
Weight : 18 15 10
5+
*/
6+
17
#include<stdio.h>
28
#include<conio.h>
39
int main(){

0 commit comments

Comments
 (0)