make sequence of brackets regular
Ouverte
- Langage dominant
- C++
- Étoiles
- 504
- Forks
- 436
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
given a sequce of length n (n is even),find the minimum number of moves to make sequence regular.
in one, you can choose exactly one bracket and move it to the beginning of the string or to the end of the string.
For example, "()()", "(())()", "(())" and "()" are regular bracket sequences, but ")(", "()(" and ")))" are not.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.