MCPcopy Create free account
hub / github.com/Reaper622/DataStructure-Algorithm-TS / trap

Function trap

DataStructure/Array/Trap.ts:6–32  ·  view source on GitHub ↗

* 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。 * @param {number[]} height * @return {number}

(height: number[])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Array.test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected