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

Function min

patterns/go/two_pointers.go:64–69  ·  view source on GitHub ↗

Helper function to return the minimum of two integers

(a, b int)

Source from the content-addressed store, hash-verified

62
63// Helper function to return the minimum of two integers
64func min(a, b int) int {
65 if a < b {
66 return a
67 }
68 return b
69}

Callers 4

max_area_brute_forceMethod · 0.85
max_area_two_pointersMethod · 0.85
maxAreaBruteForceFunction · 0.85
maxAreaTwoPointersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected