11 marksSearching and Sorting Algorithms
CAPE Computer Science Unit 2 · 2006 · Paper 2 · Question 3(a)(i)
An array arr is filled to capacity with 100 integers.
Write a recursive function in pseudocode to search arr for a value named key. Return the index where it was found, or return -1 if key is not present.
The mark scheme is shown once you've answered.
Practise this question