MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / hasNewMax

Function hasNewMax

javascript/0042-trapping-rain-water.js:82–82  ·  view source on GitHub ↗
(max, height)

Source from the content-addressed store, hash-verified

80};
81
82const hasNewMax = (max, height) => max < height;
83
84const getHeights = (height, left, right) => [height[left], height[right]];
85

Callers 1

trapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected