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

Method checkWord

javascript/0212-word-search-ii.js:68–73  ·  view source on GitHub ↗
(node, words)

Source from the content-addressed store, hash-verified

66 }
67
68 checkWord(node, words) {
69 if (!node.word.length) return;
70
71 words.push(node.word);
72 node.word = '';
73 }
74
75 backTrack(board, row, rows, col, cols, node, words) {
76 const char = board[row][col];

Callers 1

dfsMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected