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

Function initTabu

javascript/1143-longest-common-subsequence.js:90–92  ·  view source on GitHub ↗
(text1, text2)

Source from the content-addressed store, hash-verified

88};
89
90var initTabu = (text1, text2) =>
91 new Array((text1.length + 1)).fill() /* Time O(N) | Space O(N) */
92 .map(() => new Array((text2.length + 1)).fill(0));/* Time O(M) | Space O(M) */
93
94var search = (text1, text2, tabu) => {
95 const [ n, m ] = [ text1.length, text2.length ];

Callers 2

longestCommonSubsequenceFunction · 0.70
searchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected