any one give me dry run of this?
ALGORITHM Riddle(A[0..n − 1]) { //Input: An array A[0..n − 1] of real numbers if n == 1 return A[0]; else { temp = Riddle(A[0..n − 2]); if temp ≤ A[n − 1] return temp; else return A[n − 1]; } }
Answers
Answered by
6
Answer:
what a hard question
I didn't understand it
Similar questions