mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2026-03-13 10:02:05 +08:00
change path
This commit is contained in:
@@ -39,3 +39,10 @@ func maxSubArray1(nums []int) int {
|
||||
}
|
||||
return maxSum
|
||||
}
|
||||
|
||||
func max(a int, b int) int {
|
||||
if a > b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user