Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Go
/ Max
Function
Max
dynamic/knapsack.go:14–16 ·
view source on GitHub ↗
Max function - possible duplicate
(a, b int)
Source
from the content-addressed store, hash-verified
12
13
// Max function - possible duplicate
14
func
Max(a, b int) int {
15
return
int(math.Max(float64(a), float64(b)))
16
}
17
18
// Knapsack solves knapsack problem
19
// return maxProfit
Callers
6
Knapsack
Function · 0.85
LongestCommonSubsequence
Function · 0.85
CutRodRec
Function · 0.85
CutRodDp
Function · 0.85
lpsRec
Function · 0.85
LpsDp
Function · 0.85
Calls
1
Max
Method · 0.65
Tested by
no test coverage detected