Find the First Occurrence of a Number in an Array
This lesson will help you find the first occurrence of a number in an array using recursion.
First Occurrence of a Number
Given an array, find the first occurrence of a given number in that array and return the index of that number.
The following illustration shows how to do it:
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.