I ran in to some issues sorting them realizing that I was missing some of the numbers that were being passed through and it wasn't sorting all of the numbers so I made a correction to the function. ...
Type: Posts; User: scrfix
I ran in to some issues sorting them realizing that I was missing some of the numbers that were being passed through and it wasn't sorting all of the numbers so I made a correction to the function. ...
Thank you so much for input and helping with that. I finally got it to print out in descending order. I am going to work on getting it in ascending order. I could not do exactly what you suggested...
I have tried that already.
void
sort(int values[], int n)
{
// TODO: implement an O(n^2) sort
for(int i=n-2;i>0;i--) {
for(int j=0;j<i;j++) {
...
Hello,
I am working on a bubble sort program and it is kicking my butt. I have been learning C for about 6 weeks now 1-2 times a week when I have the time away from work and family.
One of the...