对于树的序列化,用了stream,很好

https://leetcode.com/problems/serialize-and-deserialize-binary-tree/?tab=Description

 

下面这个解法里面的C++部分很好:

https://discuss.leetcode.com/topic/28041/recursive-preorder-python-and-c-o-n

 

posted @ 2017-02-26 00:42  blcblc  阅读(366)  评论(0编辑  收藏  举报