摘要: class Solution { public: int myAtoi(string str) { int index = -1; int result = 0; int base = 10; int ssize = str.size(); bool negtive = false; whil... 阅读全文
posted @ 2017-11-18 21:07 nosaferyao 阅读(135) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: bool match(string s, string p, int ss, int ps){ int psize = p.size(); int ssize = s.size(); while (ps < psize && ss < ssize){ char c = p[ps]; if (c != '.'... 阅读全文
posted @ 2017-11-18 19:34 nosaferyao 阅读(116) 评论(0) 推荐(0) 编辑