Hi CodeForces!
You must to find longest common correct substring.
input :
())(()
((()()
output:
()()
1 <= N <= 500
Interesting DP problem :)
Hi CodeForces!
You must to find longest common correct substring.
input :
())(()
((()()
output:
()()
1 <= N <= 500