Hello community! I'm wondering how to solve 381E:Sereja and Brackets but instead of searching the maximum correct bracket susbequence I'm looking for maximum correct bracket substring! any help would be appreciated and thanks^__^
Segment tree Problem:maximum correct bracket substring
Hello community! I'm wondering how to solve 381E:Sereja and Brackets but instead of searching the maximum correct bracket susbequence I'm looking for maximum correct bracket substring! any help would be appreciated and thanks^__^