Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Dictionary/dictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;i<ALPHABETS;i++)
{
if(temp->children[i])
Expand Down