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
What is the need for extendible hashing?
What is data structure and why it is important?
Does arraylist maintain insertion order?
What are the topics in data structures?
What is the structure of an array?
Explain extended binary tree.
Which sorting is best for large data?
What are the advantages of array?
What is the main advantage of a linked list?
Sorting is not possible by using which of the methods?
Why are b trees used?
What is merge sort in daa?
What are the advantages of bubble sort?
What happens if we put a key object in a hashmap which exists?
How many types of priority queue are there?