what is a complexity of linear search,binery search?
Answer Posted / naresh kumar
complexity of linear search 0
n binary search 0log(n)
| Is This Answer Correct ? | 14 Yes | 31 No |
Post New Answer View All Answers
Can we put null key in hashmap?
Which is best book for data structures?
Define 2-3-4 tree?
Which is better hashset or treeset?
Is selection sort greedy?
Write the disadvantages of separate chaining?
Does treemap allow null key?
Is hashtable better than dictionary?
For the following COBOL code, draw the Binary tree? 01 STUDENT_REC. 02 NAME. 03 FIRST_NAME PIC X(10). 03 LAST_NAME PIC X(10). 02 YEAR_OF_STUDY. 03 FIRST_SEM PIC XX. 03 SECOND_SEM PIC XX.
Differentiate between singly and doubly linked lists?
How to do the intersection of two sorted arrays?
in tree construction which is the suitable efficient data structure? (Array, linked list, stack, queue)
What does arrays tostring do?
How to reverse singly link list?
Can we use ordered set for performing binary search?