From 571d9312cdc22004549704703445d2999b7b1e53 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Tue, 21 Aug 2018 23:03:04 +0300 Subject: [PATCH] Fix trie's doesWordExists method. --- src/data-structures/trie/Trie.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/data-structures/trie/Trie.js b/src/data-structures/trie/Trie.js index 39f25820..631ea113 100644 --- a/src/data-structures/trie/Trie.js +++ b/src/data-structures/trie/Trie.js @@ -39,6 +39,8 @@ export default class Trie { } /** + * Check if complete word exists in Trie. + * * @param {string} word * @return {boolean} */