Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 53d3e18

Browse files
committed
Commented code in index.js
1 parent d7000fb commit 53d3e18

File tree

1 file changed

+4
-4
lines changed
  • src/_DataStructures_/Trees/Trie/total-words-in-trie

1 file changed

+4
-4
lines changed

‎src/_DataStructures_/Trees/Trie/total-words-in-trie/index.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ function totalWords(root) {
1414
return result;
1515
}
1616

17-
const words = ['bed', 'ball', 'apple', 'java', 'javascript', 'bed'];
18-
const trie = new Trie();
17+
// const words = ['bed', 'ball', 'apple', 'java', 'javascript', 'bed'];
18+
// const trie = new Trie();
1919

20-
words.forEach(word => trie.insert(word));
21-
console.log(totalWords(trie.root));
20+
// words.forEach(word => trie.insert(word));
21+
// console.log(totalWords(trie.root));
2222

2323
module.exports = totalWords;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /