data-structures-and-algorithms

401 data structures and algorithms code challenges


Project maintained by alsosteve Hosted on GitHub Pages — Theme by mattgraham

Data Structures and Algorithms

Language: Python

Trees: Max

Feature Tasks

Challenge Type: Extending an Implementation

Methods:

Write the following method for the Binary Tree class

Find the maximum value stored in the tree. You can assume that the values stored in the Binary Tree will be numeric.

Whiteboard Process

challenge16

Examples

Input:

tree example

Output:

11

Unit Tests

test described in examples

Stretch Goal

None

Approach & Efficiency

I had to rewrite my algorythm and code a few times because my solution was failing.