小凉

3 0642700 3 0642770 5 34202 13942 4314 0624

2016年3月11日

我们都遇到过的 Replace Blank Space

摘要: 题目描述: 请实现一个函数,将一个字符串中的空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。 分析: 看到这个题目,我们都会有一个比较直观的加法,那就是遍历字符串,每当遇到空格,就在当前位置插入“%20”,当前位置的字符往后移 阅读全文

posted @ 2016-03-11 21:11 小凉 阅读(540) 评论(0) 推荐(0) 编辑

简单的两数之和再次乱入<< Add Two Numbers >>

摘要: 请看题目描述: 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 阅读全文

posted @ 2016-03-11 16:16 小凉 阅读(792) 评论(0) 推荐(0) 编辑

导航