Hi there!
I'm trying to develop a solution for this problem, but I'm not sure what the problem really wants. Could someone help me?
I've already did my research, I've found this post and it gives me a hint about suffix array and stack. Someone told me to read this article and think how to build the suffix tree with a stack (not explicity build the suffix tree) and that should give me a big hint about the problem. But I really didn't understand.
Can someone help me? Not asking for the answer, but another hint.
Thanks in advance! And sorry about my poor English.
Edit: Sorry, I forgot to give the problem link, here