No Prefix Set

  • + 0 comments

    If you're wondering why your test case doesn't work, it's because the test cases are wrong, not your solution.

    They expect you to use a trie but this is not in the instructions, yet the order in which the first bad string appears depends entirely on your solution. The deteciton of any bad string should have been sufficient to solve this problem.