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

Function initTabu

javascript/0097-interleaving-string.js:146–151  ·  view source on GitHub ↗
(s1, s2)

Source from the content-addressed store, hash-verified

144};
145
146var initTabu = (s1, s2) =>
147 new Array(s1.length + 1)
148 .fill() /* Time O(N) | Space O(N) */
149 .map(() =>
150 new Array(s2.length + 1).fill(null),
151 ); /* Time O(M) | Space O(M) */
152
153var search = (s1, s2, s3, tabu) => {
154 const [rows, cols] = [s1.length, s2.length];

Callers 1

isInterleaveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected