what is a complexity of linear search,binery search?

Answer Posted / anju

linerasearch-o(n)
binarysearcho(logn)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort in ascending order in arraylist?

501


What is data structure definition?

494


What is difference between data type and variable?

470


State the difference between queues and linked lists?

540


Define leaves?

573






Does treeset allow duplicates?

459


What are trees in data structures?

486


How would you use qsort() function to sort the name stored in an array of pointers to string?

567


What are hash tables good for?

473


Define degree of the node?

562


What is a simple graph?

529


What is long data type?

477


What are three common types of traversals?

456


What sort does arrays sort use?

478


What is an example of an array?

555