English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Im having trouble solving this:

Given an array a of integers and an integer x. The program SEARCH
searches for an occurrence of x in a. If x occurs in a, the result i is the
index of the occurrence. If x does not occur in a, the result i equals to
the size of the array.

2007-12-16 08:53:53 · 1 answers · asked by Anonymous in Science & Mathematics Mathematics

1 answers

Are you looking for an efficient algorithm?

If so, you should reask this in a programming section.

2007-12-16 11:41:11 · answer #1 · answered by Curt Monash 7 · 0 0

fedest.com, questions and answers