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

Function initMemo

javascript/0115-distinct-subsequences.js:32–33  ·  view source on GitHub ↗
(s, t)

Source from the content-addressed store, hash-verified

30};
31
32var initMemo = (s, t) =>
33 new Array(s.length).fill().map(() => new Array(t.length).fill(null));
34
35var dfs = (s, t, i, j, memo) => {
36 const left = numDistinct(

Callers 1

numDistinctFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected