C# Algorithms – Bubble Sort

After working out Selection Sort, Count Sort and Insertion Sort, I have decided to continue with the last easy sorting method – Bubble Sort in C#.c#

The other advanced sorting, using recursion can also be found here, but I am not going to present them in my blog, as far as I have used google for some hints for the code.

So, lets start with bubble sort – What does it do? Simply it takes each pair of elements, compares them and swaps them if needed. Trivial and easy as much as Insertion Sort and Selection Sort, but anyhow challenging enough for me in order to recall my C# writing skills.

Pretty much that is all 🙂 Enjoy your day!

And last but not least – here comes the code:

Enjoy it! 🙂

About

VBA Developer

Tagged with: ,