Distinguish nodes in a TRIE tree

Asked

Viewed 111 times

2

I have a multi-word TRIE tree (dictionary function), in the node that is the last character of the word I need to have a "type" inside this node. I need to distinguish what kind of word each is, so I need something that at the end of each word (last knot) I have a variable or something of the type, to know what the type of word is. How can I do that?

  • 1

    Post the code you already have, so it’s easier to help.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.