-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start
github-actions[bot] edited this page Jun 14, 2026
·
1 revision
示例命令:
dotnet nuget add source "https://nuget.pkg.github.com/yhcedpn/index.json" --name github-yhcedpn --username YOUR_GITHUB_USERNAME --password YOUR_GITHUB_PAT
dotnet add package StrangeSort --version <VERSION> --source github-yhcedpnusing StrangeSort.BrezhnevSort;
using StrangeSort.EpsteinSort;
using StrangeSort.StalinSort;
using StrangeSort.ThanosSort;
using StrangeSort.TrumpSort;int[] source = [3, 1, 2, 4];
int[] stalin = StalinSorter.RemoveOutOfOrder(source);
int[] thanos = ThanosSorter.PruneUntilSorted(
source,
comparer: null,
removalStrategy: RemovalCountStrategy.FloorHalf,
random: new Random(2026));
int[] epstein = EpsteinSorter.RetainOnlyMinorsAndSort(source);
int[] brezhnev = BrezhnevSorter.RewriteAsOrdinalSequence(source);
int[] trump = TrumpSorter.ShuffleAndWin(source, new Random(2026));- 想看某个算法的使用说明:进入对应
*-Guide页面。 - 想确认精确行为:看
specs/StrangeSort 开发规范.md。 - 想确认测试覆盖重点:看
specs/StrangeSortTest 测试规范.md。