
C++
蔷薇-_-
这个作者很懒,什么都没留下…
展开
-
leetcode_67 add binary
学习: 1. string的翻转方法:reverse()函数 或者C语言的strrev(char* str)函数; 2. 直接利用string insert()方法,每次都插入头部,就不用翻转了。Given two binary strings, return their sum (also a binary string).For example,a = "11"b =原创 2016-05-30 10:56:48 · 527 阅读 · 0 评论 -
leetcode_24. Swap Nodes in Pairs C++
Swap Nodes in Pairs原创 2016-05-17 20:46:19 · 484 阅读 · 0 评论 -
leetcode_58 Length of Last Word C++
Length of Last Word原创 2016-05-18 19:42:55 · 449 阅读 · 0 评论 -
leetcode 66_Plus One C++
Plus One原创 2016-05-18 20:13:50 · 674 阅读 · 0 评论