MCPcopy Create free account
hub / github.com/VanjaRo/LeetCode / main

Function main

tasks/42.go:5–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import "fmt"
4
5func main() {
6 fmt.Print(trap([]int{4, 2, 0, 3, 2, 5}))
7}
8
9func trap(height []int) int {
10 left := 0

Callers

nothing calls this directly

Calls 2

trapFunction · 0.85
PrintMethod · 0.80

Tested by

no test coverage detected