We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
very poor description. When it is a bad set, what is specification for the output string? the largest prefix, the shortest prefix, the largest string containg a prefix, I have no clue. Trie solution works to detect if it is a bad set or not.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
No Prefix Set
You are viewing a single comment's thread. Return to all comments →
very poor description. When it is a bad set, what is specification for the output string? the largest prefix, the shortest prefix, the largest string containg a prefix, I have no clue. Trie solution works to detect if it is a bad set or not.