what is a complexity of linear search,binery search?
Answer Posted / hemant belwal
linear search=n/2
binary search=iog2n,2 in the base of log.
Is This Answer Correct ? | 36 Yes | 91 No |
Post New Answer View All Answers
Write the stack overflow condition.
Define internal nodes?
how to add an item to the beginning of the list?
Is quicksort divide and conquer?
what is traversal in linked lists?
How do you balance a tree?
How do you search for a target key in a linked list?
What are the difference between a stack and a queue?
When is a binary search best applied?
How can you insert a node at the end of linked list?
What will be the output of below code?
How to get the index of an array element?
Which is faster array or linked list?
What is faster array or arraylist?
Give a basic algorithm for searching a binary search tree?