qingcheng奕  

2014年6月29日

摘要: https://oj.leetcode.com/problems/count-and-say/求经过n次变换后,变成了什么。1 11 21 1211 111221ps. 3 变成 ‘3’,为 3 + '0'class Solution {public: string countAndSay(... 阅读全文
posted @ 2014-06-29 19:24 qingcheng奕 阅读(171) 评论(0) 推荐(0)
 
摘要: https://oj.leetcode.com/problems/copy-list-with-random-pointer/灵活的指针链表应用。每个节点有两个指针next,random,对本链表做一个深拷贝。就是完全用新内存弄出一个一样的来。a链表: a b c三个nodeb链表: a1 b1 c... 阅读全文
posted @ 2014-06-29 11:32 qingcheng奕 阅读(213) 评论(0) 推荐(0)