摘要: 解法: 阅读全文
posted @ 2014-07-31 09:45 又软又暖的小喵 阅读(67) 评论(0) 推荐(0)
摘要: 解法:用栈,注意栈的用法和switch的用法 1 class Solution { 2 public: 3 bool isValid(string s) { 4 5 stack istack; 6 string::iterator p=s.b... 阅读全文
posted @ 2014-07-31 09:40 又软又暖的小喵 阅读(107) 评论(0) 推荐(0)