P67 - 二叉树的字符串表示
A string representation of binary trees
官方模块:
Problems.P67核心函数:treeToString / stringToTree
← P66 二叉树布局:紧凑排列 | P68 二叉树的中序和前序序列 →
← P66 二叉树布局:紧凑排列 | P68 二叉树的中序和前序序列 →
题目描述
二叉树的字符串表示与反序列化。
函数签名
思路
实现
测试
1-- >>>
A string representation of binary trees
官方模块:
Problems.P67核心函数:treeToString / stringToTree
← P66 二叉树布局:紧凑排列 | P68 二叉树的中序和前序序列 →
← P66 二叉树布局:紧凑排列 | P68 二叉树的中序和前序序列 →
二叉树的字符串表示与反序列化。
1-- >>>