MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / min

Function min

go/0152-maximum-product-subarray.go:22–27  ·  view source on GitHub ↗

Golang does not have a built-in min for integers

(a int, b int)

Source from the content-addressed store, hash-verified

20
21// Golang does not have a built-in min for integers
22func min(a int, b int) int {
23 if (a < b) {
24 return a
25 }
26 return b
27}

Callers 1

maxProductFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected