摘要: Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".简单的二进制相加而已,只不过传入的参数是字符串而已。为了方便,先将string reverse... 阅读全文
posted @ 2015-10-11 22:17 eversliver 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at... 阅读全文
posted @ 2015-10-11 21:41 eversliver 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega... 阅读全文
posted @ 2015-10-11 21:23 eversliver 阅读(573) 评论(0) 推荐(0) 编辑
摘要: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ... 阅读全文
posted @ 2015-10-11 17:47 eversliver 阅读(225) 评论(0) 推荐(0) 编辑