Timus Online Judge
About Online Judge
Frequently asked questions
Update your info
back to board
Discussion of Problem
. Brackets Sequence
Python3: memory recurcion accepted 0.15 [Hint]
26 Jun 2020 19:51
We must find pair for the first character or create it.
If S is ']' or ')', then we must add '[' or '(' in begin.
If S is '[' or '(', then we can find pair in S or add ']' or ')' after S.
Edited by author 26.06.2020 19:51
Timus Online Judge Team
. All rights reserved.