beyondgrader.com Logo
DemoBrowseAboutTeamLogin

BinaryTree Even Sum

Geoffrey Challen // 2020.11.0

Create a method named evenSum that accepts a BinaryTree<Int>?, that is a BinaryTree containing Int values. Return the sum of all of the even values in the tree.

For reference, cs125.trees.BinaryTree is defined like this: