Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VanjaRo/LeetCode
/ main
Function
main
tasks/560.go:5–7 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
3
import
"fmt"
4
5
func
main() {
6
fmt.Println(subarraySum([]int{1, 1, 1}, 2))
7
}
8
9
func
subarraySum(nums []int, k int) int {
10
sumFreq :=
map
[int]int{0: 1}
Callers
nothing calls this directly
Calls
1
subarraySum
Function · 0.85
Tested by
no test coverage detected