I am currently trying to search for the values associated with agiven string in Trie. For example, let consider this trie:

Here are my code so far:

If I want to search for hit with an exactMatchOnly of true, itwould return {1,2} or {2,1}
std::vector<int> result1 = trie.find(“hit”, true); //returns {1, 2} or {2, 1}
but, if I would like to search for hit with an exactMatchOnly of false, it would return values of {1, 2, 10, 20, 7, 8, 9}.
std::vector<int> result2 = trie.find(“hit”, false); //returns {1, 2, 10, 20, 7, 8, 9}
The reason is that the {1,
PayPal Gateway not configured
PayPal Gateway not configured