Considering the function presented, which of the following statements is correct?
I. The function represents a binary search algorithm.
II. The fu...
Considering the function presented, which of the following statements is correct?
I. The function represents a binary search algorithm. II. The function will return true or false if it finds a value. III. The first index to be considered is zero. a) Only statement I is correct. b) Only statement II is correct. c) Only statement III is correct. d) Statements I and III are correct. e) Statements II and III are correct.
A resposta correta é a alternativa d) Statements I and III are correct. A função representa um algoritmo de busca binária e o primeiro índice a ser considerado é zero.
0
0
✏️ Responder
Para escrever sua resposta aqui, entre ou crie uma conta
Compartilhar