MCPcopy 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

3import "fmt"
4
5func main() {
6 fmt.Println(subarraySum([]int{1, 1, 1}, 2))
7}
8
9func subarraySum(nums []int, k int) int {
10 sumFreq := map[int]int{0: 1}

Callers

nothing calls this directly

Calls 1

subarraySumFunction · 0.85

Tested by

no test coverage detected