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
Are bit fields portable?
How to declare pointer variables?
Explain what are the standard predefined macros?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Write a code to generate a series where the next element is the sum of last k terms.
Explain pointers in c programming?
What is meant by keywords in c?
What is assignment operator?
Apart from dennis ritchie who the other person who contributed in design of c language.
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
What are structure members?
Explain what are multidimensional arrays?
Is it acceptable to declare/define a variable in a c header?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
List the different types of c tokens?