MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / ExampleKnapsack

Function ExampleKnapsack

dynamic/knapsack_test.go:35–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func ExampleKnapsack() {
36 fmt.Print(dynamic.Knapsack(10, []int{4, 5, 8}, []int{50, 15, 60}))
37 //Output:65
38}

Callers

nothing calls this directly

Calls 1

KnapsackFunction · 0.92

Tested by

no test coverage detected