This commit is contained in:
Mahdi Dibaiee
2015-07-26 14:27:33 +04:30
parent 10fd1038fc
commit c459136de8
11 changed files with 28 additions and 6 deletions

View File

@@ -39,6 +39,7 @@ class Trie {
findWords(value, parent = this.root) {
let top = this.find(value, parent);
if (!top) return [];
let words = [];