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
9 changes: 9 additions & 0 deletions Dictionary/dictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;i<ALPHABETS;i++)
if(temp->children[i])
Expand Down