Write programs for Bubble Sort, Quick sort
Answer Posted / ganga
all the above programs are wrong!!!
heres a perfect one.. simple logic!
for(i=0;i<n-1;i++)
for(j=i+1;j<n;j++)
{
if(a[i]>a[j])
{
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
// now print the elements n see
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which is the parent class of abstractsequentiallist class?
Give a real time example of stack
Which is the parent class of hashmap class?
Does linked list allow null values?
How do you use merge sort?
Which time complexity is best?
What is the difference between dictionary and hashtable?
Which programming language is best for data structures?
What is the quickest sorting algorithm?
Differentiate between file and structure storage structure.
Why is data structure important?
What is the time complexity of arraylist and linked list?
What do you know about different sorting algorithms?
Does hashmap preserve insertion order?
How do I remove a value from a list?