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
Write the importance of hashing?
What is sort function?
What is the difference between ienumerable and list?
Is json a data structure?
What are the types of queues?
Differentiate between set and map.
What is difference between list and linked list?
Why is the isempty() member method called?
how to add an item to the beginning of the list?
State the properties of a binary tree?
What are AVL trees?
Why use a tuple instead of a list?
Explain binary searching, Fibonacci search.
What is binary tree used for?
Differentiate between hashset and hashmap.