MCPcopy
hub / github.com/ashishps1/awesome-leetcode-resources / max

Function max

patterns/go/sliding_window.go:76–81  ·  view source on GitHub ↗

Helper function to get max of two numbers

(a, b int)

Source from the content-addressed store, hash-verified

74
75// Helper function to get max of two numbers
76func max(a, b int) int {
77 if a > b {
78 return a
79 }
80 return b
81}

Calls

no outgoing calls

Tested by

no test coverage detected