Searching on Data Structure and Algorithms related Questions and Answers


Question :   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)
1. 7th call
2. 9th call
3. 17th call
4. The function calls itself infinite number of times
Answer :   1 - 7th call  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter