Exemplo n.º 1
0
 public int[][] BubbleSortDelegate_ByMinElemntsRowsDesc_CorrectValues(Func <int[][]> func)
 {
     int[][] array = func();
     BubbleSortDelegate.SortRows(array, KeysForSort.GetMinRowsElements(array), new Comparison <int>((a, b) => b.CompareTo(a)));
     return(array);
 }
Exemplo n.º 2
0
 public int[][] BubbleSortDelegate_ByMinElemntsRows_Succed(Func <int[][]> func)
 {
     int[][] array = func();
     BubbleSortDelegate.SortRows(array, KeysForSort.GetMinRowsElements(array), new Comparison <int>((a, b) => a.CompareTo(b)));
     return(array);
 }
Exemplo n.º 3
0
 public int[][] Test_BubbleSortByMinElemntsRowsDesc_CorrectValues(Func <int[][]> func)
 {
     int[][] array = func();
     BubbleSort.SortRows(array, KeysForSort.GetMinRowsElements(array), new DescendingOrder());
     return(array);
 }
Exemplo n.º 4
0
 public int[][] BubbleSortDelegate_BySumElemntsRowsDesc_Succed(Func <int[][]> func)
 {
     int[][] array = func();
     BubbleSortDelegate.SortRows(array, KeysForSort.GetSumRowsElements(array), new Comparison <int>((a, b) => b.CompareTo(a)));
     return(array);
 }
Exemplo n.º 5
0
 public int[][] Test_BubbleSortByMaxElemntsRows_CorrectValues(Func <int[][]> func)
 {
     int[][] array = func();
     BubbleSort.SortRows(array, KeysForSort.GetMaxRowsElements(array), new DefaultOrder());
     return(array);
 }