Which of the following sorts is quickest when sorting the
following set: 1 2 3 5 4




1) Quick Sort


2) Bubble Sort


3) Merge Sort

Answer Posted / rohith

quick sort is the best sorting algorithm because time
complexity is O(nlogn)

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you have any idea how to compare array with pointer in c?

615


How can I trap or ignore keyboard interrupts like control-c?

629


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

1608


How to write a multi-statement macro?

631


What is p in text message?

549






Explain the difference between exit() and _exit() function?

645


What are types of functions?

574


Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

613


what value is returned to operating system after program execution?

1611


find the sum of two matrices and WAP for it.

644


What is the difference between functions getch() and getche()?

629


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1670


What is "Hungarian Notation"?

647


What is the deal on sprintf_s return value?

652


How can I find the modification date of a file?

713