Kotlinlearncs.online LogoJava
Return to List

Solve: BinaryTree Even Sum

Created By: Geoffrey Challen
/ Version: 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:

Related Lessons

Stuck? You may find these lessons helpful: