From e3f7e9c09ab4b432ad2b034c35ff3610d0806268 Mon Sep 17 00:00:00 2001 From: Deepika024 <44196112+Deepika024@users.noreply.github.com> Date: Tue, 8 Oct 2019 23:34:37 +0530 Subject: [PATCH] Increased understandability of code --- Dictionary/dictionary.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dictionary/dictionary.cpp b/Dictionary/dictionary.cpp index a7b3e1d..a0e5f6c 100644 --- a/Dictionary/dictionary.cpp +++ b/Dictionary/dictionary.cpp @@ -95,6 +95,15 @@ void Dictionary::search(string word) } bool Dictionary:: isEmpty(TrieNode* temp) { + /* + objective: checks whether dictionary is empty + + input parameters: root node of trie + + output value: 0- if dictionary is not empty + 1- if dictionary is empty + + */ int i; for(i=0;ichildren[i])