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.
probelm with this code!(c#)
Feb 17 2006, 08:10 PM
Quote
0.0156sec
0.35
6 queries
GZIP Disabled