P66 - 二叉树布局:紧凑排列
Binary tree layout; compact
官方模块:
Problems.P66核心函数:layoutCompact
← P65 二叉树布局:层级等距 | P67 二叉树的字符串表示 →
← P65 二叉树布局:层级等距 | P67 二叉树的字符串表示 →
题目描述
二叉树布局:紧凑排列,尽可能缩小宽度。
函数签名
思路
实现
测试
1-- >>>
Binary tree layout; compact
官方模块:
Problems.P66核心函数:layoutCompact
← P65 二叉树布局:层级等距 | P67 二叉树的字符串表示 →
← P65 二叉树布局:层级等距 | P67 二叉树的字符串表示 →
二叉树布局:紧凑排列,尽可能缩小宽度。
1-- >>>