subject

Can you search the following array using binary search?

int[] A = {6,5,4,2,0,1,-1,-17};

a. No. Binary search can be applied to a sorted array only.
b. Yes. Binary search can be applied to any array.
c. Yes, but the algorithm runs slower because the array is in descending order.
d. No, negative numbers are not allowed because they indicate that a value is not present.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
question
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
question
Computers and Technology, 24.06.2019 07:30
Aproject involves many computing systems working together on disjointed task towards a single goal what form of computing would the project be using
Answers: 3
You know the right answer?
Can you search the following array using binary search?

int[] A = {6,5,4,2,0,1,-1,-17};<...
Questions
question
Social Studies, 29.09.2019 14:30
question
Mathematics, 29.09.2019 14:30
Questions on the website: 13722365