摘要: No.67 Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100". 与No.2 Add Two Numbers的思路非常相似,... 阅读全文
posted @ 2015-06-01 17:15 人生不酱油 阅读(143) 评论(0) 推荐(0)
摘要: No.2 Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nod... 阅读全文
posted @ 2015-06-01 16:36 人生不酱油 阅读(184) 评论(0) 推荐(0)
摘要: No.165 Compare Version NumbersCompare two version numbersversion1andversion2.Ifversion1>version2return 1, ifversion1 version2 return 1, if version1 d... 阅读全文
posted @ 2015-06-01 14:59 人生不酱油 阅读(121) 评论(0) 推荐(0)