← Back to challenges

Find the Highest Integer in the List Using Recursion

PythonHardrecursionnumbersdata_structures

Instructions

Create a function that finds the highest integer in the list using recursion.

Examples

find_highest([-1, 3, 5, 6, 99, 12, 2]) ➞ 99

find_highest([0, 12, 4, 87]) ➞ 87

find_highest([8]) ➞ 8

Notes

Please use the recursion to solve this (not the max() method).

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Finding Adjacent Nodes