isUniValued
that takes a node and the value to compare against.null
, return true
as a null node does not violate the uni-valued property.false
.isUniValued
for the left and right children of the current node, passing the current node's value for comparison.true
if both recursive calls for the children return true
, otherwise return false
.