Find the Highest Integer in the Array Using Recursion

Published by Mubashir Hassan in

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

Examples

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

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

find_highest([6,7,8]) ➞ 8

Notes

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

Watch a quick demo on how Edabit works.