Logically correct Delete operation in Tries not working
struct TrieNode { struct TrieNode *children[ALPHABET_SIZE]; int childCount;//represents number of children of the node (not words with the value) // isEndOfWord is true if the node represents end of a word bool isEndOfWord; }; typedef struct TrieNode trienode; bool delete(trienode *root,const char *key,int level) { if(level==strlen(key)) { if(root->childCount==0) { free(root); // Free the memory for […]