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
List some applications of multilinked structures?
What is the use of space complexity and time complexity?
Is hashset thread safe?
Describe the degree term in a tree.
What are the Difference between tcp and udp?
Why sorting is done?
Can treemap key null?
Draw the B-tree of order 3 created by inserting the following data arriving in sequence – 92 24 6 7 11 8 22 4 5 16 19 20 78
What are the major data structures used in the following areas : network data model & hierarchical data model?
What is breadth first tree?
What is a directed graph?
Which is best book for data structures?
How many links are there in a binary tree of N nodes?
Reverse a linked list from the middle.
Which is the parent class of linkedlist class?