Trie Data Structure

In class Node why we have to declare bool terminal ??
what is the use of it ??

basically terminal denotes the end of the word since every node contains a character so if terminal is set to true than that would mean that the character denoted by the node marks the end of a word.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.