Problem

Linear search recursively; return index or -1.

Examples

  • searchRec([2, 5, 7], 5) -> 1
Compile and test (Ctrl+Enter)