Implementation of trie

how is if(temp->children.count[ch) working in line 29; what is the use of .count(ch) ?

Hi @Vibhuti0206
In this line we check if there is a children of temp present or not. Children here is an unordered map and count keyword returns if ch is present as children of temp or not.