ninetynine-1.3.0: Ninety-Nine Haskell Problems
CopyrightCopyright (C) 2021 Yoo Chung
LicenseGPL-3.0-or-later
Maintainerdev@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Solutions.P63

Description

Some solutions to Problems.P63 of Ninety-Nine Haskell Problems.

Synopsis

Documentation

completeBinaryTree :: Int -> Tree () Source #

Construct a complete binary tree with the given number of nodes.

isCompleteBinaryTree :: Tree a -> Bool Source #

Write a function to return whether a tree is a complete binary tree.