Code Gives error: duplicate class: Trie at


The class name in file must not be “Trie” because class Trie already exists.

Hi @Nirav ,

This is Fatimah Abdullah from Educative. I noticed your feedback here, and I’m glad you reached out to us.

In response to your feedback, thank you for pointing out this issue. I have changed the name of the class containing the main() method to TrieDemo so that this clash is removed. Thank you again!

We hope Educative has inspired to further your learning, and please drop us a note if you have any other questions or concerns.

Best Regards,
Fatimah Abdullah | Developer Advocate
Educative Inc.


Thank you Fatimah for quickly working on this. I found educative very helpful and trying out every porblem by my self helps me a lot. I figured that since it could happen to others as well, so pointed it out. Happy to help. :slight_smile: