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.
- No Prefix Set
- Discussions
No Prefix Set
No Prefix Set
Sort by
recency
|
31 Discussions
|
Please Login in order to post a comment
Ok, you need to tell me exactly which word I'm supposed to print if it's a bad set. It says the first word I checked where it failed, but there are several ways in which order I could check these words. Is it the first word that has a prefix?
I don't understand this test.
I am failing at
Because it expect me to output
d
but why ? there is nothing prefixingd
becaused
and the first fail isdbeedfdjaghbhgdhcedcj
becaused
prefixdbeedfdjaghbhgdhcedcj
but somehow they want d ? can someone explain cause it s very badly putIf you expect the first thing that caused the failure then should the exemple aab aac aacghgh aabghgh
be aab ?
trie with python:
Hewre is a C# solution that uses a simple implementation of a trie using Dictionaries. Passes all test cases: