P54 - 二叉树定义
Binary trees
官方模块:
Problems.P54核心函数:Tree data type
题目描述
定义二叉树的数据类型 Tree a,包含空树 Empty 和分支 Branch a (Tree a) (Tree a)。
函数签名
思路
实现
测试
1-- >>>
Binary trees
官方模块:
Problems.P54核心函数:Tree data type
定义二叉树的数据类型 Tree a,包含空树 Empty 和分支 Branch a (Tree a) (Tree a)。
1-- >>>