MCPcopy Create free account
hub / github.com/algorithm004-03/algorithm004-03 / trap

Function trap

Week 05/id_198/LeetCode_42_198.go:5–42  ·  view source on GitHub ↗

https://leetcode-cn.com/problems/trapping-rain-water 接雨水: 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。

(height []int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Test_trapFunction · 0.70

Calls

no outgoing calls

Tested by 1

Test_trapFunction · 0.56