MCPcopy Index your code
hub / github.com/betomoedano/JavaScript-Coding-Interview-Questions / add

Method add

graphs/boggle-board.js:7–14  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

5 this.endSymbol = "*";
6 }
7 add(string) {
8 let currentNode = this.root;
9 for (const char of string) {
10 if (!currentNode.hasOwnProperty(char)) currentNode[char] = {};
11 currentNode = currentNode[char];
12 }
13 currentNode[this.endSymbol] = string;
14 }
15}
16
17function boggleBoard(board, words) {

Callers 9

boggleBoardFunction · 0.95
distinctNamesFunction · 0.45
twoNumberSumMethod · 0.45
zeroSumSubarrayFunction · 0.45
hasUniqueCharactersFunction · 0.45
hasUniqueCharactersSetFunction · 0.45
firstDuplicateValueFunction · 0.45
dijkstrasAlgorithmFunction · 0.45
backtrackFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected