It’s possible to search array
idsfor an element equal to
idwith nothing more than this:
int i;for (i=0; i<ids.length && id != ids[i]; i++){ }if (<boolean-expression>){ return i;} What is the <boolean-expression> that indicates that
ihas been found?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.