Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
82
const
hasNewMax = (max, height) => max < height;
83
84
const
getHeights = (height, left, right) => [height[left], height[right]];
85
Callers
1
trap
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected