From 58358ea289e198cbfe94f2794350fc86c132e26b Mon Sep 17 00:00:00 2001 From: mohit0312 <44519237+mohit0312@users.noreply.github.com> Date: Wed, 9 Oct 2019 00:01:16 +0530 Subject: [PATCH] documentation of function clear --- Dictionary/dictionary.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dictionary/dictionary.cpp b/Dictionary/dictionary.cpp index a7b3e1d..1a2090a 100644 --- a/Dictionary/dictionary.cpp +++ b/Dictionary/dictionary.cpp @@ -133,6 +133,14 @@ void Dictionary::remove(string word) TrieNode* Dictionary::clearDictionary(TrieNode *temp) { + /* + objective: to erase/clear the dictionary i.e each and every word and its meaning from the dictionary + + input parameters: root node of the dictionary + + output value: none + + */ for(int i=0;ichildren[i])