Update Knapsack.java (#2137)

This commit is contained in:
Serwio YK 2021-03-14 03:41:31 +02:00 committed by GitHub
parent aa8858b57a
commit 34c5edd11e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,6 @@ public class Knapsack {
int val[] = new int[] {50, 100, 130};
int wt[] = new int[] {10, 20, 40};
int W = 50;
int n = val.length;
System.out.println(knapSack(W, wt, val, n));
System.out.println(knapSack(W, wt, val, val.length));
}
}