MCPcopy Create free account
hub / github.com/betomoedano/JavaScript-Coding-Interview-Questions / constructor

Method constructor

graphs/boggle-board.js:3–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1// Time O (ws + nm*8^s) | Space O(nm + ws)
2class Trie {
3 constructor() {
4 this.root = {};
5 this.endSymbol = "*";
6 }
7 add(string) {
8 let currentNode = this.root;
9 for (const char of string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected