Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
76
func
max(a, b int) int {
77
if
a > b {
78
return
a
79
}
80
return
b
81
}
Callers
9
max_area_brute_force
Method · 0.85
max_area_two_pointers
Method · 0.85
find_max_average_brute_force
Method · 0.85
find_max_average_sliding_window
Method · 0.85
length_of_longest_substring_sliding_window
Method · 0.85
length_of_longest_substring_sliding_window_frequency_array
Method · 0.85
max_sub_array
Method · 0.85
lengthOfLongestSubstringSlidingWindow
Function · 0.85
lengthOfLongestSubstringSlidingWindowFrequencyArray
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected