摘要: 同水题,哎,今天无心做难题,只好刷刷水题。还心不在焉地把i、j打错了,错了好几次,哭,完全没有达到做题的状态! 1 class Solution { 2 public: 3 string addBinary(string a, string b) { 4 // Start typing your C/C++ solution below 5 // DO NOT write int main() function 6 int n1 = a.size(); 7 int n2 = b.size(); 8 if (... 阅读全文
posted @ 2013-08-29 23:19 Exio 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 找自信刷数目的水题。题目没看清,看出只是字母了,贡献了一次WA!必须认真看清题目呀~~~ 1 class Solution { 2 public: 3 bool isPalindrome(string s) { 4 // Start typing your C/C++ solution below 5 // DO NOT write int main() function 6 if (s.size() == 0) 7 return true; 8 int i = 0; 9 int j =... 阅读全文
posted @ 2013-08-29 21:37 Exio 阅读(141) 评论(0) 推荐(0) 编辑