What is the average number of comparisons needed in a
sequential search to determine the position of an element in
an array of 100 elements, if the elements are ordered from
largest to smallest?
Answer Posted / punit
(n+1)/2
saurav is right.
| Is This Answer Correct ? | 28 Yes | 1 No |
Post New Answer View All Answers
Can an arraylist be null?
What is the logic to reverse the array?
What is sorted map?
How much time does it take to learn data structures?
Are dictionaries mutable?
Which sort is stable?
What is sorting and classifying?
What is the difference between collections class vs collections interface?
What is a 2 dimensional array?
What is quick sort example?
Write the recursive c function to count the number of nodes present in a binary tree.
What are the disadvantages of linked list?
Is any implicit arguments are passed to a function when it is called?
Define separate chaining?
What is a priority queue?