YunpengShen

Results 1 comments of YunpengShen

# 前序遍历+非递归的序列化+反序列化 记录一下反序列化使用前序+非递归方式的写法,这种反序列化时候的写法好像和二叉树中序非递归有点像 比较神奇,还没想通为什么前序序列化要用中序反序列化 ```C++ class Codec { public: #define SEP "," #define END "#" #define MAX_STACK_SIZE 1000 // Encodes a tree to a single string. string serialize(TreeNode* root) {...