←
Top
/
Answer-18A-3
Answer to Question 18A-3
Yes, it works.
Recall
that, if expression
A
yields true, then expression
A
||
B
does not evaluate
B
at all. The recursion does not continue after
x
is found in array
A
.