Hi everybody!
Now I'm trying to solve a problem but i don't have any idea. Can someone help me, please? I'm thanks.
Problem: Given your string S and function F(S, i, j) = S(i + 1, j — 1) + rev(S(j, n)) + rev(S(1, i)).
With S(i, j) is substring S[i...j] (if i > j, string is empty) and rev(S(i, j)) reverse of substring S[i..j]
Now, given you 2 strings A and B are same length, you task to count pair i and j (1 <= i <= j <= n) so that F(A, i, j) = B.
Length of string A and B <= 3*10^5.
(My English is not good, Sorry.)
Auto comment: topic has been updated by I_Love_Hanh_Trinh (previous revision, new revision, compare).
Maybe If You Put The Proplem Link You Will Find Who Will Help You .
Sorry, a problem statement written by Vietnamese, not English. I don't have problem link in English.
Almost same problem: 119D - Преобразование строки
It's very helpful. Thank you so much.
I'm from Vietnam. Can you give me the problem link?
http://laptrinh.ntu.edu.vn/Problem/Details/3359