Actually i written my logic as that case should fail because the logic used in accepted solutions (including mine) only performs two full iterations of balancing parentheses. For the given input, ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果一些您可能无法访问的结果已被隐去。
显示无法访问的结果