Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
32
var
initMemo = (s, t) =>
33
new
Array(s.length).fill().map(() =>
new
Array(t.length).fill(null));
34
35
var
dfs = (s, t, i, j, memo) => {
36
const
left = numDistinct(
Callers
1
numDistinct
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected