From 7c72be7b2a969d5f91828bdb5079e47368443ebb Mon Sep 17 00:00:00 2001 From: mohit0003 <31645375+mohit0003@users.noreply.github.com> Date: Tue, 8 Oct 2019 23:43:54 +0530 Subject: [PATCH] documentation of function remove --- Dictionary/dictionary.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dictionary/dictionary.cpp b/Dictionary/dictionary.cpp index a7b3e1d..f8b1f17 100644 --- a/Dictionary/dictionary.cpp +++ b/Dictionary/dictionary.cpp @@ -126,6 +126,14 @@ TrieNode* Dictionary::removeUtil(TrieNode*temp,string word,int depth=0) void Dictionary::remove(string word) { + /* + objective: to remove/delete a word and its meaning from the dictionary + + input parameters: word to be deleted + + output value: none + + */ removeUtil(root,word); cout<<"\n\tThe word \""<