Vidyalelo
Data Structure · Q98

Searching Algorithms

Programming · Data Structure · question 98

Q98

The array is as follows: 1, 2, 3, 6, 8, 10. Given that the number 17 is to be searched. At which call it tells that there's no such element? (By using linear search(recursive) algorithm)

A.
7th call
Answer
B.
9th call
C.
17th call
D.
The function calls itself infinite number of times

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board