What does bubble sort do?



What does bubble sort do?..

Answer / Fareed Ahmad

Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted or no more swaps are needed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What are different methods of collision resolution in hashing.

1 Answers  


Can you distinguish between ArrayList and Array?

1 Answers   QuestPond,


What is a subtree in data structures?

1 Answers  


How do you balance a tree?

1 Answers  


What is the difference between a stack and an array?

1 Answers  


Is it possible to increase size of array?

1 Answers  


What does simulation of queues mean?

1 Answers  


What is a simple graph?

1 Answers  


What is the difference between Array and LinkedList?

1 Answers  


What is the difference between array and list?

1 Answers  


Which is the parent class of hashmap class?

1 Answers  


Can constructor be static?

1 Answers  


Categories