TOPIC

Wrong answer

giselle0 asked 5 years ago

Hi,

I get wrong answer 100% for the trie tree solution. My code returns the correct result for all cases below:

3
abc
dae
abcde
2
abc
def
2
abc
abcdef
2
abcdef
abc
2
acde
acde
4
a
b
c
b
2
a
a
3
a
b
c
2
a
ab
2
ab
a
2
ab
ac
0

Which are:

Conjunto Ruim
Conjunto Bom
Conjunto Ruim
Conjunto Ruim
Conjunto Ruim
Conjunto Ruim
Conjunto Ruim
Conjunto Bom
Conjunto Ruim
Conjunto Ruim
Conjunto Bom

Any ideas of cases I might be missing??

Thanks!

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.