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 / khushboo
BUbble sort
Quick Sort will take nlogn time and also merge sort
But bubble sort will take only O(n) as we can detect no
shift of position in first scan itself...
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is an auto keyword in c?
What is #line?
What is the purpose of 'register' keyword in c language?
How main function is called in c?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What are unions in c?
What is the difference between typedef struct and struct?
what does static variable mean?
What 'lex' does?
How was c created?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
how do you execute a c program in unix.
Why do we need arrays in c?
What is keyword with example?