摘要: 1.In the main() function, after ModifyString(text) is called, what’s the value of ‘text’? 这要从仔细读源码开始了。 FindSubString的功能,上面已经解释很清楚了,寻找一个先连续递增,在连续递减的字符串 阅读全文
posted @ 2017-04-19 22:57 爱简单的Paul 阅读(281) 评论(0) 推荐(0)
摘要: Given a binary tree, flatten it to a linked list in-place. For example,Given The flattened tree should look like: 阅读全文
posted @ 2017-04-19 15:37 爱简单的Paul 阅读(175) 评论(0) 推荐(0)
摘要: Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. 阅读全文
posted @ 2017-04-19 11:44 爱简单的Paul 阅读(128) 评论(0) 推荐(0)