NC52.有效括号序列 class Solution { public: /** * * @param s string字符串 * @return bool布尔型 */ bool isValid(const string& s) { // write code here const std::unordered_map<char, char> brackets { {')', '('}, {'}', '{'}, {']', '['} }; ...