• Given a value aValue, returns a boolean telling if the value is effectively a perfect binary tree, i.e all its leaves are at the same depth (cf. the Wikipedia page for the binary tree).

    Parameters

    • aValue: any

      the value considered

    Returns boolean

    • if aValue is indeed a perfect binary tree