Loading repovive.com/contests/0/problems/D
A valid bracket sequence is a string consisting of characters ( and ) such that:
( as )( equals the total number of )For example, (()), ()(), and (()()) are valid, while )(, ((), and ()) are not.
The distance between two strings of equal length is the number of positions where they differ.
Given a valid bracket sequence of length , find the maximum possible distance from to any other valid bracket sequence of the same length.