摘要: Question:Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".Analysis:思路一:首先将二进制字符串转化成十进制,然后十进制相加,最... 阅读全文
posted @ 2015-09-14 22:13 江湖小妞 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Question: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 di... 阅读全文
posted @ 2015-09-14 18:45 江湖小妞 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Question:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It do... 阅读全文
posted @ 2015-09-14 17:01 江湖小妞 阅读(101) 评论(0) 推荐(0) 编辑