Entering recursiveMax(arr, 0, 9)
Entering recursiveMax(arr, 1, 9)
Entering recursiveMax(arr, 2, 9)
Entering recursiveMax(arr, 3, 9)
Entering recursiveMax(arr, 4, 9)
Entering recursiveMax(arr, 5, 9)
Entering recursiveMax(arr, 6, 9)
Entering recursiveMax(arr, 7, 9)
Entering recursiveMax(arr, 8, 9)
Entering recursiveMax(arr, 9, 9)
Leave recursiveMax(arr, 9, 9). Result = 10
Leave recursiveMax(arr, 8, 9). Result = 10
Leave recursiveMax(arr, 7, 9). Result = 10
Leave recursiveMax(arr, 6, 9). Result = 10
Leave recursiveMax(arr, 5, 9). Result = 10
Leave recursiveMax(arr, 4, 9). Result = 10
Leave recursiveMax(arr, 3, 9). Result = 40
Leave recursiveMax(arr, 2, 9). Result = 40
Leave recursiveMax(arr, 1, 9). Result = 40
Leave recursiveMax(arr, 0, 9). Result = 40
40 |