![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
路小小卡
一枚码农,平时不太上博客,私信找微博:http://weibo.com/shawnloo
展开
-
Valid Parentheses
程序里面有多个随时return 出去的地方,不知道这种习惯好不好。。。 class Solution { public: bool isValid(string s) { if(s.length()==0) return true; if(s[0]==')' ||s[0]==']' ||s[0]=='}') return false; bool b=fal原创 2015-05-03 12:19:29 · 367 阅读 · 0 评论 -
Longest Common Prefix
从easy 的题开始刷起。。。我是菜鸟coder。原创 2015-05-03 10:33:40 · 416 阅读 · 0 评论