C#で選択ソート - s-kita’s blog

using System; using System.Collections; using System.Collections.Generic; static class Algorithms { private static void Swap<T>(ref T x, ref T y) { T tmp = x; x = y; y = tmp; } public static void SelectionSort<T>(T[] arr, Comparison<T> comparison) { for (Int32 i = 0; i < arr.Length - 1; i++) { Int32…</t></t></t>