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

Function isDP

javascript/0678-valid-parenthesis-string.js:93–93  ·  view source on GitHub ↗
(dp, i, k)

Source from the content-addressed store, hash-verified

91var isClosed = (char) => char === ')';
92const isKEqual = (k, i, size) => k === i + size;
93const isDP = (dp, i, k) => dp[i][k];
94
95/**
96 * Time O(N) | Space O(1)

Callers 2

checkValidStringFunction · 0.85
checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected