Find the First Occurrence of a Number in an Array
This lesson will teach you how to find the first occurrence of a number in an array using recursion.
First Occurrence of a Number
When given an array, find the first occurrence of a given number in that array and return the index of that number.
The following illustration explains how to approach this problem.
Access this course and 1400+ top-rated courses and projects.