Unique Prefix array


can u please tell me what is the error and how can i resolve in my code.

Hey @Pranav7g your implementation is accepted might be some side cases you haven’t considered of. The trie implementation also works fine with all the references.
Take reference from this code


And consider the side cases.