摘要: Compare Version Numbers: Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 b) return 1; if(a<b) return -1; } return 0; ... 阅读全文
posted @ 2016-01-08 22:38 Lewisr 阅读(177) 评论(0) 推荐(0)
摘要: Valid Parentheses:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets m... 阅读全文
posted @ 2016-01-08 22:29 Lewisr 阅读(149) 评论(0) 推荐(0)