MCPcopy Create free account
hub / github.com/austingebauer/go-leetcode / mapValuesLessThanOne

Function mapValuesLessThanOne

minimum_window_substring_76/solution.go:46–53  ·  view source on GitHub ↗
(m map[string]int)

Source from the content-addressed store, hash-verified

44}
45
46func mapValuesLessThanOne(m map[string]int) bool {
47 for _, v := range m {
48 if v > 0 {
49 return false
50 }
51 }
52 return true
53}
54
55// Initial solution. Pretty close, but overly complicated
56// and assumed that duplicates of t were not allowed, meaning

Callers 1

minWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected