I solved the question using trie and set, however got WA on two cases in subtask 2. Here is the solution. If someone could point out the error or provide certain test case(s), it would be great help. Thanks in advance.
This question is marked "community wiki".
asked 19 May, 03:23

input:
output:
answered 19 May, 10:47

https://www.codechef.com/viewsolution/13633491 i am getting WA in two test case ...plz help me .. answered 19 May, 11:37
input
output should be
but you're outputing
(19 May, 21:31)

@hikarico Why isnt the answer for the above test case "googles"? answered 19 May, 16:40
If you write just googles then goog will be missing.
(19 May, 16:44)
@devilhector can you explain me if you understood the above test case. Even I have those 2 test cases wrong.
(19 May, 20:42)
You need to block all minuses. Answer is 1 because there's no way to block
(19 May, 21:26)
@mayank_code you need to answer prefixes that block all '' but are not prefixes of any '+' or unblocked sites.
(20 May, 03:31)

I am getting WA.Can anyone post what is wrong in my solution.Here is my solution.If someone could point out the error or provide certain test case(s), it would be great help. Thanks in advance. answered 19 May, 22:53
add spaces in the testcase then it gives right answer.
4
+ a
(20 May, 12:22)
Noted, thanks for indicating that. Will come up with fresh test case soon :)
(20 May, 12:44)

My code passes all cases except 2. Can someone please explain what i have done wrong. I used a very naive approach of sorting the strings and applying binary search to find the closest +ve string ... my_solution: https://www.codechef.com/viewsolution/13495612 answered 20 May, 10:17
