摘要:
搬个官方题解 class Solution { bool valid(const string& str) {//验证是否合法 int balance = 0; for (char c : str) { if (c == '(') { ++balance; } else { --balance; } 阅读全文
posted @ 2021-06-26 11:24
青衣怒马
阅读(73)
评论(0)
推荐(0)
2021年6月26日