Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 probelm with this code!(c#)

views
     
silverhawk
post Feb 17 2006, 08:10 PM

Eyes on Target
Group Icon
Elite
4,956 posts

Joined: Jan 2003


The bubble sort works fine, but there are other faster sorting algorithms out there.
The code is fairly straight forward, you SHOULD be able to understand the bubble sort by just reading the code.

The bubble sort works by checking the first value with the other values in the list. If the value is smaller, they are swapped. When the entire list is checked with the first value, it goes to the 2nd value and repeats the process.

 

Change to:
| Lo-Fi Version
0.0156sec    0.35    6 queries    GZIP Disabled
Time is now: 24th December 2025 - 07:00 AM