Explain bubble sorting.



Explain bubble sorting...

Answer / Anjali Chaudhary

"Bubble sort is a simple sorting algorithm that repeatedly compares adjacent elements and swaps them if they are in the wrong order. The process continues until the entire list is sorted or no more swaps are needed. It has a worst-case and average time complexity of O(n^2) but requires constant space"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Compare compile time polymorphism and Runtime polymorphism

1 Answers  


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

1 Answers  


What is bubble sort c++?

1 Answers  


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

1 Answers  


Explain the difference between 'operator new' and the 'new' operator?

1 Answers   Lucent, TCS,


How a modifier is similar to mutator?

1 Answers  


Is c# written in c++?

1 Answers  


What is virtual base class?

1 Answers  


What are structs in c++?

1 Answers  


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

1 Answers  


Can we specify variable field width in a scanf() format string? If possible how?

1 Answers  


What is difference between malloc()/free() and new/delete?

1 Answers  


Categories