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.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.