Tried my hands on Tries : Contacts (https://www.hackerrank.com/challenges/ctci-contacts/problem). Can someone point out a failing test case for it?
I have a memoization based C++ trie solution which calculates the leaves of nodes only as a one off and stores the result in a variable in the node called "leaves". Unfortunately it doesn't pass all tests. Can someone point out a failing test case for it? Thanks in advance.
Here is a discussion thread I opened that contains my code: