How can I get all the test cases for this problem? In general does codechef publish test cases for the challenge problems?
I got AC after considering these two testcases
abcadlfghijkl
abcdlfabcde
Answer is 3 abc and not 3 dlf
similarly ,
abcmdefghijkl
abcdefabcdl
Answer is 3 abc and not 3 def
One can create many testcases based on above casesâŚ
sa_extend in suffix automaton is diificult to understand.
Please provide a c++ code link for binary search and hashing solution âŚ
Hi! You can see testerâs solution
I go through this sa_extend() function but i am getting difficulties to understand it.
can anyone please elaborate it in more specific way.
Thanks
can any one please explain me what is happening in sa_extend?
It would be a great help.
any one please explain extendSA() function
Is Suffix Automaton explained in any book/resource in more formal way rather than code ?
I am confused because we donât have fixed string to create an automaton.
Another solution using Suffix Array can be found here : http://www.roman10.net/2012/03/16/suffix-array-part-3-longest-common-substring-lcs/
This algorithm itself wonât work. We need to separate the 2 strings with a special character.
How to find LCS given Suffix Automaton? If the first character of the pattern doesnât exist in the text, how would the state change?
Btw, my solution with Suffix Arrays gets TLE https://www.codechef.com/viewsolution/14290941.