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 / mahes
binarysearch is paster then sequentiolsearch
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What are the different types of hash functions?
What is frozenset?
Is priority queue sorted?
Explain Linked List
How do you sort an array by value?
How many types of linked lists are there?
Can we add heterogeneous elements into treemap?
What are the advantages of data structure?
Explain circular linked list?
Which is faster hashmap or hashset?
Why is hashset not ordered?
an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].
Give us a program to reverse a linked list.
what is Singly Linked list?
Is int a data structure?