Which one is faster?
A binary search of an orderd set of elements in an array
or
a sequential search of the elements.
Answer Posted / amit patra
A sequential search of the elements.
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are some of the best practices relating to the java collection framework?
Given an array of integers, devise a program to replace every element with the next greatest element on the right side in the array. Also, replace the last element with 5 as there no element on the right side of it.
What is difference between capacity and size of arraylist?
Mention a few applications of linked lists?
What is data structure in programming language?
Is a list an array?
Is bucket sort stable?
How will you represent a linked list in a graphical view?
How does max heap work?
What is time complexity of sorting algorithms?
What is map entry?
How do you find a string is anagram or not?
What are all the classes and interfaces that are available in the collections?
How to sort an Array?
which is the simplest file structure? (Sequential, indexed, random)