Kotlinlearncs.online LogoJava
Return to List

Solve: BinaryTree Even Sum

Created By: Geoffrey Challen
/ Version: 2020.11.0

Create a public class named BinaryTreeEvenSum with a single class method named evenSum. evenSum accepts a BinaryTree<Integer>, that is a BinaryTree containing Integer values. Return the sum of all of the even values in the tree.

For reference, cs125.trees.BinaryTree has the following public properties:

Related Lessons

Stuck? You may find these lessons helpful: