MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / max

Method max

Programs/KnapSack.java:5–8  ·  view source on GitHub ↗
(int a, int b)

Source from the content-addressed store, hash-verified

3public class KnapSack
4{
5 public int max(int a, int b)
6 {
7 return (a > b)?a:b;
8 }
9
10 public int knapSack(int W, int wt[], int val[], int n)
11 {

Callers 3

knapSackMethod · 0.95
MaximumSumMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected