Answers for "basic sorting algorithms c#"

C#
2

basic sorting algorithms c#

//Basic bubble sort
public static void IntArrayBubbleSort (int[] data)
      {
         int i, j;
         int N = data.Length;

         for (j=N-1; j>0; j--) {
            for (i=0; i<j; i++) {
               if (data [i] > data [i + 1])
                  exchange (data, i, i + 1);
            }
         }
      }
Posted by: Guest on March-12-2020

C# Answers by Framework

Browse Popular Code Answers by Language