Skip to content

Commit 5b7bdfd

Browse files
Remove unnecessary code from unique-word-count
1 parent c60b5ef commit 5b7bdfd

File tree

1 file changed

+0
-9
lines changed
  • src/_DataStructures_/Trees/Trie/unique-word-count

1 file changed

+0
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/* eslint-disable no-unused-vars */
2-
const Trie = require('../index');
3-
41
function uniqueWordCount(root) {
52
let result = 0;
63
if (root.isEndOfWord) {
@@ -14,10 +11,4 @@ function uniqueWordCount(root) {
1411
return result;
1512
}
1613

17-
// const words = ['bed', 'ball', 'apple', 'java', 'javascript', 'bed'];
18-
// const trie = new Trie();
19-
20-
// words.forEach(word => trie.insert(word));
21-
// console.log(uniqueWordCount(trie.root));
22-
2314
module.exports = uniqueWordCount;

0 commit comments

Comments
 (0)