Write programs for Bubble Sort, Quick sort

Answers were Sorted based on User's Feedback



Write programs for Bubble Sort, Quick sort..

Answer / vinay gupta

write programs for insertion sort

Is This Answer Correct ?    4 Yes 3 No

Write programs for Bubble Sort, Quick sort..

Answer / nuyer

2
3
4
4
5
6
4
34
5
45
345
45


42
5
5

5

532
5
345
34
53
5
35
34
534
5
345
34
534
5
35
35
534
346
45
654
654
6
456
45
6
6
546
45
64
56
456
4
6

Is This Answer Correct ?    1 Yes 0 No

Write programs for Bubble Sort, Quick sort..

Answer / 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

Write programs for Bubble Sort, Quick sort..

Answer / giftson d

@Babbu
Thn wat is t answer, Pls explain...

Is This Answer Correct ?    0 Yes 0 No

Write programs for Bubble Sort, Quick sort..

Answer / lukesh

parul

Is This Answer Correct ?    16 Yes 21 No

Post New Answer

More Data Structures Interview Questions

an array t[100] which contains numbers between 1..99. Return the duplicated value. Try both O(n) and O(n-square).

0 Answers  


What do you mean by Runtime Error

0 Answers  


How will inorder, preorder and postorder traversals print the elements of a tree?

11 Answers  


What exactly is data?

0 Answers  


Explain data structure

1 Answers   Accenture,


How to get largest and smallest number in an array?

0 Answers  


For addition and deletion. Which one is most preferred: array list or linked list?

0 Answers  


Which is more efficient merge sort vs quicksort?

0 Answers  


What is sorted list in data structure?

0 Answers  


How do you define a set?

0 Answers  


create an singly linked lists and reverse the lists by interchanging the links and not the data?

13 Answers   Microsoft, TCS,


Define a linear and non linear data structure.

0 Answers  


Categories