摘要: 1 class Solution { 2 public: 3 string addBinary(string a, string b) { 4 string res; 5 int carry = 0, s = 0; 6 int apos = a.length() - 1; 7 int bpos = b.length() - 1; 8 int astp = 0, bstp = 0; 9 // skip leading zero(s)10 for (; astp = astp,... 阅读全文
posted @ 2014-03-25 00:48 卖程序的小歪 阅读(151) 评论(0) 推荐(0) 编辑